Operating System - HP-UX
1834302 Members
2816 Online
110066 Solutions
New Discussion

Re: how to set the temporary disk space

 
Nino Guba
Advisor

how to set the temporary disk space

hi newbie question:

hp just installed fine. assigned 1GB for /tmp. but when I try to install using swinstall it keeps saying not enough disk space for temporary disk files.

I have tried changing /usr/tmp to link to a tmp directory on a different disk with ample space.

I was trying to do the same for /tmp but cant. Says drive is busy.

Is there an environment setting i can set to point to a different directory for tmp?

Thanks in advance.
13 REPLIES 13
Sanjay_6
Honored Contributor

Re: how to set the temporary disk space

Hi,

the env variable is TMPDIR.

export TMPDIR=/some_new_dir

Hope this helps.

regds
Rory R Hammond
Trusted Contributor

Re: how to set the temporary disk space

Some progams will use the TEMP variable

TEMP=/other_location; export TERM


A 1 gig /tmp space seems plenty large.

When installing Oracle, I have had to remove left over files from failed installs to get enough space.

Look at /tmp and see if you need to remove some forgotten trash.
fuser -u /tmp/* Will show files that are open and that you should not delete.

I have a utility that remove /tmp files that have not been accessed for more than 12 hours. The utility also has an exclude list.

Rory
There are a 100 ways to do things and 97 of them are right
Pete Randall
Outstanding Contributor

Re: how to set the temporary disk space

As Rory mentioned, 1 GB for /tmp should be plenty large enough - my /tmp is 204 MB and I have no problems with swinstall. What is it that you are trying to install and exactly what is the error message that you get?


Pete

Pete
Nino Guba
Advisor

Re: how to set the temporary disk space

I've tried setting those environment variables but still getting the error message:

A file I/O error has occured on this system. Make sure that you have enough disk space in the directory used for temporary disk files. This directory is usually "/usr/tmp" or "/tmp".

I check those directories and there are still almost 1GB free space.

This error message pops up when I click Ok after specifying the source for the swinstall (via SAM)

Any other suggestions?
Nino Guba
Advisor

Re: how to set the temporary disk space

What I want to install are UserLicenses from the Extension Software CD.

I dont think installing this requires my TMPDIR to be large. Maybe my mount parameters for the CDROM are at fault?

The entry in /etc/fstab is:
/dev/dks/c0t2d0 /cdrom cdfs ro,suid 0 2
Pete Randall
Outstanding Contributor

Re: how to set the temporary disk space

Take a look in /var/adm/syslog/syslog.log to see if there any error messages there related to I/O errors. Also check the output from the dmesg command for the same.


Pete

Pete
Rory R Hammond
Trusted Contributor

Re: how to set the temporary disk space

Can you write to /tmp /var/tmp from the command line.

echo "hello" > /tmp/xxx
echo "hello" > /var/tmp/xxx


I/O error doesn't sound like a space problem.

check perms on /tmp /var/tmp
drwxrwxrwt 3 bin bin 3072 Jan 28 08:20 /tmp
There are a 100 ways to do things and 97 of them are right
Nino Guba
Advisor

Re: how to set the temporary disk space

ok i narrowed it down to selecting Local CDROM as having the problem.

no problems writing in /tmp and /var/tmp. permissions are ok.

can you see any problems with my mount options for the cdrom?
Rory R Hammond
Trusted Contributor

Re: how to set the temporary disk space

I did not see you mount syntax

I have a directory:
/CDROM

My CD drive has an address:
/dev/dsk/c3t2d0

I mount the drive with the following command:
mount -r -F cdfs /dev/dsk/c3t2d0 /CDROM

and then run swinstall
Rory
There are a 100 ways to do things and 97 of them are right
Nino Guba
Advisor

Re: how to set the temporary disk space

I tried your mount options but still the same. I dont think my CDROM isn't working since I just used it to install the OS and mounting it and then listing the cdrom's contents is fine.
Rory R Hammond
Trusted Contributor

Re: how to set the temporary disk space


If "mount" shows the CD mounted and you can do a ls /CDROM/* (or your location) and list the directory, And you can look at the contents of file. (cat README, etc) Then the I/O error might have to do with something like an incorrect path in your swinstall directory string

ioscan -fnC disk should show your CD hardware path


Rory
There are a 100 ways to do things and 97 of them are right
Nino Guba
Advisor

Re: how to set the temporary disk space

No problems with hardware path either.

Anyway, I was able to workaround the problem. Just unmounted /cdrom from the console and had swinstall's "Find Local CD" to do the mounting for me.

Thanks to you all!
Nino Guba
Advisor

Re: how to set the temporary disk space

See my previous comment for the solution.