Modify /var/run.

Thread Tools Search this Thread
Operating Systems Solaris Modify /var/run.
# 1  
Old 09-27-2011
Modify /var/run.

I want to modify the /var/run fs from 86G to say 2G. How to go about it? Thanks.
swap 64G 38K 64G 1% /var/run

Edit/Delete Message

Last edited by DukeNuke2; 09-27-2011 at 07:17 AM..
# 2  
Old 09-27-2011
/etc/svc/volatile, /var/run, and /tmp are all part of the swap filesystem.

You need to add disk to the system - in other words, create a new slice. Then use swap -a to add the slice. Creating lots of separate small slices in swap is a sure way to slow down the system. Make sure you've got it right.

And /var/run, and /tmp should NEVER be allowed to fill up. Change apps that are proliferating junk files in there. Or write a script to clean up after them.

Why? The system will rollover and die if you completely fill swap.
# 3  
Old 10-03-2011
Hello Jim,
Thanks a lot for your reply. However here I wish to reduce my /var/run from 64GB to 2GB. So what needs to be done?

# 4  
Old 10-03-2011
Finding out what's taking all that space would be a good start...
# 5  
Old 10-03-2011
I think it means it has 64G total space and 34K used, big waste of 62G which he wants to shrink the filesystem by.
# 6  
Old 10-03-2011
Removing RAM modules would be good start ... Smilie

Seriously, shrinking the virtual memory space should be done with caution.
# 7  
Old 10-06-2011
You may have already considered crash dumps, but just in case I thought I would mention it....

Assuming you're using the OS defaults (run dumpadm to check) you should have at least the same amount of swap space as you have RAM. If a UFS based system crashes it dumps the memory to swap, and at reboot it writes that data into /var/crash. You want to be sure swap and /var have enough space to hold that data. That data can be very valuable in addition to explorer logs when turning to Oracle for analysis on unexplained system crashes.

This explains it pretty well:

This all changes with ZFS root:
Managing Your ZFS Swap and Dump Devices - Oracle Solaris ZFS Administration Guide
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog

I have been searching and reading about syslog. I would like to know how to Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog. tail -f /var/log/messages dblogger: msg_to_dbrow: no logtype using missing dblogger: msg_to_dbrow_str: val ==... (2 Replies)
Discussion started by: kenshinhimura
2 Replies

2. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

3. Shell Programming and Scripting

Modify Sleeper script to run every 30 minutes

I would like to modify the below sleeper script to run every 30 minutes at the 29th and 59th minute of the hour. The below script is designed to run every 10 minutes and send an argument to the other script at a particular hour but i want it to run every 30 mins at the 29th and 59th minute of... (6 Replies)
Discussion started by: senormarquez
6 Replies

4. Shell Programming and Scripting

how to modify existing env var

greetings, i have the following env variable: LSB_HOSTS='t70cra102 t70cra102 t70cra108 t70cra108'the variable could be any number of host names and sometimes the same name several times. i was hoping there's a way to turn it into the following: NEW_LSB_HOSTS=,,,]always appreciate the help... (2 Replies)
Discussion started by: crimso
2 Replies

5. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

6. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

7. Red Hat

/usr/sbin/crond: can't lock /var/run/,

please tell pre-requisite steps to activate cron. i activated the cron but it not executing the script which i set in crontab entry.through root user i passed the service crond start it get start.but when i go to etc/init.d and passed crond stop gets crond: can't lock /var/run/,... (2 Replies)
Discussion started by: umair
2 Replies

8. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

9. UNIX for Dummies Questions & Answers

/var/run/dbus/system_bus_socket problem

Hello, i have a problem. i have a domain name hosted on a server and it goes very slow and sometimes down. I looked on the processes running and on the netstat status and i discovered that each time there is a slowness or a downtime is caused by: /var/run/dbus/system_bus_socket many of these... (9 Replies)
Discussion started by: dan8354544
9 Replies

10. UNIX for Dummies Questions & Answers

creating /var/run

I havn't installed solaris 10 (nor any solaris in a long time). I noticed that during the install the file system layout allowed me to create a swap partition, but there wern't enough partitions to create a /var/run (I am mirroring the disk config of another system). Is /var/run created manually... (2 Replies)
Discussion started by: csgonan
2 Replies
Login or Register to Ask a Question