1832886 Members
2552 Online
110048 Solutions
New Discussion

lvextend / lvreduce ..??

 
SOLVED
Go to solution
someone_4
Honored Contributor

lvextend / lvreduce ..??

I have exended lvol13 using lvextend form the ISL promt.
#lvextend -l 200 /dev/vg00lvol13
then
/sbin/extendfs -F xvfs /dev/vg00/rvol13

#mount -a


But how would I go about reducing it back?

From the same ISL promt

#lvreduce -L 200 /dev/vg00lvol13

didnt work gave me a mount error.What am I doing wrong?

Richard
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: lvextend / lvreduce ..??

You have to umount the fs.


live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: lvextend / lvreduce ..??

Hi Richard:

You will have to umount the filesystem first.
This is the reason you buy OnlineJFS; you can do all of this stuff while the system is up and running without having to unmount and mount.

Clay
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: lvextend / lvreduce ..??

Hi Richard:

Just remember, too, that in the absence of Online JFS if you want to shrink a filesystem you must back it up first and then reload it afterwards.

Regards!

...JRF...
Sridhar Bhaskarla
Honored Contributor

Re: lvextend / lvreduce ..??

Richard,

You need to backup the file system before you attempt to reduce it.

Though you just increased the file system, the logic of reducing it immediately may not work. You may end up with a corrupted file system. So, it's better to backup the file system. If your lvreduce doesn't work, then you can create new lv and restore the data.

By the way, I am confused with doing lv operations at the ISL prompt. If you meant singer user mode, you mounted the file systems with mount -a command. So unmount and do lvreduce.

-Sri

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
G. Vrijhoeven
Honored Contributor
Solution

Re: lvextend / lvreduce ..??

Hi Richard,

Save scenario
1. backup the file system.
2. umount the file system
3. lvreduce the lvol
4. create a file system on the logical volume
5. mount it.
6. restore the backup.

or get online jfs.:-)

Gideon
Ashraf_1
Frequent Advisor

Re: lvextend / lvreduce ..??

Hi Ritch,

Remember that it is necessary to back up your volume before you reducing it and not necessarily but proactively to back it in an instant of extending.

Thanks & Regards,
ASHRAFM