Bug 208976 - better error needed when volume can't be locked exclusively
better error needed when volume can't be locked exclusively
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: lvm2-cluster (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Christine Caulfield
Cluster QE
Depends On:
  Show dependency treegraph
Reported: 2006-10-02 16:09 EDT by Corey Marthaler
Modified: 2010-01-11 23:05 EST (History)
4 users (show)

See Also:
Fixed In Version: RHEL4.5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-14 02:19:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Corey Marthaler 2006-10-02 16:09:50 EDT
Description of problem:
This is one of those many clvm errors which could be made more meaningful.
I took out an exclusive lock on a vg on link-08, I then attempted to take out
the same lock in link-02. The lock was unable to be taking out (as expected) but
the error I got didn't mention that there was already a lock out on that volume
on link-08. Instead I just saw the generic "Error locking on node" error.

[root@link-01 ~]# lvscan
  inactive          '/dev/vg/lv' [12.00 MB] inherit
[root@link-02 ~]# lvscan
  inactive          '/dev/vg/lv' [12.00 MB] inherit
[root@link-08 ~]# vgchange -aey
  1 logical volume(s) in volume group "vg" now active
[root@link-08 ~]# lvscan
  ACTIVE            '/dev/vg/lv' [12.00 MB] inherit

[root@link-02 ~]# vgchange -aey
  Error locking on node link-02: Resource temporarily unavailable
  0 logical volume(s) in volume group "vg" now active

It would be nice to see something more like:
"Error locking on node link-02: Resource already locked exclusively on link-08"
Comment 1 Christine Caulfield 2006-10-05 09:57:52 EDT
clvmd now passes sensible error messages back to the user. You won't get just
what you want (above) because clvmd doesn't know what node has the device locked
exclusively (we need DLM query for that, and it doesn't exist in RHEL5 yet), but
it is a better message.

Checking in WHATS_NEW;
/cvs/lvm2/LVM2/WHATS_NEW,v  <--  WHATS_NEW
new revision: 1.452; previous revision: 1.451
Checking in daemons/clvmd/clvmd-command.c;
/cvs/lvm2/LVM2/daemons/clvmd/clvmd-command.c,v  <--  clvmd-command.c
new revision: 1.10; previous revision: 1.9
Checking in daemons/clvmd/clvmd.c;
/cvs/lvm2/LVM2/daemons/clvmd/clvmd.c,v  <--  clvmd.c
new revision: 1.28; previous revision: 1.27
Checking in daemons/clvmd/lvm-functions.c;
/cvs/lvm2/LVM2/daemons/clvmd/lvm-functions.c,v  <--  lvm-functions.c
new revision: 1.23; previous revision: 1.22
Checking in daemons/clvmd/lvm-functions.h;
/cvs/lvm2/LVM2/daemons/clvmd/lvm-functions.h,v  <--  lvm-functions.h
new revision: 1.4; previous revision: 1.3
Comment 2 Corey Marthaler 2006-11-01 13:12:44 EST
fix verified in lvm2-2.02.13-1/lvm2-cluster-2.02.13-1. marking verified, even
though this is really just a dup of bz 162809.

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