Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

root directory fills up - Solaris 10 upgrade

710 views
Skip to first unread message

pne.c...@comcast.net

unread,
Mar 3, 2009, 3:07:29 PM3/3/09
to
Below is a ‘df –h’ of my system. The file system has a single 72 GB
drive. I think there is about a 67 GB of usable space on the drive
outside of swap and overhead. I reserved 34 GB for the root partition
(/) and 33 GB for the home partition -mountpoint (/home). I did this
under Solaris 9. I have since upgraded to Solaris 10 and all appeared
fine. Now, however, my root partition is full (see df -h listing). I
have no idea what has filled up the drive space. I suspect some sort
of log file or files. I guess I should have done an ‘ls –lR /’ to
really see what is in the partition.

Anyway, I was hoping someone might see something from the ‘df –h’
listing that would indicate a problem. The system really can’t do
anything and I keep getting a log message indicating that the system
is full. I’ll check on the process that is writing the ‘disk full’
message for another clue. The system now keeps rebooting itself.

Any help with this greatly appreciated,

Eric

Filesystem size used avail capacity Mounted on
/dev/dsk/c1t1d0s0 34G 33G 0K 100% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 2.4G 1.5M 2.4G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 34G
33G 0K 100% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
34G 33G 0K 100% /platform/sun4u-us3/lib/sparcv9/
libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 2.4G 376K 2.4G 1% /tmp
swap 2.4G 56K 2.4G 1% /var/run
/dev/dsk/c1t1d0s7 33G 827M 32G 3% /home

Zfs..

unread,
Mar 3, 2009, 4:31:48 PM3/3/09
to

