Re: filesystem full error with inumber

[ Available lists | Index of freebsd-stable | Month of Jul 2006 | Week of 27 Jul 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Oliver Fromme <olli@lurza.secnetix.de>
Date
27 Jul 2006 15:45:54
Subject
Re: filesystem full error with inumber
Message-ID
200607271545.k6RFjkJD040732@lurza.secnetix.de

In reply to

[ Hide this part ]
Feargal Reilly <feargal@helgrim.com> wrote:
> BTW, anybody know what the best method be for double-checking
> df's figures would be? du?

No, du(1) only sees files that have links (i.e. directory
entries). It doesn't see deleted files that occupy space
as long as processes still have them open, which can make
quite a difference. You can use the command "lsof +L1" to
check for such files. If there aren't any on the file
system in question, then the number from du(1) should be
pretty close to the number from df(1).

The df(1) tool just displays the summary records from the
file system. The only safe way to verify those numbers is
to run fsck(8) manually on the file system (possibly twice).
It will fix the summary records if necessary. Then run
df(1) again.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"To this day, many C programmers believe that 'strong typing'
just means pounding extra hard on the keyboard."
-- Peter van der Linden


Elapsed time: 0.103 seconds