Operating System - HP-UX
1834150 Members
2158 Online
110064 Solutions
New Discussion

Re: Can we reduce a filesystem?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

Can we reduce a filesystem?

Hi,

Server: HP-UX 11.0, OnlineJFS 3.1, 32bit OS.

On our boot disk (vg00) we want to reduce the size of the "/tmp" filesystem using
OnlineJFS (fsadm). We will boot the server into single-user mode and will umount the
filesystem. Can this be done?

(We will first create a backup of vg00 with Ignite-UX tape).

10 points to any good answer.
Thank you
Gino
4 REPLIES 4
Zafar A. Mohammed_1
Trusted Contributor
Solution

Re: Can we reduce a filesystem?

Uday_S_Ankolekar
Honored Contributor

Re: Can we reduce a filesystem?

You are on right track..
First thing Create a ignite tape.
fsadm -b "reduced size in KB" /mountpoint

Once the filesystem has been reduced, use the lvreduce to resize the logical
volume to the appropriate size:
lvreduce -L "new size in MB" /logical_volume

You can do it online. No need to bring down the box on singel user...and anyway it's /tmp!!

-USA..

Good Luck..
Helen French
Honored Contributor

Re: Can we reduce a filesystem?

To answer your question, yes you can do this task with OnlineJFS. But before doing that:
1) Make sure you are not going to reduce it to a very small size. That will give you problems for OS as well as applications.
2) Have a good copy of the system, /tmp file system and recovery tapes.
3) If you are doing this to increase the size of some other vg00 file systems, then I would first consider adding a new disk without reducing any size.
4) Evenif you don't have OnlineJFS, you can boot in lvm maintenance mode and recreate /tmp.
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: Can we reduce a filesystem?

I think you've got very good answers before on the same issue:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x91fd3c853cd9d5118ff40090279cd0f9,00.html
Life is a promise, fulfill it!