Bug 1146830
Summary: | Enabling Quota on existing data won't create pgfid xattrs | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Raghavendra G <rgowdapp> | |
Component: | quota | Assignee: | Vijaikumar Mallikarjuna <vmallika> | |
Status: | CLOSED ERRATA | QA Contact: | Saurabh <saujain> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | high | |||
Version: | rhgs-3.0 | CC: | amainkar, mzywusko, nbalacha, nsathyan, rgowdapp, rhs-bugs, sharne, smohan, storage-qa-internal, surs, vagarwal, vmallika | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | RHGS 3.0.3 | Flags: | sharne:
needinfo+
|
|
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.6.0.32-1 | Doc Type: | Bug Fix | |
Doc Text: |
Previously, enabling Quota on Red Hat Storage 3.0 did not create pgfid extended attributes on existing data. The pgfid extended attributes are used to construct the ancestry path (from the file to the volume root) for nameless lookups on files. As NFS relies heavily on nameless lookups, quota enforcement through NFS would be inconsistent if quota were to be enabled on a volume with existing data. With this fix, the pgfid xattrs in the lookup on the existing data are healed.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1147378 (view as bug list) | Environment: | ||
Last Closed: | 2015-01-15 13:40:22 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1087818, 1147378, 1147953, 1153907, 1162694 |
Description
Raghavendra G
2014-09-26 08:04:15 UTC
However, on newly created files, xattr is created as can be seen below: [root@booradley 6]# touch /mnt/glusterfs/1/2/3/4/5/6/newfile [root@booradley 6]# ls /mnt/glusterfs/1/2/3/4/5/6/ file newfile [root@booradley 6]# getfattr -d -m. -e hex /home/export/dist1/1/2/3/4/5/6/newfile getfattr: Removing leading '/' from absolute path names # file: home/export/dist1/1/2/3/4/5/6/newfile security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a686f6d655f726f6f745f743a733000 trusted.gfid=0x125f6c9c0a3f4c439baab1721119b1ba trusted.glusterfs.quota.11e18af2-ecda-4445-8fc7-e0f49d847b39.contri=0x0000000000000000 trusted.pgfid.11e18af2-ecda-4445-8fc7-e0f49d847b39=0x00000001 As can be seen above trusted.pgfid.xxxx xattr is created on newfile. Please review and sign-off edited doc text. Patch submitted: https://code.engineering.redhat.com/gerrit/#/c/35659/ Executed on build glusterfs-3.6.0.33-1.el6rhs.x86_64 and found that pgfid is there for existing data. [root@nfs1 ~]# getfattr -d -m . -e hex /rhs/brick1/d1r1/dir3/file_1156 getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d1r1/dir3/file_1156 trusted.afr.vol0-client-0=0x000000000000000000000000 trusted.afr.vol0-client-1=0x000000000000000000000000 trusted.gfid=0x92cecd3ca3a24b1eb2ada1bd30af7a18 [root@nfs1 ~]# [root@nfs1 ~]# [root@nfs1 ~]# [root@nfs1 ~]# [root@nfs1 ~]# [root@nfs1 ~]# gluster volume quota vol0 enable volume quota : success [root@nfs1 ~]# ps -eaf | grep quota root 1896 2735 0 06:14 pts/0 00:00:00 grep quota root 24733 1 0 06:09 ? 00:00:00 /usr/sbin/glusterfs -s localhost --volfile-id vol0 -l /var/log/glusterfs/quota-mount-vol0.log -p /var/run/gluster/vol0.pid --client-pid -5 /var/run/gluster/vol0/ root 24740 1 0 06:09 ? 00:00:00 /usr/sbin/glusterfs -s localhost --volfile-id gluster/quotad -p /var/lib/glusterd/quotad/run/quotad.pid -l /var/log/glusterfs/quotad.log -S /var/run/22dccfe66cbd2039a66bb083faf48156.socket --xlator-option *replicate*.data-self-heal=off --xlator-option *replicate*.metadata-self-heal=off --xlator-option *replicate*.entry-self-heal=off [root@nfs1 ~]# [root@nfs1 ~]# getfattr -d -m . -e hex /rhs/brick1/d1r1/dir3/file_1156 getfattr: Removing leading '/' from absolute path names # file: rhs/brick1/d1r1/dir3/file_1156 trusted.afr.vol0-client-0=0x000000000000000000000000 trusted.afr.vol0-client-1=0x000000000000000000000000 trusted.gfid=0x92cecd3ca3a24b1eb2ada1bd30af7a18 trusted.glusterfs.quota.59edb169-9500-4b10-8e5d-4f857226f1a8.contri=0x0000000001b3d800 trusted.pgfid.59edb169-9500-4b10-8e5d-4f857226f1a8=0x00000001 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0038.html |