From owner-freebsd-fs@FreeBSD.ORG Mon Mar 26 11:11:57 2007 Return-Path: X-Original-To: freebsd-fs@FreeBSD.ORG Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9434016A404 for ; Mon, 26 Mar 2007 11:11:57 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 1D91D13C45A for ; Mon, 26 Mar 2007 11:11:56 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wfgjaj@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l2QBBort009057; Mon, 26 Mar 2007 13:11:55 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l2QBBo7L009056; Mon, 26 Mar 2007 13:11:50 +0200 (CEST) (envelope-from olli) Date: Mon, 26 Mar 2007 13:11:50 +0200 (CEST) Message-Id: <200703261111.l2QBBo7L009056@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, Steven Hartland , gore_jarold@yahoo.com In-Reply-To: <55882.43410.qm@web63013.mail.re1.yahoo.com> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 26 Mar 2007 13:11:56 +0200 (CEST) Cc: Subject: Re: phantom quota usage for user with no files ... ? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, Steven Hartland , gore_jarold@yahoo.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 11:11:57 -0000 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 "). 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.