The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

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 SUN Solaris 2 12-31-2008 12:52 AM
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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 1 Week Ago
smartgupta smartgupta is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 109
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; 1 Week Ago at 03:56 AM..
  #2 (permalink)  
Old 1 Week Ago
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,650
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.
  #3 (permalink)  
Old 1 Week Ago
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,378
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; 1 Week Ago at 05:27 AM.. Reason: add ZFS comment
  #4 (permalink)  
Old 1 Week Ago
smartgupta smartgupta is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 109
I tryied it but getting the error--

Quote:
#mkfile 1g /export/swapfile
#swap -a /export/swapfile
/export/swapfile:invalid operation for this filesystem type.
  #5 (permalink)  
Old 1 Week Ago
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,378
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
  #6 (permalink)  
Old 1 Week Ago
solaris_user solaris_user is offline
Registered User
  
 

Join Date: Aug 2009
Location: Croatia
Posts: 83
check if you have some Free Hog slice usong format command
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0