1830340 Members
2236 Online
110001 Solutions
New Discussion

/tmp to small

 
SOLVED
Go to solution
jerry1
Super Advisor

/tmp to small

Does anyone know how to resize /tmp.
Since it has to be umounted to do so.
It's not an option when the systems is
running.
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: /tmp to small

This is why you purchase OnlineJFS. No HP-UX box should leave /home without it.

In your case, you need to boot in single-user mode and use the commands in /sbin (lvextend, extendfs) to grow the LVOL and filesystem.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: /tmp to small

If you have OnlineJFS then it wouldn't be a problem. Otherwise you have to reboot and come up in single user mode to do it.
A. Clay Stephenson
Acclaimed Contributor

Re: /tmp to small

By the way, /tmp is for OS related temp files and doesn't need to be very large. User-related temp files should go in /var/tmp. Some boneheads still use /tmp for user data but hopefully they at least follow the TMPDIR environment variable convention to override their default choice.
If it ain't broke, I can fix that.
jerry1
Super Advisor

Re: /tmp to small

Unfortunatly, oracle requires /tmp be at
least 1 gig.
Would setting $TMPDIR over-ride using /tmp
as install tmp?

Since the box had no process using /tmp
I ran lvextend and then tried to umount
them to run extendfs but it says it's
busy even thought fuser -cu /tmp shows
no processes.
jerry1
Super Advisor

Re: /tmp to small

Online JFS is on the box.

It's fsadm -F vxfs -b M /tmp

Not extendfs.
A. Clay Stephenson
Acclaimed Contributor

Re: /tmp to small

I really don't know if your Oracle Installer observes the TMPDIR convention but I just checked the last box I installed Oracle 9.2.0 on has a /tmp of 200MB and I installed from the CD set.

extendfs -F vxfs is used if you unmount the filesystem but is you have OnlineJFS then you use fsadm -F vxfs and specify the -b size in 1024-byte sectors equivalent to the (extended) size of your LVOL.
If it ain't broke, I can fix that.
Florian Heigl (new acc)
Honored Contributor

Re: /tmp to small

for lazy people fsadm also takes megabytes as an option as in

fsadm -Fvxfs -e /tmp
fsadm -Fvxfs -b 1024m /tmp

done

From what I remember Oracle does listen to $TMPDIR so You might be able to avoid extending /tmp

Good luck,
Florian
yesterday I stood at the edge. Today I'm one step ahead.
JUP
Regular Advisor

Re: /tmp to small

It may already be on the system, however it looks like fsadm requries a licence:

fsadm: You don't have a license to run this program
Paul Torp
Regular Advisor

Re: /tmp to small

put this in u'r /etc/inittab

vxen::bootwait:/sbin/fs/vxfs/vxenablef -a

and it should be enabled.

"sendmail is kind of fun..."