Re: df -h reporting weird numbers (FreeBSD 4.8)
From: Rob (listone_at_deathbeforedecaf.net)
Date: 05/31/03
- Previous message: Joshua Oreman: "Re: sleep for specified time"
- In reply to: Joel V: "df -h reporting weird numbers (FreeBSD 4.8)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: "Joel V" <joel@starman.ee> Date: Sat, 31 May 2003 08:33:20 +0930
On my (much smaller) disk, this is the output for root:
/dev/ad0s1a 126M 42M 74M 36% /
And 42M + 74M is only 166M - 10M missing?
Using dumpfs(8), I see that the value of minfree is 8%:
magic 11954 time Tue May 27 07:38:32 2003
[ ...snip... ]
minfree 8% optim time maxcontig 7 maxbpg 4096
And 8% of 126M is 10M, which works out just right. So df(1) is reporting
the space available to non-root users, not the actual free space on the
filesystem.
You can use tunefs(8) to change minfree - 8% is the default. The manpage
says that this isn't a good idea, but it may depend on the size of the
filesystem.
I've noticed that Solaris used to set the same default minfree for
everything, but recent versions make it much smaller (down to 1%) on
very large disks. This may or may not be a good idea for FreeBSD - I
don't know enough about filesystems.
----- Original Message -----
From: "Joel V" <joel@starman.ee>
To: <freebsd-questions@freebsd.org>
Sent: Saturday, May 31, 2003 2:48 AM
Subject: df -h reporting weird numbers (FreeBSD 4.8)
> /dev/ad0s1g 108G 5.2G 95G 5% /usr
> /dev/ad2s1e 55G 428M 50G 1% /mnt/backups
>
> Okey, 55GB minus 0.5GB should be 54.5GB according to my math. I wont
> even mention /usr. Where are the missing gigabytes?
> Btw, drive is 60GB WD special edition, works perfectly, checked the
> drive with Data Lifeguard etc. Filesystem is UFS.
> This is the entry in fstab:
>
> /dev/ad0s1g /usr ufs rw,userquota 2
> 2
> /dev/ad2s1e /mnt/backups ufs rw 2
> 3
>
>
>
> Cheers.
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Joshua Oreman: "Re: sleep for specified time"
- In reply to: Joel V: "df -h reporting weird numbers (FreeBSD 4.8)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- Re: df and du results on / strange
... When the filesystem is created 5%-10% of the total disk space will be ...
reserved by the filesystem as 'minfree'. ... Also remember that du reports disk blocks
used. ... (Debian-User) - Re: LVM2 resize problem
... I can do a resize of filesystem, but I can do a pvmove. ... and the section
13.5 "Removing an old disk". ... Since I don't have the exact specs, I ...
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... (Debian-User) - Re: Trials and tribulations on mirroring....
... Karl Denninger Internet Consultant & Kids Rights Activist ... >> to set
up the pre-existing disk, which I booted from, ... >> strongly imply that this works
for a root filesystem and boot drive - ... > To unsubscribe, ... (freebsd-stable) - Re: File system error
... > Filesystem Size Used Avail Capacity Mounted on ... > I have deleted
some files but it does not restore the used disk. ... To unsubscribe, ...
(freebsd-questions) - Re: When File Systems Become Full
... > BTW, what's minfree? ... in my experience Solaris handles disk
filling up ... to be creating or extending files in the affected filesystem. ...
(comp.unix.solaris)