Bug 1127658
Summary: | SMB:On Cifs mount creating files and doing list or running arequal checksum fills client log with "found anomalies for /.. gfid" issue | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | surabhi <sbhaloth> | |
Component: | samba | Assignee: | Raghavendra Talur <rtalur> | |
Status: | CLOSED ERRATA | QA Contact: | surabhi <sbhaloth> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | rhgs-3.0 | CC: | divya, nlevinki, pgurusid, rtalur, sharne, spalai, surs, vagarwal | |
Target Milestone: | --- | Keywords: | Patch, ZStream | |
Target Release: | RHGS 3.0.3 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.6.0.33-1 | Doc Type: | Bug Fix | |
Doc Text: |
Previously, when the gluster volume was accessed through libgfapi, xattrs were being set on parent of the brick directories. This led to add-brick failures if new bricks were to be under the same parent directory. With this fix, xattrs are not set on the parent directory. However, existing xattrs on parent directory would remain and users must manually remove it if any add-brick failures are encountered.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1128648 (view as bug list) | Environment: | ||
Last Closed: | 2015-01-15 13:39:05 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: | 1128648 | |||
Bug Blocks: | 1087818, 1162694 |
Description
surabhi
2014-08-07 10:08:52 UTC
While doing an add-brick test saw following error : [root@dhcp159-197 /]# gluster vol add-brick afr-vol 10.16.159.197:/rhs/brick1/afr-vol/b10 10.16.159.210:/rhs/brick1/afr-vol/b11 volume add-brick: failed: parent directory /rhs/brick1/afr-vol is already part of a volume The error looks like the xattr is been set on parent directory so it is not allowing the add-brick. Workaround: To remove the xattr on parent dir and then it allows to do add-brick. Root Cause: When a lookup is sent on path "/.." for a gluster volume through gfapi, the lookup is being passed down all the way till the posix xlator. When dht discovers that the dir(parent of the brickpath) does not have any xattrs set, it initiates a heal and sets attrs. Example: /bricks/brick1. Here brick1 is the brick path and bricks dir is parent of brick1. Now we have parent dir of bricks with xattrs set. 1. Any new add-brick operation with a brickpath involving bricks as parent dir will fail because parent dir has gluster xattrs set. Example: /bricks/brick2. 2. Add brick won't fail for /newbricks/brick2 as brickpath. Patch posted at https://code.engineering.redhat.com/gerrit/#/c/36685/ Verified the BZ with glusterfs-3.6.0.33-1.el6rhs.x86_64. Executing are-equal checksum on the cifs mount doesn't logs errors in client logs. Also executed add-brick and remove-brick operations to verify if xattrs are set on parent of root.The add-brick succeeds without setting the xattr on parent. Performed sanity test and verified basic ACL's as well. Moving the BZ to verified. Raghavendra, Please review the edited doc text and sign-off. The doc text looks good to me. 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 |