Bug 1223306 - gluster volume heal info shows stale entries
Summary: gluster volume heal info shows stale entries
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: disperse
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Ashish Pandey
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1223636
TreeView+ depends on / blocked
 
Reported: 2015-05-20 09:56 UTC by Bhaskarakiran
Modified: 2018-02-09 08:40 UTC (History)
9 users (show)

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
Clone Of:
Environment:
Last Closed: 2018-02-09 08:40:19 UTC
Embargoed:


Attachments (Terms of Use)

Description Bhaskarakiran 2015-05-20 09:56:52 UTC
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 09:44:27 UTC
Please review and sign off to be included in the Known Issues chapter

Comment 4 Pranith Kumar K 2015-07-27 09:48:22 UTC
Looks good to me Anjana.


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