LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-10-2009, 02:18 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Rep: Reputation: 15
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--

Quote:
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..
 
Old 11-10-2009, 02:52 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
These lines are unexpected and the second indicates a script (or data) error
Code:
bash: fork: Not enough space
bash: [: =: unary operator expected
Are you really short of space in /tmp? What is the output from
Code:
df -h
 
Old 11-10-2009, 03:56 AM   #3
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Original Poster
Rep: Reputation: 15
output of df is as follows--

Quote:
/> df -h
Filesystem size used avail capacity Mounted on
rpool/ROOT/opensolaris
73G 4.1G 64G 7% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 160M 308K 159M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
68G 4.1G 64G 7% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 159M 60K 159M 1% /tmp
swap 159M 60K 159M 1% /var/run
rpool/export 73G 21K 64G 1% /export
rpool/export/home 73G 21K 64G 1% /export/home
rpool/export/home/xyz
73G 3.8G 64G 6% /export/home/xyz
rpool 73G 78K 64G 1% /rpool
 
Old 11-10-2009, 04:12 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
159 MB is small for /tmp so we can believe it is a genuine problem but it would be prudent to resolve the shellscript error, especially as you are presumably running this installation as root.

I don't know OpenSolaris so cannot safely advise how to enlarge /tmp. If there is an entry for /tmp in fstab then you may be able to comment out that line and have /tmp on / where you have lots of space. It is prudent not to have /tmp on / in case some badly-behaving program writes too much to it and fills it so you may want to back out any such change after using it for the installation.

An alternative if offered by "Use 'bash <path>' to specify an alternate temporary directory" but I do not understand what it is saying.

Long term it would be useful to increase the size of /tmp while keeping it somewhere other than /. Hopefully an OpenSolaris-spert will advise options for doing that.
 
Old 11-10-2009, 04:25 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,782

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Your program suggests (although it is poorly phrased) to use an alternate temporary directory so I would do it that way in your case.

Alternatively, if you want to increase /tmp size, you need to add a vdev dataset to your root zfs pool and add it as a swap device.
Code:
zfs create -V 1gb rpool/extraswap
swap -a /dev/zvol/dsk/rpool/extraswap
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 08:17 AM
unable to increase /tmp orbit Slackware 8 04-16-2009 03:52 AM
Increase /tmp RAH104 Linux - Newbie 5 07-27-2008 09:55 PM
increase /tmp space to 1GB gobbs Linux - Newbie 3 01-22-2007 02:08 AM
/tmp partition won't increase? I_AM Linux - General 1 03-19-2005 01:18 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration