Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
Search Forums:



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-10-2009
Registered User
 

Join Date: Sep 2008
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
How can I increase size of /tmp directory

Hi All,

I am working with open solaris and in that I need to install one application which first put it's all files in /tmp directory and then place it in respective directory.but when i am trying to do it,it is giving the following message--


Code:
Abc@opensolaris#. ./xyz.bin
Using /tmp for temporary storage.
bash: fork: Not enough space
bash: [: =: unary operator expected
Unpacking to /tmp/X.tar...
tail: cannot open input
Checksumming...
sum1=0
sumResults1=
sum2=0
sumResults2=
Unable to perform the installation. Either the distribution
file is corrupt or there is insufficient free space in /tmp.
This product requires free space at least 3 times the size
of the distribution file in /tmp. If that much is available,
please try downloading the file again.
Use 'bash <path>' to specify an alternate temporary directory.

So Please tell me how can I increase the size of /tmp directory in openSolaris.

Thanks in advance..

Last edited by pludi; 11-10-2009 at 02:56 AM..
Sponsored Links
    #2  
Old 11-10-2009
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 10,347
Thanks: 208
Thanked 377 Times in 157 Posts
Quote:
Originally Posted by smartgupta View Post
So Please tell me how can I increase the size of /tmp directory in openSolaris.
  1. You can delete old unused files in your /tmp directory (disk partition)
  2. You can move old unused files in your /tmp directory (disk partition) to a new directory
  3. You can create a directory in another file system and use a symbolic link to that directory /tmp --> /New_Directory_In_Big_Partition
  4. You can install a cheap, big disk drive and mount it as /tmp

etc.
Sponsored Links
    #3  
Old 11-10-2009
ɹǝsn *sıɹɐlos*
 

Join Date: Dec 2007
Location: Paris
Posts: 3,712
Thanks: 11
Thanked 296 Times in 276 Posts
The previous reply assumes /tmp is a partition which it is almost never the case under Solaris.

/tmp is backed by virtual memory (i.e. RAM + swap) so to increase available space on it, either you reduce your VM usage by stopping processes using it or increase its total size by adding a swap device.

If you have space available on an existing partition, the simplest way is to create a swap file on it (let say you have more than 1gb free on /export):

Code:
mkfile 1g /export/swapfile
swap -a /export/swapfile

If you are using ZFS, the way to add swap space is different than the one I just wrote.

In your case you can specify another alternate directory as your installation program suggests.

And by the way, symlinking /tmp to another directory is probably unsupported and at least requires this directory specific permissions to be preserved.

Last edited by jlliagre; 11-10-2009 at 04:27 AM.. Reason: add ZFS comment
    #4  
Old 11-10-2009
Registered User
 

Join Date: Sep 2008
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
I tryied it but getting the error--

Quote:
#mkfile 1g /export/swapfile
#swap -a /export/swapfile
/export/swapfile:invalid operation for this filesystem type.
Sponsored Links
    #5  
Old 11-10-2009
ɹǝsn *sıɹɐlos*
 

Join Date: Dec 2007
Location: Paris
Posts: 3,712
Thanks: 11
Thanked 296 Times in 276 Posts
Yes, I already wrote these commands won't work with ZFS.


Code:
rm /export/swapfile
zfs create -V 1gb rpool/extraswap
swap -a /dev/zvol/dsk/rpool/extraswap

Sponsored Links
    #6  
Old 11-10-2009
Registered User
 

Join Date: Aug 2009
Location: Croatia
Posts: 384
Thanks: 24
Thanked 11 Times in 10 Posts
check if you have some Free Hog slice usong format command
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Increase salt size cryogen UNIX for Dummies Questions & Answers 1 05-25-2009 04:51 AM
increase Root size radhnki Solaris 2 12-30-2008 11:52 PM
how to change \tmpdir directory or increase size? ray UNIX for Dummies Questions & Answers 13 06-07-2006 08:07 AM
increase size jyoti HP-UX 1 04-14-2006 11:08 AM
increase size of /tmp pkappaz UNIX for Dummies Questions & Answers 2 07-02-2003 11:49 AM



All times are GMT -4. The time now is 05:30 AM.