LVM lvreduce and vgreduce
Hi,
I tried to add more space to my LV so i will have 18TB of space. All was good until i run resize2fs, and this is what i got. resize2fs 1.42 (29-Nov-2011) resize2fs: New size too large to be expressed in 32 bits As i understand, ext3 (this is my filesystem) cant be more then 16TB. My question is, can i run lvreduce and vgreduce without loosing any data? The commands that i run: vgextend vgpool /dev/sdc1 lvextend -L18.19T /dev/vgpool/lvstuff Thanks For Your Help Yosi |
lvreduce reduces the size of the LVM device by chopping off space at the end. As long as that part of the device is not in use, you should be fine. However, there's always a (small) risk that you'll end up removing just a little too much, so my recommendation would be to shrink the ext3 file system slightly first, run lvreduce, and then expand the ext3 filesystem to fill the entire device again.
Once there's sufficient free space in the Volume Group, you may be able to remove the recently added physical device with vgreduce. You can run pvdisplay to verify that the Physical Volume is not in use. |
All times are GMT -5. The time now is 11:46 AM. |