1827283 Members
3475 Online
109717 Solutions
New Discussion

extending /tmp

 
Susan W Roden
Contributor

extending /tmp

Do I need to be in single user mode to extend the /tmp directory? I use online JFS with LVM and Disk Mirroring.

6 REPLIES 6
Alan Riggs
Honored Contributor

Re: extending /tmp

No, you do not need to be in single user mode.

With online JFS, you do not even need to umount the directory. Do:

lvextend -L /dev/vg00/lvol6 (or whatever is mounted on /tmp)

fsadm -F vxfs -b /tmp
federico_3
Honored Contributor

Re: extending /tmp

No, you do not need to be in single user mode if you have JFS online.

Do like this:

lvextend -L /dev/vg00/lvxxx (logical volume mounted on /tmp)

fsadm -F vxfs -b /tmp

After this type ( in order to check the extension): bdf /tmp


regards,

federico
Johan Carlsson
Occasional Advisor

Re: extending /tmp

To extend /tmp with online JFS you should do as stated in the two earlier responses, I just wanted to add a thing to the fsadm command:

fsadm -F vxfs -b $(expr * 1024) /tmp

For example if /tmp is to be increased to 500 MB:
fsadm -F vxfs -b $(expr 500 * 1024) /tmp

Hope this is of help to you.

Regards
Johan Carlsson

Johan Carlsson
Occasional Advisor

Re: extending /tmp

I saw that there was an error after I posted my answer.

You should use backslash before the asterisk (*)
fsadm -F vxfs -b $(expr 500 * 1024) /tmp

Sorry about this.

/Johan

Re: extending /tmp

No. You do not need to bring the server to single user mode. This is because you have the ONLINE JFS Product installed on your server.

You can follow the steps mentioned above.
Winners Never Give Up
Bruce Regittko_1
Esteemed Contributor

Re: extending /tmp

Insted of using the $( expr ... ) syntax, I would suggest using $(( 1024 * MB )). Thus, the command would be

fsadm -F vxfs -b $(( 1024 * 128)) /tmp

for a 128 MB /tmp filesystem. This is a little more readable than mixing the POSIX $(cmd) syntax with the Bourne expr command, IMO.
www.stratech.com/training