1753519 Members
4787 Online
108795 Solutions
New Discussion юеВ

a lvextend question

 
SOLVED
Go to solution
leelangco_1
Frequent Advisor

a lvextend question

hi, i have made a mistake when i expanded filesystem. the fs i want to expand is /var(lvol6),but undesignedly i expand the lvol7(/usr) logic volume size, then i found i made a mistake.fortunately i didnot excute the extendfs /dev/vg00/rlvol7 ,so my question is that the space i unintendly allocated to lvol7 can be reclaimed?if so, how can do that.thank you!
points will be given.
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: a lvextend question

lvextend has no effect on the filesystem. So lvol7 is larger but the filesystem is still the same. Just use lvreduce lvol7 back to it's original size. The filesystem will never know anything about the changes.


Bill Hassell, sysadmin
Denver Osborn
Honored Contributor

Re: a lvextend question

Since you caught the mistake before extending the filesystem, use lvreduce to reduce the size of lvol7 back to the size it was before you extended it.

As long as you don't try to make lvol7 smaller than what it was before, you'll be fine. As always, be safe and make a backup. You could even test it out yourself using /tmp or on a sandbox if you've got.

-denver
leelangco_1
Frequent Advisor

Re: a lvextend question

thank you all very much !