Hi, I followed the description of Niu (https://mail.clusterfs.com/pipermail/lustre-discuss/2006-June/001572.html), but can''t enable the quotas (lustre-1.4.9) [99611.830544] LustreError: 32284:0: (fsfilt-ldiskfs.c:1884:fsfilt_ldiskfs_quotacheck()) quotacheck failed: rc = -22 [99611.840778] LustreError: 32284:0: (quota_check.c:90:target_quotacheck_thread()) ost1: fsfilt_quotacheck: -22 Any ideas whats going on? Looking myself into the sources, it seems to fail in fsfilt_ext3.c fsfilt_ext3_quotacheck(). However, this function is rather large, and I would have to add several printks to figure out where it fails there. All those goto''s in this function seem to be macros which could probably help to debug the problem. Unfortunately so far I didn''t figure out how to enable their debugging output. Thanks in advance, Bernd -- Bernd Schubert Q-Leap Networks GmbH / transtec AG / ttec
On Tue, Mar 20, 2007 at 02:50:55PM +0100, Bernd Schubert wrote:> [99611.830544] LustreError: 32284:0: > (fsfilt-ldiskfs.c:1884:fsfilt_ldiskfs_quotacheck()) quotacheck failed: rc > = -22 > [99611.840778] LustreError: 32284:0: > (quota_check.c:90:target_quotacheck_thread()) ost1: fsfilt_quotacheck: -22 > > > Any ideas whats going on?If you are running a kernel newer than 2.6.12 on the lustre servers, you can try to add the ''quota'' option to the mountfsoptions of both mdt and osts. For more information, you can take a look at this patch: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1f54587bea84a35125c95e19b98c2f464c50871b And more particularly: @@ -2361,6 +2376,8 @@ static int ext3_quota_on(struct super_block *sb, int type, int format_id, int err; struct nameidata nd; + if (!test_opt(sb, QUOTA)) + return -EINVAL; /* Not journalling quota? */ if (!EXT3_SB(sb)->s_qf_names[USRQUOTA] && !EXT3_SB(sb)->s_qf_names[GRPQUOTA]) Johann
> If you are running a kernel newer than 2.6.12 on the lustre servers, you > can try to add the ''quota'' option to the mountfsoptions of both mdt and > osts.Thanks, this solved our problem. -- Bernd Schubert Q-Leap Networks GmbH / transtec AG / ttec