xfs
[Top] [All Lists]

Re: XFS - forcing quotacheck.

To: Claus Jeppesen <jeppesen@xxxxxxxxxxxxxx>
Subject: Re: XFS - forcing quotacheck.
From: Tim Shimmin <tes@xxxxxxx>
Date: Mon, 5 Sep 2005 13:57:10 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20050904113438.5j38mhi32ce9yc44@xxxxxxxxxxxxxxxxxxxxxx>; from jeppesen@xxxxxxxxxxxxxx on Sun, Sep 04, 2005 at 11:34:38AM +0200
References: <20050904113438.5j38mhi32ce9yc44@xxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
Hi Claus,

On Sun, Sep 04, 2005 at 11:34:38AM +0200, Claus Jeppesen wrote:
> 
> Gentle people,
> 
> I've experienced that XFS can loose synchronization between content in the
> filesystem and quota infomation. I would very much like to know what one 
> should
> do in order to force a 'quotachek' ?
> 
> Is there a 'bit' one can switch on, by xfs_db e.g., which would force a
> quotacheck the next time the filesystem is mounted with quota turned on ? -
Yes, see below.

A quotacheck is supposed to happen on mount with quotas if previously it
has been mounted without quotas.
This, however, was broken for quite a while until recently.
If you have access to the cvs xfs kernel source and build your own kernel then
this was fixed on August 4th. 
Alternatively, you can unmount the fs and clear the sb_qflags value in the
1st superblock using xfs_db and then mount again with quotas.
    $ xfs_db -x -c 'sb 0' -c 'write qflags 0' $device

--Tim


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