Operating System - HP-UX
1833873 Members
1843 Online
110063 Solutions
New Discussion

Not enough room in /tmp when 'sh'ing a patch

 
SOLVED
Go to solution
Simon R Wootton
Regular Advisor

Not enough room in /tmp when 'sh'ing a patch

I'm trying to unpack a download patch for an 11i system but each time I try, /tmp fills and it obviously errors. The patch is 30Mb compressed and I only have 40Mb free in /tmp.

Other than extending the size of /tmp or deleting files, is there a way of using another filesystem for the unpacking ??

All help rewarded.
Thanks
Simon
10 REPLIES 10
T G Manikandan
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

#TMPDIR=/var/tmp
#export TMPDIR

Thanks
Stefan Farrelly
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

Try cd'ing to /var/tmp then sh /tmp/, this should unpack it to /var/tmp where you should have more free space, or you can cd to another directory then try it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Leif Halvarsson_2
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

Hi,

Yes, the patch files is created in the directory where you unpack the sh-archive.
T G Manikandan
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

mv the patch to a file system with enough space.

mv /home
#sh


Thanks
Simon R Wootton
Regular Advisor

Re: Not enough room in /tmp when 'sh'ing a patch

The patches are in a filesystem with 18Gb free when I try to sh them, it seems to be using /tmp as temp unapcking space.
V. V. Ravi Kumar_1
Respected Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

hi,
if /tmp is not having enough space u can unshar it in any file system which is enough to hold the file. do a bdf on ur system and see if any filesystem is free enough to hold the patch. copy this to that directory and run
#sh

Regards
Never Say No
Jdamian
Respected Contributor
Solution

Re: Not enough room in /tmp when 'sh'ing a patch

The /tmp directory is used to uncompress the depot and this directory is forced in sh scripts of any patch. Thus, solutions given above, as change TMPDIR, aren't useful.

I think you have to edit the sh file and change at the end the next line:

uncompress /tmp/compress$$
mv /tmp/compress$$ PHxx_NNNNN.depot

for this other

uncompress /var/tmp/compress$$
mv /var/tmp/compress$$ PHxx_NNNNN.depot

T G Manikandan
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

point the TMPDIR variable to the file system with enough space like

#mkdir /home/temp
#TMPDIR=/home/temp
#export TMPDIR


Revert
Stefan Farrelly
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch

Youre right, in the code for the shar file it uses tmp to unpack and uncompress. Theres doesnt seem to be a variable to control it so you either need to free up some space in /tmp, or extend it, or try to hack the share file. Its only a text file so you can use vi, you need to change the following lines;

rm -f /tmp/uud$$
(echo "begin 666 /tmp/uud$$\n#;VL*n#6%@x\n \nend" | uudecode) >/dev/null 2>&1
if [ X"`cat /tmp/uud$$ 2>&1`" = Xok ]
then
unpacker=uudecode
else
echo Compiling unpacker for non-ascii files
pwd=`pwd`; cd /tmp


Change /tmp to some other dir. And further down also change;

cc -o unpack$$ unpack$$.c
rm unpack$$.c
cd $pwd
unpacker=/tmp/unpack$$
fi
rm -f /tmp/uud$$

And 1 more further down the file;

uncompress /tmp/compress$$
mv /tmp/compress$$ PHSS_28470.depot

Again change /tmp to a new dir; That shuold do it - 3 sections to change. Ive tried it and it works fine.



Im from Palmerston North, New Zealand, but somehow ended up in London...
T G Manikandan
Honored Contributor

Re: Not enough room in /tmp when 'sh'ing a patch