Bug 960989
Summary: | [sanlock] Provide a command to request the release of a resource currently held by another host/pid | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Federico Simoncelli <fsimonce> |
Component: | sanlock | Assignee: | David Teigland <teigland> |
Status: | CLOSED ERRATA | QA Contact: | Leonid Natapov <lnatapov> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 6.5 | CC: | cluster-maint, cpelland, fsimonce, iheim, tlavigne |
Target Milestone: | rc | Keywords: | Rebase |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | sanlock-2.8-1 | Doc Type: | Rebase: Bug Fixes and Enhancements |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-21 11:48:38 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: | 883504 |
Description
Federico Simoncelli
2013-05-08 13:17:07 UTC
how do we test this? (In reply to Yaniv Eylon from comment #2) > how do we test this? Using a shared storage, two hosts and sanlock commands (even better python scripts). We'll add the technical details (e.g. sanlock commands or python scripts) ASAP. Here is a sequence of commands to test the capability without the need for a separate test program. It uses a shared vg "test" with a shared lv "test". host1,2: service wdmd start host1,2: service sanlock start host1: lvcreate -n test -L1G test sanlock client init -s test:0:/dev/test/test:0 sanlock client init -r test:test:/dev/test/test:1048576 host1: sanlock client add_lockspace -s test:1:/dev/test/test:0 host2: sanlock client add_lockspace -s test:2:/dev/test/test:0 host1: sanlock client command -r test:test:/dev/test/test:1048576 -c /bin/sleep 1000 (This acquires the lock then runs "sleep" for 1000 seconds.) host2: sanlock client request -r test:test:/dev/test/test:1048576:2 -f 1 (After this, the "sleep" on host1 should be killed within 30 seconds.) sanlock-2.8-1.el6.x86_64. tested according to instructions in comment #4. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1632.html |