Operating System - HP-UX
1835764 Members
3305 Online
110085 Solutions
New Discussion

Re: How do you increase the space on /tmp?

 
David Heard
Occasional Advisor

How do you increase the space on /tmp?

How do you increase the space on /tmp?
10 REPLIES 10
Jean-Louis Phelix
Honored Contributor

Re: How do you increase the space on /tmp?

Have a look to

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=310826

Regards ...
It works for me (© Bill McNAMARA ...)
Jeff Schussele
Honored Contributor

Re: How do you increase the space on /tmp?

Hi David,

It's the same procedure as

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=310826

With OnLine JFS this is easy. But one should ask themselves a BIG question "Why does /tmp need to be increased? Does it need cleaned up or is something/someone using it incorrectly?"

We set our /tmp up for 256MB & never have to increase it. We use *other* areas for user & app scratch areas. /tmp should NOT be having large files placed in it - that's *not* what it's for.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Mark Grant
Honored Contributor

Re: How do you increase the space on /tmp?

Generally speaking, you are going to have to go to single user mode first and make sure you don't mount /tmp. If you have any probelms with this and I have seen people finding it difficult, comment out the /tmp entry in /etc/fstab before going single user. That way it can't be mounted.
Never preceed any demonstration with anything more predictive than "watch this"
John Carr_2
Honored Contributor

Re: How do you increase the space on /tmp?

use mount command to show file system and logical volume info lvol6 is default for /tmp


lvextend -L 512 /dev/vg00/lvol6
extendfs -L 512 /dev/vg00/lvol6

512 MB total new size or whatever size you wish

:-)

John.
Pete Randall
Outstanding Contributor

Re: How do you increase the space on /tmp?

David,

You shouldn't really need all that much space in /tmp. Maybe we should look into what's filling it up before we start enlarging it?


Pete

Pete
Mark Grant
Honored Contributor

Re: How do you increase the space on /tmp?

I am obviously assuming you don't have OnlineJfs!

I once had a machine with a command before "mount" to read a file in / and if the file had a filesystem in it to run "extendfs". This meant that extending a filesystem when you didn't have onlineJFS and couldn't unmount the fileystem in multiuser mode was simply a re-boot. This works becuase you CAN increase the logical volume size online if you have online JFS or not.
Never preceed any demonstration with anything more predictive than "watch this"
John Carr_2
Honored Contributor

Re: How do you increase the space on /tmp?

an alternate method depending on your system is to make an ignite image then restore it specifying a bigger /tmp detailed instructions available if this an option for you.

John.
John Carr_2
Honored Contributor

Re: How do you increase the space on /tmp?

David my syntax is wrong on teh extendfs earlier it should have an r for raw device

extendfs -L 512 /dev/vg00/rlvol6

:-)
John.
Pete Randall
Outstanding Contributor

Re: How do you increase the space on /tmp?

David,

Run "du -sk /tmp/* |sort -n" and let's see what's taking up all the room.


Pete

Pete
Karthik S S
Honored Contributor

Re: How do you increase the space on /tmp?

To add to the Pete's suggestion you can also make use of "lsof" to see if any of the open files are occupying the space.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=10925

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn