Bug 789858

Summary: Provide a mechanism to clear locks on an inode.
Product: [Community] GlusterFS Reporter: krishnan parthasarathi <kparthas>
Component: locksAssignee: krishnan parthasarathi <kparthas>
Status: CLOSED CURRENTRELEASE QA Contact: Raghavendra Bhat <rabhat>
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, joe, nsathyan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 18:00:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: glusterfs-3.3.0qa43 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 817967    

Description krishnan parthasarathi 2012-02-13 06:38:09 UTC
Description of problem:
Need a mechanism accessible to (glusterfs) administrator to clear locks held on an inode. The locks include posix locks and gluster-internal locks.
This feature attempts to mitigate deadlocks/stale-lock situation without a complete restart of the volume.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Anand Avati 2012-02-14 10:49:05 UTC
CHANGE: http://review.gluster.com/2551 (locks: Added a getxattr interface to clear locks on a given inode.) merged in master by Vijay Bellur (vijay)

Comment 2 Anand Avati 2012-02-17 12:51:01 UTC
CHANGE: http://review.gluster.com/2552 (cli, glusterd : Added support for clear-locks command.) merged in master by Vijay Bellur (vijay)

Comment 3 Anand Avati 2012-02-24 13:14:07 UTC
CHANGE: http://review.gluster.com/798 (locks: Made dump locks formatting more 'readable'.) merged in master by Vijay Bellur (vijay)

Comment 4 Anand Avati 2012-03-07 18:17:47 UTC
CHANGE: http://review.gluster.com/2882 (protocol/client: Added lk_ctx info in fdctx dump) merged in master by Vijay Bellur (vijay)

Comment 5 Raghavendra Bhat 2012-05-24 10:00:23 UTC
gluster volume clear-locks
Usage: volume clear-locks <VOLNAME> <path> kind {blocked|granted|all}{inode [range]|entry [basename]|posix [range]}


With the above command the locks on a inode (by giving the path) can be cleared.

Comment 6 Joe Julian 2012-05-27 17:54:43 UTC
*** Bug 817763 has been marked as a duplicate of this bug. ***