Re: Hard drive 100% usage


Subject: Re: Hard drive 100% usage
From: Chris Hamilton (chris@digitalalaska.com)
Date: Tue Oct 07 2003 - 19:15:34 AKDT


du -ks *

This showed me where my problem was, thanks Peter.

My problem arose because I was trying to do a directory copy to a mapped
windows drive. This happens every night.

The drive is mapped like this

mount -t smbfs -o, etc. //servername/share /local_dir

It looks like files were copied to the /local_dir when it was not
connected to the windows box. There shouldn't actually be files on the
Linux hard drive in /local_dir. Now I just need to figure out a way to
keep the copy from being performed without that mapped drive available.

Thanks.

Chris

-----Original Message-----
From: "Peter Q. Olsson" <olsson@koyukuk.at.uaa.alaska.edu>
To: chris@digitalalaska.com
Date: Tue, 7 Oct 2003 16:32:06 -0800 (AKDT)
Subject: Re: Hard drive 100% usage

> Chris-
>
> have you used the "df" command?
>
> it should give something like:
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sdb2 33270120 25273216 6306868 81% /
> /dev/sda2 101107 16601 79285 18% /boot
> none 514944 0 514944 0% /dev/shm
> /dev/sda3 28123260 6521032 20173648 25% /u1
>
> so you can verify how much of each of the partitions is being used,
> according to
> the kernel anyway.
>
> Then you can do a "du -ks * from / to see how big the various
> directories are.
> That should tell you how much each directory under "/" has.
>
> remember that a physical disk can be partitioned in to several
> partitions, each
> of which contains a file system. for example, above you can see that
> device
> /dev/sda (the first scsi hard drive) there are 2 partitions: 2 and 3
> (sda2,
> sda3), with the first mounted as /boot and the second mounted as /u1.
> If EITHER
> ONE of these file systems, on the same disk, fills up, the operating
> system
> will be unhappy. YOu might well have /var and /tmp as seperate physical
> partitions, and one of them is full.
>
> PQO
>
>
>
> >X-Original-To: aklug@aklug.org
> >Delivered-To: aklug@aklug.org
> >Date: Tue, 07 Oct 2003 16:02:50 -0800
> >From: "Chris Hamilton" <chris@digitalalaska.com>
> >To: aklug@aklug.org
> >Subject: Hard drive 100% usage
> >X-MDRemoteIP: 127.0.0.1
> >X-Return-Path: chris@digitalalaska.com
> >X-MDaemon-Deliver-To: aklug@aklug.org
> >X-listar-version: Listar v1.0.0
> >X-original-sender: chris@digitalalaska.com
> >List-help: <mailto:listar@lib.uaa.alaska.edu?Subject=help>
> >List-unsubscribe: <mailto:aklug-request@aklug.org?subject=unsubscribe>
> >List-software: Listar version 1.0.0
> >X-List-ID: AKLUG <aklug.asimov.lib.uaa.alaska.edu>
> >List-subscribe: <mailto:aklug-request@aklug.org?subject=subscribe>
> >List-owner: <mailto:tibor@lib.uaa.alaska.edu>
> >List-post: <mailto:aklug@aklug.org>
> >X-list: aklug
> >
> >Hello, I'm trying to figure this one out. I've got a fileserver with
> 2
> >hard drives in it. One is a 3.4 GB, it has /var /tmp, etc. on it.
> The
> >second is a 30 GB that is holding user data in /home. There really
> isn't
> >much going on in the folders outside of home, other than system stuff
> and
> >logging.
> >
> >This morning we began to get error messages when users tried to access
> >files. I looked at the hard drives and found that the 3.4 GB is
> claiming
> >that it is 100% used up. I've tried to find large files, but have had
> no
> >luck.
> >
> >I've tried
> >find / -size +100000b
> >and
> >du -a
> >
> >Neither of these have turned up any huge files. I've looked through
> var
> >directory, and there aren't any huge log files taking up space.
> >
> >I'm beginning to think there may be something else going on here. Any
> >tips, suggestions out there. This is a P266, 92 MB RAM, Mandrake 8.1.
> >
> >Thanks.
> >
> >Chris
> >
> >
> >---------
> >To unsubscribe, send email to <aklug-request@aklug.org>
> >with 'unsubscribe' in the message body.
> >
>
> __________________________________________________________________
> | |
> | Dr. Peter Q. Olsson, |
> | Chief Scientist, Alaska Experimental Forecast Facility |
> | University of Alaska Anchorage |
> | 2811 Merrill Field Drive |
> | Anchorage, AK 99501
>
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Oct 07 2003 - 19:15:57 AKDT