[Bugs] [Bug 1668995] New: DHT: Provide a virtual xattr to get the hash subvol for a file

bugzilla at redhat.com bugzilla at redhat.com
Thu Jan 24 05:38:40 UTC 2019


https://bugzilla.redhat.com/show_bug.cgi?id=1668995

            Bug ID: 1668995
           Summary: DHT: Provide a virtual xattr to get the hash subvol
                    for a file
           Product: Red Hat Gluster Storage
           Version: 3.4
            Status: NEW
         Component: distribute
          Assignee: nbalacha at redhat.com
          Reporter: nbalacha at redhat.com
        QA Contact: tdesala at redhat.com
                CC: bugs at gluster.org, rhs-bugs at redhat.com,
                    sankarshan at redhat.com, storage-qa-internal at redhat.com
        Depends On: 1624244
  Target Milestone: ---
    Classification: Red Hat



+++ This bug was initially created as a clone of Bug #1624244 +++

Description of problem:
There is no easy way to figure out the hashed subvol for a particular file.
Currently, we need to read the trusted.glusterfs.dht xattr for the parent
directory from each brick, calculate the file hash and compare it against the
dir layout to determine the correct brick. This is time consuming and tedious,
especially with larger volumes and customer setups.

Provide a getfattr interface to allow users to figure out the hashed subvolume
for a file based on the in memory layout of the parent directory.

This becomes more critical to allow easier debugging as lookup-optimize is
enabled for volumes. 

Credit: rgowdapp at redhat.com for the idea.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Worker Ant on 2018-08-31 07:01:58 UTC ---

REVIEW: https://review.gluster.org/21052 (cluster/dht:  Rework the debug xattr
to get hashed subvol) posted (#1) for review on master by N Balachandran

--- Additional comment from Worker Ant on 2018-09-07 08:57:00 UTC ---

COMMIT: https://review.gluster.org/21052 committed in master by "N
Balachandran" <nbalacha at redhat.com> with a commit message- cluster/dht:  Rework
the debug xattr to get hashed subvol

The earlier implementation required the file to already exist
when trying to get the hashed subvol. The reworked implementation
allows a user to get the hashed subvol for any filename, whether
it exists or not.

Usage: getfattr -n "dht.file.hashed-subvol.<filename>" <parent dir>

Eg:To get the hashed subvol for file-1 inside dir-1

getfattr -n "dht.file.hashed-subvol.file-1" /mnt/gluster/dir1



Change-Id: Iae20bd5f56d387ef48c1c0a4ffa9f692866bf739
fixes: bz#1624244
Signed-off-by: N Balachandran <nbalacha at redhat.com>

--- Additional comment from Shyamsundar on 2018-10-23 15:18:02 UTC ---

This bug is getting closed because a release has been made available that
should address the reported issue. In case the problem is still not fixed with
glusterfs-5.0, please open a new bug report.

glusterfs-5.0 has been announced on the Gluster mailinglists [1], packages for
several distributions should become available in the near future. Keep an eye
on the Gluster Users mailinglist [2] and the update infrastructure for your
distribution.

[1] https://lists.gluster.org/pipermail/announce/2018-October/000115.html
[2] https://www.gluster.org/pipermail/gluster-users/


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1624244
[Bug 1624244] DHT: Rework the virtual xattr to get the hash subvol
-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Bugs mailing list