Apps Lists wrote:
>Hi folks.
>
>I''m trying to get quotas working in 1.4.6 using Linux 2.6.9. After
>setting quota with:
>
>lfs setquota -u 121030 0 1000 0 0 /var/mailstore
>
>.... lfs quota returns:
>
>lfs quota -u 121030 /var/mailstore
>Disk quotas for user 121030 (uid 121030):
> Filesystem blocks quota limit grace files quota limit
>grace
> /var/mailstore 0 0 1000 0 0 0
> mds-test_UUID 0 0 102400 0 0 5000
> ost-test_UUID 0 0 102400
>
>.... which seems to indicate a quota of 1000. I''m not sure what
the
>numbers for mds and ost are, but those appear to be what the system is
>enforcing:
>
>bash-3.00$ dd if=/dev/zero of=foo bs=1024
>dd: writing `foo'': Disk quota exceeded
>132969+0 records in
>132968+0 records out
>-bash-3.00$ ls -l foo
>-rw-r--r-- 1 steve mail 136159232 Jul 10 15:47 foo
>-bash-3.00$ du -sk .
>133140 .
>
>I seem to get about the same thing back when setting a really low quota...
>
>lfs setquota -u 121030 0 100 0 0 /var/mailstore
>
>lfs quota -u 121030 /var/mailstore
>Disk quotas for user 121030 (uid 121030):
> Filesystem blocks quota limit grace files quota limit
>grace
> /var/mailstore 134324* 0 100 8 0 0
> mds-test_UUID 24 0 102400 8 0 5000
> ost-test_UUID 134300* 0 102400
>
>-bash-3.00$ dd if=/dev/zero of=foo bs=1024000
>dd: writing `foo'': Disk quota exceeded
>135+0 records in
>134+0 records out
>-bash-3.00$ ls -l foo
>-rw-r--r-- 1 steve mail 137371648 Jul 10 15:52 foo
>-bash-3.00$ du -sk .
>134324 .
>-bash-3.00$
>
>Am I doing something wrong?
>
>
Hi Steve,
Lustre quota is managed in qunit granularity, the default block quota
unit is 100M bytes and
the default file quota unit is 5000 inodes (the qunit size can be
changed in proc file of MDS
and OSS, you can find quota_btune_sz and quota_iunit_sz in proc filesystem)
I think there will be a detail manual for quota soon, which explains the
output of ''lfs quota''
and how to set quota limit according to qunit size.
Thanks
- Niu