Operating System - HP-UX
1833676 Members
4123 Online
110062 Solutions
New Discussion

Re: /tmp directory too small

 
SOLVED
Go to solution
Robin Geary
Advisor

/tmp directory too small

Hi,

How would I be able to increase the size of the /tmp folder as its too small to install oracle.

HP-UX 11.11
Oracle 10g

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 204800 18935 174468 10% /tmp
6 REPLIES 6
James A. Donovan
Honored Contributor
Solution

Re: /tmp directory too small

If you have OnlineJFS, this can all be done online.

Use the lvextend command to increase the size of the underlying volume group, /dev/vg00/lvol4. Then use the fsadm command to increase the size of the filesystem.

# lvextend -L 102400 /dev/vg00/lvol4
# fsadm -F vxfs -b $((102400*1024)) /tmp

If you do not have OnlineJFS, then, in order to increase the size of the filesystem, you will need to reboot into single-user mode and use the extendfs command.

# extendfs -F vxfs /dev/vg00/rlvol4
# init 3
Remember, wherever you go, there you are...
Pete Randall
Outstanding Contributor

Re: /tmp directory too small

Robin,

You can increase the size of the logical volume without any problem, but increasing the size of the file system it contains requires that the file system be unmounted. This can be difficult. You can try using the fuser command to find all the processes using /tmp and get rid of them, which may or may not allow you to unmount it.

I would just reboot in single user mode. Reboot, then, at the "10 second" prompt, interrupt and enter "hpux -is". The system will come up in single user mode, you will be logged in as root and only / will be mounted. At this point, I usually do a "mount -a" and then "umount /tmp", to ensure that I have access to every thing I need. Then you simply run your lvextend, if you haven't done it already, and your extendfs and you're done. Reboot to come back into multi-user mode.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: /tmp directory too small

Shalom Robin,

Oracle lets you set an environment variable to redirect from /tmp to a filesystem with more space.

You will need to check the install doc to get the name of the variable.

Then set the variable.

export TEMP=/var # for example.

Then start the universal installer.

No need to make /tmp bigger.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kent Ostby
Honored Contributor

Re: /tmp directory too small

Robin --

You may also want to check to see if you can clean up some of what is there.

find . /tmp -size +1000000c

will show you any files greater than one meg.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Robin Geary
Advisor

Re: /tmp directory too small

Thankyou all for the fast response...

I actually changed the environment so I could install the Oracle from another tmp directory.

Ill leave the dir size increase to the system admin.

Thanks
Robin Geary
Advisor

Re: /tmp directory too small

Oracle installation environment change.

Thanks to all