Best practise for Ubuntu LVM2 Public webserver?
Posted on 2009-04-08
I'm new to LVM partitioning on linux (ubuntu 8.10 server) and want to use LVM for deviding the partions. so /var/ or a user/website wil not fill up the system.
i have two pyshical harddisks (in a VM), both 10GB
The server is meant as an public webserver and (reversed) proxy server.
I used to use this for my public webservers when using /ext3
/ 4 GB.
/VAR 4 GB.
/TMP 2 GB.
SWAP 2 GB.
/EXPORT Remaing space - for webstorage and home directories
What should i do now and how can setup these drives.
I now have 1 big (10GB) LVM for the root /
There aren't many options when installing ubuntu when using LVM.
You can initalize 1 big VolGroup and when you try to enter it manually, you can't set sizes for LVM. SDB isn't used yet, but i have initialized it as a phyical LVM disk.
When steps should i take to setup and mount lvm and how can i move /var when in use...