[Lustre-discuss] setquota fails
Andrew Perepechko
Andrew.Perepechko at Sun.COM
Fri Nov 28 09:06:33 PST 2008
Thomas,
setquota (from quota-tools) would not work with Lustre filesystems, so
you cannot run it like "~# setquota -u troth 0 0 0 0 /lustre".
lfs can be used either to set quota limits or to reset them and
" ~# lfs setquota -u troth 0 0 0 0 /lustre" is the correct way to
reset quotas.
AFAIU, the cause of "Device or resource busy" when setting quota
in your case could be that MDS was performing setquota or quota recovery
for the user roth. Could you check whether MDS is stuck inside
mds_set_dqblk or mds_quota_recovery functions (you can dump
strack traces of running threads into kernel log with alt-sysrq-t provided
sysctl variable kerne.sysrq equals 1)?
Andrew.
On Friday 28 November 2008 17:50:51 Thomas Roth wrote:
> Hi all,
>
> on an empty and unused Lustre 1.6.5.1 system I cannot reset or set the
>
> quota:
> > ~# lfs quota -u troth /lustre
> > Disk quotas for user troth:
> > Filesystem kbytes quota limit grace files quota
>
> limit grace
>
> > /lustre 4 3072000 309200 1 11000 10000
> > MDT0000_UUID
> > 4* 1 1 6400
> > OST0000_UUID
> > 0 16384
>
> Try to reset this quota:
> > ~# lfs setquota -u troth 0 0 0 0 /lustre
> > setquota failed: Device or resource busy
>
> Use "some" values instead:
> > ~# lfs setquota -u troth 104000000 105000000 100000 100000 /lustre
> > setquota failed: Device or resource busy
>
> I know the manual says not to use "lfs setquota" to reset quotas but -
> that is yet another question - of course there is a command "setquota",
> but it doesn't know about Lustre
>
> > ~# setquota -u troth 0 0 0 0 /lustre
> > setquota: Mountpoint (or device) /lustre not found.
> > setquota: Not all specified mountpoints are using quota.
>
> as is to be expected. Mistake in the manual?
>
> However I'm mainly interested in what causes my system to be busy, when
> it is not - no writes, not even reads.
> I did rerun "lfs quotacheck", but that didn't help, either.
>
> Anybody got any hints what to do to manipulate quotas?
>
> Thanks,
> Thomas
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss
More information about the lustre-discuss
mailing list