1844204 Members
2079 Online
110229 Solutions
New Discussion

Re: /tmp filesystem

 
SOLVED
Go to solution
Michael Selvam
Occasional Advisor

/tmp filesystem

Hi all


I want to increase the /tmp. When i try to unmount /tmp volume the system gives message device busy. Pls. somebody tell me how to increse the size of /tmp.
Server is HP 9000
OS is HP-UNIX 11.0

Note : I am not a UNIX administrator i wants to Install Oracle.

Regards

Mike
7 REPLIES 7
Steffi Jones_1
Esteemed Contributor

Re: /tmp filesystem

Hi Michael,

unless you have adv journal filesystem installed (which you can check with swlist command) you need to bring the box down to single user mode to extend /tmp.

Steffi Jones
Vincenzo Restuccia
Honored Contributor
Solution

Re: /tmp filesystem

If you have online JFS:
#fsadm -F vxfs -b xxx /tmp
else boot in single user mode and
lvextend and extendfs
John Bolene
Honored Contributor

Re: /tmp filesystem

Any file system increase has to umount the file system to do commands on it.

/tmp is always in use in multiuser mode.

As Steffi said, take it to single user mode.

If you are trying to expand /root or /stand, about the only way is to reignite the box and specify it larger at that point.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Rita C Workman
Honored Contributor

Re: /tmp filesystem

Just to add something to vincenzo's post.

If you have Online JFS...first extend your lvol:

lvextend -l /dev/vg00/lvol_

Then extend your filesystem with the fsadm command as was mentioned above...NOTE that the amount should be in Kbytes (pe_amt x 4 x 1024 = kb)

Otherwise, follow the advice given to boot to single user and extend via tha 'regular' method.

Regards,
/rcw
boley janowski
Trusted Contributor

Re: /tmp filesystem

find out if you have jfs "which fsadm" | swlist | grep JFS

anyway if you have it "fsadm -F vxfs -b <1024*lvsize> /tmp"

if not reboot, stop boot, boot pri isl, interact with isl=yes, hpux -is, then continue with the extending the file system.
A. Clay Stephenson
Acclaimed Contributor

Re: /tmp filesystem

First of all, if you have OnlineJFS installed then you don't need to unmount /tmp. Many (most) servers these days are ordered with OnlineJFS so I give you those instructions first.
From SAM:
Disks & Filesystems->Logical Volumes
Locate the logical volume for /tmp and highlight it.
Then Actions->Increase Size
Enter the new desired size and you're done.
It will grow the logical volume and the filesystem 'on the fly'.

Before you start the above procedure; cd to /tmp and make sure you have a lost+found directory; if not, create one. The filesystem
commands will fail otherwise.

Now, if you don't have OnlineJFS things are a little more complicated. Because /tmp is almost always in use you will probably have to go to single-user mode; if you boot in singl-user mode /tmp will not be mounted.

You can use lvextend to grow the logical volume and then extendfs to grow the filesystem.

man lvextend and extendfs. By the way, where's your SA - that bum should be doing this.
Clay
If it ain't broke, I can fix that.
boley janowski
Trusted Contributor

Re: /tmp filesystem

WOW, i got side tracted and everyone passed me!
oh well good luck!