Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 2010 16:38:46 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-fs@FreeBSD.ORG, fbsd@dannysplace.net, torbjoern@gmail.com
Subject:   Re: Strange ZFS problem, filesystem claims to be full when clearly  not full
Message-ID:  <201009301438.o8UEckoY019473@lurza.secnetix.de>
In-Reply-To: <4CA45444.6070002@dannysplace.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Danny Carroll <fbsd@dannysplace.net> wrote:
 > [...]
 > It certainly smells like a process still writing to a file that is unlinked.
 > I wonder if it would show up with lsof.

If it's a file that was unlinked that is still held open by
a process, then lsof will definitely list it.  The command

# lsof +L1

lists all open files with a link count of zero.  You can
restrict it to a certain file system like this:

# lsof +aL1 /var

Of course, lsof won't list the file name because the file
doesn't have a name anymore.  But it lists the process by
name, PID and user, the file system and the file size.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"IRIX is about as stable as a one-legged drunk with hypothermia
in a four-hundred mile per hour wind, balancing on a banana
peel on a greased cookie sheet -- when someone throws him an
elephant with bad breath and a worse temper."
        -- Ralf Hildebrandt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009301438.o8UEckoY019473>