[LU-13849] lfs project -p 1 failed to set xattr for '/mnt/lustre/test_pcc_ro_auto' Created: 03/Aug/20  Updated: 07/Aug/20  Resolved: 07/Aug/20

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Vikentsi Lapa Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

During attempt to verify auto  cache PCC RO step to  change project ID to file was used.

It completed with the error message

lfs project -p 1 /mnt/lustre/test_pcc_ro_auto
lfs: failed to set xattr for '/mnt/lustre/test_pcc_ro_auto': Operation not supported

This is not directly related to PCC RO feature itself, but Project ID attribute is mentioned in all instructions and examples.

From kernel messages

[Mon Aug 3 15:48:17 2020] LustreError: 5582:0:(osd_handler.c:3034:osd_quota_transfer()) dm-0: quota transfer failed: rc = -95. Is project enforcement enabled on the ldiskfs filesystem?

Additional example, for some reason when Project ID is 0 command completed without error.

lfs project -p 0 /mnt/lustre/test_pcc_ro_auto

Build version used for test

rpm -qa | grep lustre
lustre-osd-ldiskfs-mount-2.13.55_3_gaaa3279-1.el7.x86_64
kmod-lustre-tests-2.13.55_3_gaaa3279-1.el7.x86_64
kmod-lustre-2.13.55_3_gaaa3279-1.el7.x86_64
lustre-2.13.55_3_gaaa3279-1.el7.x86_64
lustre-iokit-2.13.55_3_gaaa3279-1.el7.x86_64
lustre-tests-2.13.55_3_gaaa3279-1.el7.x86_64
kernel-3.10.0-1127.8.2.el7_lustre.x86_64
kmod-lustre-osd-ldiskfs-2.13.55_3_gaaa3279-1.el7.x86_64



 Comments   
Comment by Vikentsi Lapa [ 05/Aug/20 ]

To specify file Project ID it is necessary to enable quota feature. 

According to the Lustre manual.

The project quota feature is disabled by default, and tune2fs needs to be run to enable every target manually."

To turn on user, group, and project quotas for block only on file system testfs1, on the MGS run:

mgs# lctl conf_param testfs1.quota.ost=ugp

Generated at Sat Feb 10 03:04:44 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.