Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1223306 - gluster volume heal info shows stale entries
gluster volume heal info shows stale entries
Status: CLOSED WORKSFORME
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: disperse (Show other bugs)
3.1
Unspecified Unspecified
medium Severity high
: ---
: ---
Assigned To: Ashish Pandey
storage-qa-internal@redhat.com
: ZStream
Depends On:
Blocks: 1223636
  Show dependency treegraph
 
Reported: 2015-05-20 05:56 EDT by Bhaskarakiran
Modified: 2018-02-09 03:40 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
gluster volume heal <volname> info shows stale entries, even after the file is deleted. This happens due to rare cases when the gfid-handle of the file is not deleted. Workaround: On the bricks where the stale entries are present, for example, <gfid:5848899c-b6da-41d0-95f4-64ac85c87d3f>, perform the following steps: 1) Check if the file's gfid handle is not deleted. # find <brick-path>/.glusterfs -type f -links 1 and check if the file <brick-path>/.glusterfs/58/48/5848899c-b6da-41d0-95f4-64ac85c87d3f appears in the output. 2) If it appears in the output, you must delete that file. # rm <brick-path>/.glusterfs/58/48/5848899c-b6da-41d0-95f4-64ac85c87d3f
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-09 03:40:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bhaskarakiran 2015-05-20 05:56:52 EDT
Description of problem:
=======================
created 1x(8+4) volume, fuse mounted on the client and created files and directories. During IO, brought down two of the bricks for some time and brough them back up. Let the IO finish and trigger heal full command. After some time, deleted all the entries from the client mount. With the heal info command, it still lists the gfid's though no entries are present on the mount.

Version-Release number of selected component (if applicable):
=============================================================
[root@transformers ~]# gluster --version
glusterfs 3.7.0 built on May 15 2015 01:31:12
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@transformers ~]# 

How reproducible:
=================
most of the times

Steps to Reproduce:
1. Create 1x(8+4) disperse volume, Fuse mount on the client
2. create files and directories, untar linux kernel into multiple directories
3. Bring down 2 of the bricks. 
4. Wait for 10 mins and bring back the bricks with gluster v start force
5. Let the IO complete.
6. Trigger full heal with gluster v heal vol full
7. Delete all the data from the client mount
8. List with gluster v heal info command

Actual results:
===============
stale entries listed with gluster v heal info

Expected results:
=================
stale entries should get deleted

Additional info:
sosreports will be attached.
Comment 3 Anjana Suparna Sriram 2015-07-27 05:44:27 EDT
Please review and sign off to be included in the Known Issues chapter
Comment 4 Pranith Kumar K 2015-07-27 05:48:22 EDT
Looks good to me Anjana.

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