Hello, we wounder whether is it possible to add OSTs to the Lustre with quota support without making it offline? We tried to do this but all quota information was lost. Despite the fact that OST was formatted with quota support we are receiving this error message: Lustre: 3743:0:(lproc_quota.c:447:lprocfs_quota_wr_type()) lustrefs-OST0016: quotaon failed because quota files don''t exist, please run quotacheck firstly The message suggest to run the quotacheck command again, but maybe there is a faster solution. Could you please someone tell us a proper procedure, or point to a proper documentation? Thank you for any help. Best wishes, Gizo Nanava
On 7/5/10 4:21 PM, Gizo Nanava wrote:> Hello, > > we wounder whether is it possible to add OSTs to the Lustre with > quota support without making it offline? > We tried to do this but all quota information was lost. Despite the fact > that OST was formatted with quota support > we are receiving this error message: > > Lustre: 3743:0:(lproc_quota.c:447:lprocfs_quota_wr_type()) > lustrefs-OST0016: quotaon failed because quota files don''t exist, please > run quotacheck firstly > > The message suggest to run the quotacheck command again, but maybe there > is a faster solution. >Quotacheck is the normal process, but it maybe some slowly. If you do not want to perform quotacheck which affect all servers, there maybe one possible solution (if the OST to be added is a clean one): build another small lustre locally and perform quotacheck on such lustre system, and then umount one of OST and remount it as ldiskfs (and mount target OST to be added as ldiskfs also), cope the lquota_v2.user / lquota_v2.group to the target OST, remount the target OST as lustre. The basic idea is to generate lquota_v2.user / lquota_v2.group without quotacheck on target Lustre system, there are other similar ways for that. Just try, anyway it will not destroy the current Lustre system. -- Fan Yong> Could you please someone tell us a proper procedure, or point to a > proper documentation? > > Thank you for any help. Best wishes, Gizo Nanava > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss >-- Fan Yong Lustre Group
Andreas Dilger
2010-Jul-07 14:48 UTC
[Lustre-discuss] Adding OST to online Lustre with quota
On 2010-07-06, at 10:10, Fan Yong wrote:> On 7/5/10 4:21 PM, Gizo Nanava wrote: >> we wounder whether is it possible to add OSTs to the Lustre with >> quota support without making it offline? >> We tried to do this but all quota information was lost. Despite the fact >> that OST was formatted with quota support >> we are receiving this error message: >> >> Lustre: 3743:0:(lproc_quota.c:447:lprocfs_quota_wr_type()) >> lustrefs-OST0016: quotaon failed because quota files don''t exist, please >> run quotacheck firstly >> >> The message suggest to run the quotacheck command again, but maybe there >> is a faster solution. >> > > Quotacheck is the normal process, but it maybe some slowly. > > The basic idea is to generate lquota_v2.user / lquota_v2.group without > quotacheck on target Lustre system, there are other similar ways for that.To be honest, I don''t think this is a desirable solution. It should be possible to automatically create these quota files the first time that a new OST is mounted, since we know at that point that the filesystem is empty and there will be no quota usage for any user on the OST. Cheers, Andreas -- Andreas Dilger Lustre Technical Lead Oracle Corporation Canada Inc.
On 7/7/10 10:48 PM, Andreas Dilger wrote:> On 2010-07-06, at 10:10, Fan Yong wrote: > >> On 7/5/10 4:21 PM, Gizo Nanava wrote: >> >>> we wounder whether is it possible to add OSTs to the Lustre with >>> quota support without making it offline? >>> We tried to do this but all quota information was lost. Despite the fact >>> that OST was formatted with quota support >>> we are receiving this error message: >>> >>> Lustre: 3743:0:(lproc_quota.c:447:lprocfs_quota_wr_type()) >>> lustrefs-OST0016: quotaon failed because quota files don''t exist, please >>> run quotacheck firstly >>> >>> The message suggest to run the quotacheck command again, but maybe there >>> is a faster solution. >>> >>> >> Quotacheck is the normal process, but it maybe some slowly. >> >> The basic idea is to generate lquota_v2.user / lquota_v2.group without >> quotacheck on target Lustre system, there are other similar ways for that. >> > To be honest, I don''t think this is a desirable solution. It should be possible to automatically create these quota files the first time that a new OST is mounted, since we know at that point that the filesystem is empty and there will be no quota usage for any user on the OST. >Right, that is the expected solution, but it is not supported yet. The above is just a hack based on existing mechanism. Regards, -- Fan Yong> Cheers, Andreas > -- > Andreas Dilger > Lustre Technical Lead > Oracle Corporation Canada Inc. > >-- Fan Yong Lustre Group
Lundgren, Andrew
2010-Jul-08 23:37 UTC
[Lustre-discuss] Adding OST to online Lustre with quota
Can you explain how to do this, or provide sample files that we can use as well as where to place them? -----Original Message----- It should be possible to automatically create these quota files the first time that a new OST is mounted, since we know at that point that the filesystem is empty and there will be no quota usage for any user on the OST. Cheers, Andreas -- Andreas Dilger Lustre Technical Lead Oracle Corporation Canada Inc. _______________________________________________