LVM Post Configuration
May 08, 2010
After manually setting up LVM I forgot to update /etc/fstab
. This meant my drives weren’t mounted on rebooting, which caused some worry!
Running as root you can get all the information you need to create the fstab entries using lvdisplay
This will product something like
--- Logical volume ---
LV Name /dev/sync/guitar
VG Name sync
LV UUID vIl1Lb-bVRh-SJPo-KdGd-1wIS-fUfl-J3bgW3
Either the LV Name
or LV UUID
can be used in fstab e.g.
# LVM Volumes -run lvdisplay as root to see where these come from
#<file system> <mount point> <type> <options> <dump> <pass>
/dev/sync/guitar /var/sync/guitar ext4 defaults 0 1
Now to load /etc/fstab
run mount -a
as root.