Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce /var - VXFS version 3

SOLVED
Go to solution
Marius Botha
Advisor

Reduce /var - VXFS version 3

Would like to reduce /var from 2GB to 1.5GB without having to restart server.
lvreduce -L 1500 /dev/vg00/lvol8 does not work.

Will use fsadm -b once LV has been reduced. Space will be used to lvextend another FS.
Dont ask for permission, ask for forgiveness
4 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: Reduce /var - VXFS version 3

You have your steps backwards. You need to reduce the filesystem BEFORE you reduce the logical volume. Remember that a filesystem resides within the LV. When you extend a filesystem you extend the LV and then extend the filesystem that resides within the LV.

When you are reducing you simply reverse those steps. You must reduce the filesystem first, so that it is smaller than the LV container around it, and then reduce your LV. So you need to do your fsadm command to reduce the filesystem first and then the lvreduce to reduce the LV.

See the following document for more details:
TKB Doc ID: KBRC00011321
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000067342554

Bill Hassell
Honored Contributor

Re: Reduce /var - VXFS version 3

NOTE: without Online JFS 3.3, it is likely that reducing the /var filesystem will destroy it. As mentioned reducing the logical volume is like chopping off a portion of the disk. Luckily it failed or /var would likely cause a system panic due to the corrupted filesystem. Be safe and backup the /var volume completely with a known-to-work method like fbackup (in case there are large files). Then use fsadm to see if all works well. Since /var is one of the most crucial directories in the system, don't do this until you have a window for some downtime to restore /var.


Bill Hassell, sysadmin
Marius Botha
Advisor

Re: Reduce /var - VXFS version 3

Great thanks for the replies, I have JFS 3 running - so would need to upgrade to 3.3 due to the known bugs in 3. Will postpone my work till later.
Thanks again for the responses, request is now closed.
Dont ask for permission, ask for forgiveness
Steve Tasker
Occasional Advisor

Re: Reduce /var - VXFS version 3

test
Where there is will there is a way