Bug 789858 - Provide a mechanism to clear locks on an inode.
Summary: Provide a mechanism to clear locks on an inode.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: locks
Version: mainline
Hardware: All
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: krishnan parthasarathi
QA Contact: Raghavendra Bhat
URL:
Whiteboard:
: 817763 (view as bug list)
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-02-13 06:38 UTC by krishnan parthasarathi
Modified: 2015-11-03 23:04 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 18:00:21 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: glusterfs-3.3.0qa43
Embargoed:


Attachments (Terms of Use)

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. ***


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