xfs
[Top] [All Lists]

Re: Q: How to correct a wrong quota value on a xfs filesystem

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Q: How to correct a wrong quota value on a xfs filesystem
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Wed, 9 Jun 2004 22:46:12 -0800
In-reply-to: <200406091550.41686.krienke@uni-koblenz.de>
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <200406091550.41686.krienke@uni-koblenz.de>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Wed, Jun 09, 2004 at 03:50:37PM +0200, Rainer Krienke wrote:
> Hello,
> 
> I am running a linux fileserver (suse 8.2) with several 1000 users on it. The 
> user filesystem is xfs (1.3.1). The filesystem ist mounted with the usrquota 
> option. Basically quota work just fine.
> 
> However today a user complained because the quota system reported that he was 
> about his soft quota limit. A call of quota -v user confirmed this. However 
> this seems to be wrong. I searched the complete filesystem with find for 
> files belonging to this user oder his uid and the only files found were in 
> his HOME directory that is on this filesystem. Running du -sk on his home 
> reports only half of the size that the quota system says he is currently 
> using. 
> 
> So i wanted to check the quotas at night using quotacheck:
> 
> /sbin/quotacheck -v -m -F xfs /export/user3
> 
> However this program tells me that quotacheck for xfs need not be cheked 
> (probably because its part of the journal data?). 
> 
> So how can I correct the obviously wrong quota value of the user in question? 
> Do I have to run xfs_repair, only umount and then remount the filesystem, so 
> xfs will check the quota once again?

first run: lsof +L1

this will reveal any unlinked, open files.  these are invisible to all
fs search tools, but will continue to hold thier disk space until
whatever process holding them open, closes them.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgp77JdZOJkx1.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>