[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: df and du contradict
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: df and du contradict
- From: Michael Tang Helmeste <glassfish_(_at_)_frogbox_(_dot_)_dyndns_(_dot_)_org>
- Date: Tue, 17 Apr 2001 05:00:31 -0700 (PDT)
I've seen the same problem under FreeBSD too, with a dedicated webserver,
the hosting company mounted /bob (what's it for anyways, no clue), and it
has this:
raveni# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 388M 27M 330M 7% /
/dev/da0s1f 6.6G 4.5G 1.6G 74% /usr
/dev/da0s1e 775M 94M 619M 13% /var
procfs 4.0K 4.0K 0B 100% /proc
/dev/da1s1e 33G 15G 15G 50% /www3
/dev/da2s1e 8.3G 7.0G 675M 91% /www2
/dev/wd0s1e 9.3G 9.3G -753.5M 109% /bob
raveni#
and when I do du -h -s /bob it just takes forever, I guess since /bob is
so large.
On Tue, 17 Apr 2001, Colonel Panic wrote:
> hi
>
> i opened up the case of my trusty home server and found an old Maxtor HDD in it, wired for power but not on the IDE bus. Seeing as I was running out of space on wd0a (my only non-swap partition) i decided to add it to the system.
>
> fdisked it ok, disklabeled it ok, newfs ok, then started using cpio to copy the files from /usr to my new /mnt/usr with a view to migrating it completely...
>
> but it failed with a full file system, which seemed strange as the drive should have been 50M bigger than /usr.
>
> So I did some digging and came up with the following highly contradictory statements from df and du:
>
> bash-2.04# df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/wd0a 503M 451M 27M 94% /
> /dev/wd1a 213M 213M -10.6M 105% /mnt/usr
> /dev/wd1b 36M 1.0K 35M 0% /mnt/var
> bash-2.04# du -h -s /usr
> 193M /usr
> bash-2.04# du -h -s /mnt/usr
> 106M /mnt/usr
>
> I'm guessing a disklabel problem here, but a pointer to the right answer would be helpful.
>
> thanks
>
> cp
>
> --
> Colonel_PanicNOSPAM_(_at_)_fnmail_(_dot_)_com
>
Visit your host, monkey.org