hdd | partition | raid1 | lvm | mount point |
---|---|---|---|---|
sda | sda1 | - | - | / |
sda | sda2 | - | - | swap |
sda | sda3 | - | vg1 | /srv |
sdb | sdb1 | - | vg1 | /srv |
If you need to install LVM after having setup the base system, note that there is a bug in Edgy and Feisty where the executable files will not be found. To fix it, execute the 2nd instruction below:
apt-get install lvm2 ln -s /lib/lvm-200 /lib/lvm-0
If something goes wrong during initial install or if you later need to modify / check the lvm installation, here are the relevant commands. Before setting up the lvm volumes, you might want to check the partition table (see next paragraph).
to check wether the partition table is ok:
sfdisk -l
to check wether root and swap are mounted, enter:
mount free -m -t
to check mismatching uuid's, enter:
ls -la /dev/disk/by-uuid cat /etc/fstab
to fix, do:
vim /etc/fstab
replace the uuid's found in fstab with the ones found in /dev/disk. Make sure you copy the correct uuid (/, swap) to the respective entry in fstab.