Bug 1452239

Summary: [GSS]stale gfid links exists in RHGS 3.1.3
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Riyas Abdulrasak <rnalakka>
Component: posixAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED WORKSFORME QA Contact: Rahul Hinduja <rhinduja>
Severity: medium Docs Contact:
Priority: low    
Version: rhgs-3.1CC: amukherj, atumball, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:19:14 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:    
Bug Blocks: 1472361    

Description Riyas Abdulrasak 2017-05-18 16:03:49 UTC
Description of problem:

There are gfid hardlinks for file exists in the RHGS 3.1.3 replicated volume bricks. The file doesn't exist in the brick directory but hardlink exists in the .glusterfs directory. The link count to the hardlink is 1. 


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

RHGS 3.1.3

How reproducible:

Reproducible in customer environment. 


Actual results:

stale gfid links exists in the .glusterfs directory and consume space. This causes a mismatch between the size of .glusterfs directory between the replica bricks


Expected results:

gfid link should be deleted if the file corresponding to it doesn't exist. 


Additional info:


Will be added in the next comments.

Comment 13 Amar Tumballi 2018-10-30 10:19:14 UTC
Would be great to mark this as a KBase article and close this?

Also note that this could happen in a situation with 'replica 2' and 3.1.x version... with higher versions of RHGS, and 'replica 3' we have not seen these issues!

Marked as WORKSFORME on glusterfs-3.12.2-18 + (ie, RHGS-3.4.0 and above).