Open main menu

CDOT Wiki β

Changes

Logical Volume Management

9 bytes added, 07:36, 10 February 2010
Filesystems on LVs
lvreduce vg_muskoka/lv_hone --size -5G
{{Admon/important|Check your arguments!|lvreduce, lvextend, and resize2fs can all take absolute or relative size arguments. For example, <code>-5G</code> means "reduce the size by five gigabytes", but <code>5G</code> means "make the size five gigabytes". If you have a 100G LV, the command <code>lvresize vg_muskoka/lv_home --size -5G</code> would shrink it to 95G, but accidentally typing <code>lvresize vg_muskoka/lv_homeGlv_home --size 5G</code> would shrink it to 5G. This would cause data loss if you have previously resized the filesystem to 95G. Remember to check your commands carefully.}}
Remember the order in which the filesystem and LV size must be adjusted: