Solaris 10 /proc making filesystem full


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 /proc making filesystem full
# 1  
Old 01-08-2008
Solaris 10 /proc making filesystem full

Hi all,

I have a solaris 10 box on which /proc is a part of /
The problem is that my / partition is getting full mainly
due to /proc getting a lot of files.

My question is : Can I delete files/directories in /proc directory.
If not what could be the other way round to clean up /proc so that I can
free some of the resources.

Thanks,
rte
# 2  
Old 01-08-2008
Quote:
Originally Posted by run_time_error
I have a solaris 10 box on which /proc is a part of /
/proc is not part of /. /proc does not contain real files on disk anywhere. Post a df -k of your filesystems.
# 3  
Old 01-08-2008
Here is the output of my df -k command

Code:
bash-3.00# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0    24203976 21756436 2205501    91%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 16648996     732 16648264     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
/dev/dsk/c0t0d0s1    16137782 4103655 11872750    26%    /usr
/usr/lib/libc/libc_hwcap2.so.1
                     16137782 4103655 11872750    26%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t0d0s4    10085921   83584 9901478     1%    /var
/dev/dsk/c0t0d0s5    3891708    7020 3845771     1%    /tmp
swap                 16648312      48 16648264     1%    /var/run
/dev/dsk/c0t2d0s0    51642279 5544335 45581522    11%    /zone_1
/dev/dsk/c0t3d0s0    51642279 4492545 46633312     9%    /zone_2
/dev/dsk/c0t1d0s0    51642279 12978094 38147763    26%    /zone_3


Thanks
rte

Last edited by Perderabo; 01-08-2008 at 09:57 AM.. Reason: Add code tags for readability
# 4  
Old 01-08-2008
Upon closer inspection of /proc it contains directories in the name of running PIDs. In my case Apache which has about 35 processes running (shown in ps -ef). These directories are large (some of them are about 700MB or less).

I wonder if these instances of Apache are making my / filesystem full.

Any clues?

Thanks,
rte
# 5  
Old 01-08-2008
Stop looking at /proc as your issue - as Perderabo stated,
Quote:
/proc does not contain real files on disk anywhere
Take a look at filesystem full what to look for. Don't try anything that you are not SURE of. Removing files from a system is not something you want to do unless you know what you are doing/deleting.

Look for core or tar files that may have been put on by another person. Since /var and /usr are separate filesystems, don't bother checking them. Check /etc (be CAREFUL!!!) and /opt.
# 6  
Old 01-08-2008
Look at the final field on your df listing. Those are your separate filesystems. Stuff in /proc, /usr, /var, /zone_1, and so on is not in /. And stuff in /proc is nowhere except in memory. As you say, it is your pids. You can delete stuff in /proc by killing processes, but this will not help you. /proc is not a real filesystem, it is a way to access your processes as if they were files.

/ should not grow very much. Has it grown in, say, the past 10 days? Then get a list of files in / modified in the past 10 days...
find / -mount -type f -mtime -10
This will probably be a short list and it should tell you where the problem is.
# 7  
Old 06-05-2009
Just wondered, if there is no real files in /proc, why does it show up as the highest space occupier on my server (this is an old Solaris 2.6):

#du -sk * |sort -rn |head
723555 proc
302662 usr
282955 opt
249259 export
209532 var
8568 tmp
5997 kernel
5019 sbin
3965 platform
2536 etc

-----Post Update-----

I would appreciate a quick response, Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Filesystem Full

In our shop we have to run a batch cycle. Every so often while we are running batch we get a filesystem full situation that causes batch to stop or slow down. Anyway, the practiced procedure is to look for large files and zip them. This takes a lot of time. We are in a sun solaris environment. What... (1 Reply)
Discussion started by: Harleyrci
1 Replies

2. Linux

Tripwire Nightware on Linux (proc filesystem)

Hello, I am having a nightmare with Tripwire on Linux..... I cannot get it to ignore the /proc filesystem, which I want to completely ignore for now Has anyone here successfully configured Tripwire on Linux and completed ignored the /proc filesystem ? If so, please reply and tell me how... (0 Replies)
Discussion started by: Neo
0 Replies

3. UNIX for Dummies Questions & Answers

filesystem is full

Hello everybody, a very basic question. Inspite of me deleting huge files in a filesystem(AIX 5.3) in oracle folder, the filesystem when i check using df -k still shows 100% full. Does that mean there is a process still pointing to the files which i deleted. how do i work around this. Thanks!... (3 Replies)
Discussion started by: karthikosu
3 Replies

4. Red Hat

/ filesystem getting full

Hi All, How do I increase the root filesystem? It's getting full. / 90% Here's the break down, below 232 dev 5624 tmp *6764 bin 16860 root *19680 sbin *20436 lib64 28329 boot *47992 etc 150012 var *254540 lib 651708 home *2445044 usr (5 Replies)
Discussion started by: itik
5 Replies

5. UNIX for Dummies Questions & Answers

filesystem full

my root filesystem is eventually full "/dev/rdsk/c1d0s0" as a result i cannot boot to the operating system, i booted into the fail safe mode to check the space using df -h command i discover that it is eventually full. Also to my amazement i found that i cannot see the filesystem which mounted on... (1 Reply)
Discussion started by: seyiisq
1 Replies

6. Solaris

The filesystem is still full - Solaris 10!

Good morning, sir! I've a problem with FileSystem, the problem is FileSystem is full First time, I've already read carefully the sticky thread FileSystem full - What to lock for https://www.unix.com/sun-solaris/25840-filesystem-full-what-look.html And then, I will post some information of... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

7. Solaris

Making filesystem on presented lun

Hi, I am working on SunOS perlrate 5.10 Generic_127111-09 sun4v sparc SUNW,SPARC-Enterprise-T5120. The server has an LSISAS3801E HBA card installed and is connected to a StorageTek 2530 array. I have made a volume on arrary using Common Array Manager. I can see the volume on server: ... (2 Replies)
Discussion started by: seanban
2 Replies

8. Programming

Changing fname in /proc filesystem

I wrote a wrapper (call it prog1) around another program (call it prog2) for security purposes. When prog1 launches prog2 it sets the argv value to be "prog1" so that "prog2" does not show up when you use the "ps" command. Howerver, if you use the option "-o fname" with "ps" then the file name for... (3 Replies)
Discussion started by: wilbur
3 Replies

9. UNIX for Dummies Questions & Answers

Filesystem Full

I noticed that whenever something is printed from my workstation, the available disk space in the /dev/dsk/c0t0d0s0 decreases considerably. Hence, after using my workstation for sometime, I encounter an error message: "Filesystem Full" that prevents me from printing any further. Is there a way to... (16 Replies)
Discussion started by: ilak1008
16 Replies
Login or Register to Ask a Question