du -sh ./* |sort

check /var/adm/messages

Frank Langelage

unread,
Mar 3, 2009, 4:44:14 PM3/3/09
to

rebooting itself?
Anything in /var/crash/`uname -n` ?

Richard B. Gilbert

unread,
Mar 3, 2009, 4:46:24 PM3/3/09
to

Something has obviously been writing to your / partition. Doing an ls /
may provide a clue as to what. It could be everyone!

I don't see a separate partition for /var. In fact, I don't see a
separate partition for *anything* but /. It's customary to lay out your
disk with partitions for / plus /usr, /var I think having one is a very
good idea! A look at /var as it now exists may help you understand why.
It may also help you understand what sort of periodic cleanup you need
to be doing.

Writing things to / does not seem, to me, to be a good idea. Obviously
there are a few things that belong in /; e.g. /usr. I'm talking about
putting generic "junk" in there!

You might want to get yourself a good book or two on system administration!

Here's a sample layout that I've found satisfactory for a workstation
with, AIRC, a 20 GB disk. YMMV!

sunblok_$ df
/ (/dev/dsk/c0t0d0s0 ): 358354 blocks 388161 files
/proc (/proc ): 0 blocks 3829 files
/dev/fd (fd ): 0 blocks 0 files
/etc/mnttab (mnttab ): 0 blocks 0 files
/var/run (swap ): 2349648 blocks 26364 files
/tmp (swap ): 2349648 blocks 26364 files
/scratch (/dev/dsk/c1t1d0s0 ): 270112 blocks 503995 files
/export/home (/dev/dsk/c0t0d0s7 ):109668122 blocks 6724999 files

Oscar del Rio

unread,
Mar 3, 2009, 4:42:02 PM3/3/09
to
pne.c...@comcast.net wrote:
> The system now keeps rebooting itself.

full of crash dumps? check /var/crash

Richard B. Gilbert

unread,
Mar 3, 2009, 5:10:29 PM3/3/09
to
Richard B. Gilbert wrote:
> pne.c...@comcast.net wrote:
>> Below is a ‘df –h’ of my system. The file system has a single 72 GB
>> drive. I think there is about a 67 GB of usable space on the drive
>> outside of swap and overhead. I reserved 34 GB for the root partition
>> (/) and 33 GB for the home partition -mountpoint (/home). I did this
>> under Solaris 9. I have since upgraded to Solaris 10 and all appeared
>> fine. Now, however, my root partition is full (see df -h listing). I
>> have no idea what has filled up the drive space. I suspect some sort
>> of log file or files. I guess I should have done an ‘ls –lR /’ to
>> really see what is in the partition.
>>

What is your root partition full of????? When you learn that, you may
be able to figure out what's doing it and kill it!

<snip>

Claus Dragon

unread,
Mar 4, 2009, 3:36:08 AM3/4/09
to
On 3 Mrz., 23:10, "Richard B. Gilbert" <rgilber...@comcast.net> wrote:

> What is your root partition full of????? When you learn that, you may
> be able to figure out what's doing it and kill it!
>
> <snip>

I would boot from an optical drive in single-user mode in order to
achieve that safely.

Then check /var/core, var/adm/messages and most importantly,
do a du to find out what directory tree is chewing away all that disk
space!

Ike Naar

unread,
Mar 4, 2009, 5:11:04 AM3/4/09
to
In article <d1424047-3c6b-4a9b...@u1g2000vbb.googlegroups.com>,

<pne.c...@comcast.net> wrote:
>Now, however, my root partition is full (see df -h listing). I
>have no idea what has filled up the drive space. I suspect some sort
>of log file or files. I guess I should have done an ‘ls –lR /’ to
>really see what is in the partition.

Chech the output of

du -dak / | sort -n | tail

pne.c...@comcast.net

unread,
Apr 1, 2009, 1:29:58 PM4/1/09
to
Thanks for all the resposnses.

I eventually gave up and reinstalled Solaris 10 from scratch after
backing everything up. I managed to get on the internet with DHCP,
which I hadn't been able to do with Solaris 9 and after upgrading from
Solaris 9 to Solaris 10.

I never did find out exactly why /var kept filling up but I did pin it
down a bunch of 'core' files in /var/fm/fmd or some such.

I DID buy a book on Solaris 10 and I'm reading now.

Eric

ThanksButNo

unread,
Apr 1, 2009, 3:49:11 PM4/1/09
to
FYI, the following is a script that I use whenever
a partition gets full or too close to full:

#!/bin/sh
/bin/echo "Results in kilobytes:"
if [ $# = 0 ]; then
/usr/bin/du -k -s * | sort -n | /bin/awk \
'{printf(" %9d %s\n",$1,$2);t+=$1} \
END{printf("----------\n%10d kilobytes\n",t)}'
else
/usr/bin/du -k -s $* | sort -n | /bin/awk \
'{printf(" %9d %s\n",$1,$2);t+=$1} \
END{printf("----------\n%10d kilobytes\n",t)}'
fi

There is actually a little more to it, as my original also has
options for printing out in megabytes or gigabytes, but that's
just a matter of dividing the number by the appropriate constant,
so it's not presented here.

I call it "dirsp", which is probably not the best name, but it's
short and hasn't been used by anything else yet.

Run it by first "cd" to the directory in question, then "dirsp".
Or, you can give it a directory as a parameter.

The biggest advantage I find is in sorting the output by size.
So I can "cd" into the sub-directory that's using up the most
space, then repeat the operation. I continue this way until I
isolate the file(s), director(ies) that are getting unusually
large. Then, knowing the perpetrator, I can do something about it.

It's too small and simple to take credit, but I hope someone might
find it useful.

/:-/

David Combs

unread,
Apr 27, 2009, 10:48:29 PM4/27/09
to
In article <053e4059-5f8b-4e00...@e25g2000vbe.googlegroups.com>,
ThanksButNo <no.no....@gmail.com> wrote:
...

>
>The biggest advantage I find is in sorting the output by size.
>So I can "cd" into the sub-directory that's using up the most
>space, then repeat the operation. I continue this way until I
>isolate the file(s), director(ies) that are getting unusually
>large. Then, knowing the perpetrator, I can do something about it.
>

Try xdu -- takes as input the output from a du, then shows
it graphically -- nested boxes (size represents size).

David


0 new messages