13,420
edits
Changes
no edit summary
# note that the filesystem can be mounted
# while this is performed:
resize2fs /dev/vg_muskoka/lv_mainlv_home
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: