phantom quota usage for user with no files ... ?
Oliver Fromme
olli at lurza.secnetix.de
Mon Mar 26 11:11:57 UTC 2007
Gore Jarold wrote:
> Steven Hartland wrote:
> > Files which where open at the time and hence still have references
> > similar to how deleted files still take up space until the last
> > handle is closed.
>
> Can you tell me, how do I:
>
> a) see those handles (ps auxw|grep USERNAME showed nothing)
You can easily use lsof for that. To list deleted open
files with link count 0, use this command: lsof +L1
> b) remove/clear them ?
That depends on the programs that keep the files open.
Some programs close the file handles when you send them
a SIGHUP signal (i.e. "kill -HUP <PIDs>"). The PIDs are
displayed by the lsof command above. If that doesn't
help, terminate the processes forcibly, if necessary.
When a process terminates, all of its file desciptors
are closed automatically.
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
We're sysadmins. To us, data is a protocol-overhead.
More information about the freebsd-fs
mailing list