Hi folks,
I'm struggling to debug quota enforcement (or more worryingly, lack
of) in recentish LTS releases.

our test system (2 servers shared SAS disks between them) is running
lustre-2.12.6-1.el7.x86_64
e2fsprogs-1.45.6.wc3-0.el7.x86_64
kernel-3.10.0-1160.2.1.el7_lustre.x86_64

but the storage luns have been upgraded from 2.7 onwards (maybe a
reformat at 2.10? - its a test system so gets a hard life)

couple of things
1) in the lustre manual (snapshot as at 2021-01-13) section 25.8 0
Lustre Quota Statistics
-- are these obsolete as in pre 2.4 versions?

[root@pgfs-mds4 ~]# lctl get_param lquota.testfs-OST0000.stats
error: get_param: param_path 'lquota/testfs-OST0000/stats': No such
file or directory

ie - is this what's referred to in LUDOC-362


2) how long should I have to wait for changing enforcement on MGS to
seeing it rattle out onto MDT/OSTs?

[root@pgfs-mds3 ~]# lctl get_param osd-*.*.quota_slave.info | egrep
'(name|enabled)'
target name:    testfs-MDT0000
quota enabled:  ug
[root@pgfs-mds3 ~]# lctl conf_param testfs.quota.mdt=g
[root@pgfs-mds3 ~]# mount -t lustre
/dev/mapper/TEST_MGT on /lustre/testfs-MGT type lustre
(ro,svname=MGS,nosvc,mgs,osd=osd-ldiskfs,user_xattr,errors=remount-ro)
/dev/mapper/TEST_MDT0000 on /lustre/testfs-MDT0000 type lustre
(ro,svname=testfs-MDT0000,mgsnode=10.10.36.145@o2ib4:10.10.36.145@o2ib4,osd=osd-ldiskfs,user_xattr,errors=remount-ro)
[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 ~]#

ie still showing user enforcement


similarly
[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.

Do I need to umount / tunefs --writeconf / e2fsck / whatever them? -
where do I look for debug info on what's (not) happening?

Many thanks
Andrew
_______________________________________________
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to