Re: df -h reporting weird numbers (FreeBSD 4.8)

From: Rob (listone_at_deathbeforedecaf.net)
Date: 05/31/03

  • Next message: admin: "cucipop support mail list"
    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"


  • Next message: admin: "cucipop support mail list"

    Relevant Pages