1834975 Members
1996 Online
110073 Solutions
New Discussion

Re: lvreduce

 
SOLVED
Go to solution

lvreduce

By accident, I performed an lvextend on a base JFS filesystsem without unmounting the filesystem. BDF reports the exact size of the lv (512), but SAM reports the new size of 1024.

How can I correct this? I cannot remember.. Will it correct itself on reboot, or will I need to do an lvreduce to restore actual size in vg00.conf?
If I can't be part of the Greatest, I just have to be the Greatest myself!
5 REPLIES 5
Sanjay_6
Honored Contributor

Re: lvreduce

Hi,

I think you have to unmount, lvreduce ,mount.
Did you do extendfs after lvextend. You may have to run fsck on the LV.

Hope this helps

Thanks

Re: lvreduce

I didn't do the extendfs, only the lvextend command...

It is the /opt filesystem.. I didn't think I could umount this one...
If I can't be part of the Greatest, I just have to be the Greatest myself!
Stefan Farrelly
Honored Contributor
Solution

Re: lvreduce


Simply use lvreduce to reduce it back to its original size before you lvextended it. You can do it online, no need to unmount or reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...

Re: lvreduce

Thanks Steven, I thought I would be able do it, I just wanted to be sure...

Mike-
If I can't be part of the Greatest, I just have to be the Greatest myself!
AUJ
Advisor

Re: lvreduce

if you're objective is to continue to extend the logical volume, do the ff:

1. umount the filesystem
2. extendfs -F vxfs /dev/vg??/rlvol?
3. mount the filesystem

but if want to reduce it...

lvreduce -L size /dev/vg??/lvol??

Hope the above will help.

Angelo