[lustre-discuss] Problems with setting projid in Lustre 2.16.1
Jacob Schwartz
Jacob.Schwartz at mobileye.com
Sun Sep 21 01:47:14 PDT 2025
Hi,
We have a problem setting projid on a folder/file in Lustre 2.16.1.
Our Lustre cluster is based on Almalinux 9.4 (kernel 5.14.0-427.13.1.el9_4.x86_64) and OpenZFS 2.2.7 which we compiled from sources (git clone of the branch 2.16.1). The Lustre clients are also based on Lustre version 2.16.1.
When trying to set a projid on a folder/file we receive the following errors, on every server on the Lustre cluster which holds the file/folder with a project id :
lfs project -p 1000 -r -s /mnt/melustre/test/"
lfs project /mnt/melustre
0 - /mnt/melustre/XXX
0 - /mnt/melustre/XXX
1000 P /mnt/melustre/test
1704967:0:(lproc_quota.c:228:lprocfs_quota_seq_show()) melustre-MDT0000-osd: failed to get rec: rc = -2
1704967:0:(lproc_quota.c:228:lprocfs_quota_seq_show()) Skipped 1 previous similar message
1704967:0:(lproc_quota.c:228:lprocfs_quota_seq_show()) melustre-MDT0000-osd: failed to get rec: rc = -2
1704967:0:(lproc_quota.c:228:lprocfs_quota_seq_show()) Skipped 1 previous similar message
We traced the issue to the following file:
ls -la /proc/fs/lustre/osd-zfs/melustre-MDTXXXXX/quota_slave/acct_project
-r--r--r-- 1 root root 0 Sep 18 16:15 /proc/fs/lustre/osd-zfs/melustre-MDTXXX/quota_slave/acct_project
ls -la /proc/fs/lustre/osd-zfs/melustre-OSTXXXXX/quota_slave/acct_project
-r--r--r-- 1 root root 0 Sep 18 16:15 /proc/fs/lustre/osd-zfs/melustre-OSTXXX/quota_slave/acct_project
lctl get_param osd-zfs.melustre-MDTXXX.quota_slave.acct_project
error: read_param: '/proc/fs/lustre/osd-zfs/melustre-MDTXXX/quota_slave/acct_project': No such file or directory
When we try to read the content of the file we receive the following message:
cat /proc/fs/lustre/osd-zfs/melustre-XXXXXXXX/quota_slave/acct_project
prj_accounting:
cat: /proc/fs/lustre/osd-zfs/melustre-XXXXXXXX/quota_slave/acct_project: No such file or directory
When we delete the projid from the Lustre filesystem the errors stops and we are able to read the content of the file:
lfs project -C -r -d /mnt/melustre/test/
lfs project /mnt/melustre
0 - /mnt/melustre/XXXX
0 - /mnt/melustre/XXXX
0 - /mnt/melustre/test
lctl get_param osd-zfs.melustre-MDTXXXX.quota_slave.acct_project
osd-zfs.melustre-MDT0000.quota_slave.acct_project=
prj_accounting:
- id: 0
usage: { inodes: 4646, kbytes: 18788 }
cat /proc/fs/lustre/osd-zfs/melustre-MDTXXXX/quota_slave/acct_project
prj_accounting:
- id: 0
usage: { inodes: 4646, kbytes: 18788 }
Can anyone assist.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20250921/358509bd/attachment.htm>
More information about the lustre-discuss
mailing list