On Thu, 14 Jan 2021 at 17:12, Andrew Elwell <andrew.elw...@gmail.com> wrote: > I'm struggling to debug quota enforcement (or more worryingly, lack > of) in recentish LTS releases. > > [root@pgfs-mds3 ~]# lctl conf_param testfs.quota.ost=g > ... time passes > [root@pgfs-mds4 ~]# lctl get_param osd-*.*.quota_slave.info | egrep > '(name|enabled)' > target name: testfs-OST0000 > quota enabled: none > target name: testfs-OST0001 > quota enabled: none > > doesn't seem to be rippling out.
Not sure I've done the right thing, but poking via lctl set_param osd-ldiskfs.<whatever>.quota_slave.enabled=<whatever> *seems* to have done the trick! [root@pgfs-mds3 ~]# lctl get_param osd-*.*.quota_slave.info osd-ldiskfs.testfs-MDT0000.quota_slave.info= target name: testfs-MDT0000 pool ID: 0 type: md quota enabled: ug conn to master: setup space acct: ug user uptodate: glb[1],slv[1],reint[0] group uptodate: glb[1],slv[1],reint[0] project uptodate: glb[0],slv[0],reint[0] [root@pgfs-mds3 ~]# lctl get_param osd-ldiskfs.*.quota_slave.enabled osd-ldiskfs.testfs-MDT0000.quota_slave.enabled=ug [root@pgfs-mds3 ~]# lctl set_param osd-ldiskfs.testfs-MDT0000.quota_slave.enabled=g osd-ldiskfs.testfs-MDT0000.quota_slave.enabled=g [root@pgfs-mds3 ~]# lctl get_param osd-*.*.quota_slave.info osd-ldiskfs.testfs-MDT0000.quota_slave.info= target name: testfs-MDT0000 pool ID: 0 type: md quota enabled: g conn to master: setup space acct: ug user uptodate: glb[1],slv[1],reint[0] group uptodate: glb[1],slv[1],reint[0] project uptodate: glb[0],slv[0],reint[0] Another Q - if I use the 2.12+ default quota feature (ie sudo lfs setquota -G -B 10m -I 1025 /testfs) and then read/write with an old client will it enforce the quotas (even if I can't manipulate / display them clearly) OK or is Something Bad (tm) going to happen behind the scenes? - it _seemed_ to be behaving as expected from a client side (2.7.mumble) Many thanks Andrew _______________________________________________ lustre-discuss mailing list lustre-discuss@lists.lustre.org http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org