/tmp its empty after every reboot


 
Thread Tools Search this Thread
Operating Systems Solaris /tmp its empty after every reboot
# 1  
Old 03-30-2011
/tmp its empty after every reboot

dears all
after any reboot for my solaris machin the mount point /tmp it will empty is there command to remove this thing and make the data under /tmp stay after the reboot .
# 2  
Old 03-30-2011
Solaris is designed to behave like that... Why do you need to change that?
# 3  
Old 03-30-2011
On modern versions of Solaris, /tmp is implemented as a TMPFS (temporary File System) and simply uses local memory for file system reads and writes. When local memory is insufficient to hold everything in /tmp, TMPFS uses swap space as a temporary backing store as long as sufficient swap space is available. Files in TMPFS are not permanent; they are deleted if the file system is unmounted or when the system is shutdown or rebooted.

If you want to preserve files in /tmp, you probably should create and mount a different filesystem there instead of TMPFS.
# 4  
Old 03-30-2011
I'm reminded of an old blooper... "Sir, why are you keeping your database in /tmp?"
# 5  
Old 03-31-2011
Maybe you can use /var/tmp instead of /tmp?

The way Solaris looks at tmp directories:
/tmp
- very volatile data.
- Do not use for data that should be kept more than several seconds.

/var/tmp
- less volatile data.
- Directory on disk so data in it will survive a reboot.
- Use for any tmp data that should be kept more than several seconds.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

/tmp filling up

Does anyone know of a way to redirect the ksh default of processing data in /tmp to another file system or / something else? My ksh script is parsing large DB files and it keeps filling up /tmp on the root disk. I have a 1 Tb disk with most of its space. How do I re-direct the /tmp ksh... (6 Replies)
Discussion started by: cchelten
6 Replies

2. Solaris

cannot cd /tmp.

Hi All, There's a /tmp. folder on my solaris 9. I can't cd on it bash-2.05# uname -a SunOS cads105ctce 5.9 Generic_122300-30 sun4u sparc SUNW,Sun-Fire-V890 bash-2.05# cd /tmp. bash: cd: /tmp.: No such file or directory bash-2.05# ls -la /tmp. /tmp.: No such file or directory ... (5 Replies)
Discussion started by: itik
5 Replies

3. UNIX for Dummies Questions & Answers

Getting same exit status for empty and non empty file

Hi All, I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both. The value of $? is coming 0 in if part also and else part too. #!/bin/ksh if ]; then echo "data" # exit 0 echo "$?" else... (4 Replies)
Discussion started by: mavesum
4 Replies

4. AIX

problem with tmp

Hello everyone ! I get a box with aix 5.3 and I get the /tmp fs on 100 %. I get a free space to get more bigger my fs but send me a error message. I try to make more bigger with smitty chlv but It doesnt work. Then I try to reduce somethings on the /tmp fs but I cant get in on a... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

5. UNIX for Dummies Questions & Answers

how to find empty folders without using -empty

hi all: my solaris FIND does not support find myFolder -type d -empty how can i find the empty folders? thanks! (7 Replies)
Discussion started by: lasse
7 Replies

6. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

7. AIX

Clean up /tmp at reboot

Were is the setting stored that causes /tmp to be cleaned up during a reboot? (2 Replies)
Discussion started by: Silver11
2 Replies

8. Solaris

/tmp clean up at reboot

In Solaris 8, were is the setting stored that causes /tmp to be cleaned up during a reboot? (2 Replies)
Discussion started by: Silver11
2 Replies

9. Solaris

How To Shrink /Tmp

Hi, Do you know if we can shrink the size of the Swap under Solaris 8 ? 8Gb is already allocated to /TMP but we would like to reduce to 1 GB. Thanks, Fabien. (2 Replies)
Discussion started by: unclefab
2 Replies

10. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies
Login or Register to Ask a Question