13,420
edits
Changes
no edit summary
mount /dev/vg_muskoka/lv_archive /archive
# Edit /etc/fstab to have the filesystem file-system mounted automatically at boot time
# (refer to [http://www.tuxfiles.org/linuxhelp/fstab.html http://www.tuxfiles.org/linuxhelp/fstab.html] for additional information)
# Here is an example of issuing a command to add the mount point to the bottom of the /etc/fstab file:<br /><br />echo "/dev/vg_muskoka/lv_archive /archive ext3 defaults 1 2" >>/etc/fstab
Notice that the LV serves as a container for the filesystemfile-system, but otherwise the two are independent. If you increase the size of the logical volume, you must then increase the size of the filesystem file-system so that it fills the logical volume:
# Add 5G to the logical volume lv_home:
lvextend vg_muskoka/lv_home -r --size +5G
When reducing the size of an LV-based filesystem, it's critical that you shrink the filesystem (the contents) before you shrink the LV (the container) -- otherwise you may lose data, and the filesystem will be damaged. Here is an example: