Bug 1143960 - Add logs in Posix to detect multiple directories having same gfid
Summary: Add logs in Posix to detect multiple directories having same gfid
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: RHGS 3.0.1
Assignee: Raghavendra G
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On: 1105082
Blocks: 1139774
TreeView+ depends on / blocked
 
Reported: 2014-09-18 10:32 UTC by Raghavendra G
Modified: 2015-05-13 17:28 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.6.0.29-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-29 07:46:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1315 0 normal SHIPPED_LIVE Red Hat Storage 3.0 enhancement and bug fix update #1 2014-09-29 11:46:00 UTC

Description Raghavendra G 2014-09-18 10:32:02 UTC
Description of problem:
consider following steps on a distribute volume

1. rename (src, dst) on hashed subvolume
2. snapshot taken
3. restore snapshots and do stat on src and dst

Now, we end up with two directories src and dst having same gfid,
because of distribute creating directories on non-existent subvolumes
as part of directory healing.

This can happen even with race between rename and directory healing in
dht-lookup. This can lead to undefined behaviour while accessing any
of both directories. Hence, we are logging paths of both
directories, so that a sysadmin can take some corrective action when
(s)he sees this log. One of the corrective action can be to copy
contents of both directories from backend into a new directory and
delete both directories.

Since effort involved to fix this issue is non-trivial, giving this
workaround till we come up with a fix.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nagaprasad Sathyanarayana 2014-09-18 12:25:57 UTC
Downstream patch URL: https://code.engineering.redhat.com/gerrit/#/c/32942/

Comment 3 errata-xmlrpc 2014-09-29 07:46:52 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-1315.html


Note You need to log in before you can comment on or make changes to this bug.