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
|