1833534 Members
2727 Online
110061 Solutions
New Discussion

LVREDUCE ONLINE

 
SOLVED
Go to solution
Miguel Carabano_1
Regular Advisor

LVREDUCE ONLINE

Hi team,

I need reduce one FS /var,
see file: lvdisplay.out

How i can, reduce logical volume and FS Online.

My system already has license of Online JFS

Thanks.

7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: LVREDUCE ONLINE

Hi Miguel:

You can use 'fsadm' to reduce as well as expand the size of a logical volume under OnlineJFS. See the 'fsadm(1M)' manpages for more information.

Once the filesystem has been successfully reduced, use 'lvreduce' to reduce the logical volume container size.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: LVREDUCE ONLINE

First run fsadm -F vxfs -b smaller size then lvreduce. However, depending upon the version of HP-UX and the patches this may not be wise. While expanding an LVOL/filesystem "on the fly" has never been a problem there have been cases (especially on 10.20 but also on 11.0) where shrinking the filesystem led to corruption. In any event, I would take a backup before doing anything.

Man fsadm_vxfs and lvreduce for details.
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: LVREDUCE ONLINE

Your best chance of success requires that you first reorganize and defragment the filesystem:

fsadm -F vxfs -d -D -e -E /var

You can then proceed to reduce using fsadm with the -b option.

Have a look at the man page for fsadm_vxfs.


Pete

Pete
Miguel Carabano_1
Regular Advisor

Re: LVREDUCE ONLINE

Hi,

Os: HP-UX B.11.23 U ia64
HPUX11i-OE-MC B.11.23.0409
HP-UX Mission Critical Operating Environment Component


A. Clay Stephenson
Acclaimed Contributor

Re: LVREDUCE ONLINE

This should be safe on 11.23. Of course, if you go ahead and make a backup then you won't need it; if you don't, ... . If you do want to defragment the filesystem first (which never hurts) then I would add a time-limit (e.g. -t 3600) so that the operation ceases after 1 hour or if finished.
If it ain't broke, I can fix that.
Miguel Carabano_1
Regular Advisor

Re: LVREDUCE ONLINE

Hi team,

Thanks.

Done!!!

Miguel
Miguel Carabano_1
Regular Advisor

Re: LVREDUCE ONLINE

Thanks