Prepare a single disk or a disk raid:
mkfs.ext3 <phsvol> lvm lvm> pvcreate <physvol> lvm> vgcreate <physvol> // or several physical volumes: <physvol1> <physvol2> <physvol3> lvm> lvcreate <volgroup> <physical> lvm> quit mkfs.ext3 /dev/mapper/<volgroup-logvol> mount /dev/mapper/<volgroup-logvol> <dir>
Auto-mount during boot:
vim /etc/fstab /dev/mapper/<volgroup-logvol> <dir> ext3 noatime,user_xattr 0 0
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
For whatever reason, my swap volume which resides on raid1 was not mounted during system boot. After some searching I found that the uuid where not matching between /dev/disk/by-uuid and /etc/fstab.
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 (md0, md1) to the respective entry in fstab.
rsync -avH /backup /mnt/new_backup/