Date: Mon, 26 Mar 2007 13:11:50 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-fs@FreeBSD.ORG, Steven Hartland <killing@multiplay.co.uk>, gore_jarold@yahoo.com Subject: Re: phantom quota usage for user with no files ... ? Message-ID: <200703261111.l2QBBo7L009056@lurza.secnetix.de> In-Reply-To: <55882.43410.qm@web63013.mail.re1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703261111.l2QBBo7L009056>