Changes

Jump to: navigation, search

Logical Volume Management

1 byte removed, 15:05, 5 February 2011
no edit summary
# Shrink the LV:
lvreduce vg_muskoka/lv_home --size -5G
# or specify an absolute size of 50G<br /><br />Note: If you are experiencing problems mounting the reduced LV, it may be due to the difference in extent size<br /> between the LINV and the filesystem layer. To fix this problem,<br /> remove the LV, create, format the LV, and then resize only using the lvreduce command with the -r option.<br /> This automatically reduces the filesystem , and the LV.<br /> Refer to this example below"<br /><br />lvreduce -r vg_muskoka/lv_home --size 50G>
{{Admon/important|Check your arguments!|lvreduce and lvextend can both 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_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.}}
13,420
edits

Navigation menu