Bug 195610 - renaming a clustered mirror is broken
Summary: renaming a clustered mirror is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: lvm2
Version: 4.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Jonathan Earl Brassow
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 180185 181411
TreeView+ depends on / blocked
 
Reported: 2006-06-15 21:30 UTC by Corey Marthaler
Modified: 2007-11-30 22:07 UTC (History)
4 users (show)

Fixed In Version: RHBA-2006-0504
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 21:50:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0504 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2006-08-10 04:00:00 UTC

Description Corey Marthaler 2006-06-15 21:30:42 UTC
Description of problem:
[root@taft-04 ~]# lvrename /dev/corey/mirror1 /dev/corey/mirror2
  Error locking on node taft-04: Command timed out
[HANG]

Jun 15 11:42:13 taft-04 kernel: device-mapper: Clustered mirror retried requests
:: 32 of 14)


Version-Release number of selected component (if applicable):
[root@taft-04 ~]# rpm -q cmirror
cmirror-1.0.0-5
[root@taft-04 ~]# rpm -q cmirror-kernel
cmirror-kernel-2.6.9-5.4


How reproducible:
everytime

Comment 2 Jonathan Earl Brassow 2006-06-21 20:13:55 UTC
hmmm, I can create the mirror, deactivate it, rename it, and reactivate it; but
I can't just rename an active one.

Will try single machine mirror.


Comment 3 Jonathan Earl Brassow 2006-06-21 20:29:18 UTC
Single machine mirrors are fine.

It seems that LVM/device-mapper are calling the constructor twice without ever
calling the destructor... now sure why.

Comment 4 Jonathan Earl Brassow 2006-06-21 21:13:14 UTC
Should be fixed in the rev of the rhel4u4 cmirror-kernel package.


Comment 5 Corey Marthaler 2006-06-30 17:38:41 UTC
With the latest images that I have, this doesn't work.

[root@taft-03 ~]# lvscan
  ACTIVE            '/dev/corey/mirror1' [10.00 GB] inherit
  ACTIVE            '/dev/corey/mirror3' [100.00 GB] inherit
  ACTIVE            '/dev/corey/mirror4' [10.00 GB] inherit
[root@taft-03 ~]# lvrename /dev/corey/mirror4 /dev/corey/mirror5
  Error locking on node taft-01: Command timed out
[root@taft-03 ~]# lvscan
  ACTIVE            '/dev/corey/mirror1' [10.00 GB] inherit
  ACTIVE            '/dev/corey/mirror3' [100.00 GB] inherit
  ACTIVE            '/dev/corey/mirror4' [10.00 GB] inherit


# See this over and over:
[...]
Jun 30 05:51:49 taft-03 kernel: device-mapper: Failed to receive election
results from server
Jun 30 05:51:49 taft-03 kernel: device-mapper: HEY!!! There are two matches for
FYOOXN2T
[...]


[root@taft-04 ~]# lvs
[HANG]

# From the mirror server
device-mapper: HEY!!! There Jun 30 05:51:13 taft-02 kernel: device-mapper:
HEY!!! There are T
are two matches for FYOOXN2T
device-mapper: HEY!!! There are two matches for FYOOXN2T
Jun 30 05:51:13 taft-02 last message repeated 8 times
Jun 30 05:51:13 taft-02 kernel: device-mapper: I'm the cluster mirror log server
for FYOOXN2T
Jun 30 05:51:13 taft-02 kernel: device-mapper: Disk Resume::
device-mapper: Failed to receive election results from server
Jun 30 05:51:33 taft-02 kernel: device-mapper: Failed to receive election
results from server
Jun 30 05:54:13 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 32 of 60)
Jun 30 05:56:53 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 64 of 92)
Jun 30 05:59:33 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 96 of 12)
Jun 30 06:01:01 taft-02 crond(pam_unix)[4565]: session opened for user root by
(uid=0)
Jun 30 06:01:01 taft-02 crond(pam_unix)[4565]: session closed for user root
Jun 30 06:02:13 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 128 of 1)
Jun 30 06:04:53 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 160 of 1)
Jun 30 06:07:33 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 192 of 2)
Jun 30 06:10:13 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 224 of 2)
Jun 30 06:12:53 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 256 of 2)
Jun 30 06:15:33 taft-02 kernel: device-mapper: Clustered mirror retried requests
:: 288 of 3)


Packages:
[root@taft-02 ~]# uname -ar
Linux taft-02 2.6.9-39.1.ELsmp #1 SMP Fri Jun 16 16:47:43 EDT 2006 x86_64 x86_64
x86_64 GNU/Linux
[root@taft-02 ~]# rpm -q device-mapper
device-mapper-1.02.07-2.0.RHEL4
[root@taft-02 ~]# rpm -q lvm2
lvm2-2.02.06-3.0.RHEL4
[root@taft-02 ~]# rpm -q lvm2-cluster
lvm2-cluster-2.02.06-1.0.RHEL4
[root@taft-02 ~]# rpm -q cmirror
cmirror-1.0.0-5
[root@taft-02 ~]# rpm -q cmirror-kernel
cmirror-kernel-2.6.9-8.0


Comment 6 Jonathan Earl Brassow 2006-07-06 03:28:52 UTC
I've just tested this... looping through hundreds of renames and it works.

I'll try again with the latest rpms when they are ready.  Perhaps it has something to do with the fact that 
you have multiple mirrors...  I _think_ I was testing with just one mirror on my system.

Comment 7 Jonathan Earl Brassow 2006-07-11 20:11:37 UTC
punting until U5.

Renaming mirrors is disabled for U4.  Still needs an exception to put denial
code in U4.  Should I open a new bug requesting rename for mirrors in U5, or
just use this bug?


Comment 12 Corey Marthaler 2006-07-13 16:20:57 UTC
fix verified (in that you are no longer allowed to attmept mirror renaming).

Are we going to file an RFE for this issue to be actually fixed or just leave
this on open?

Comment 14 Red Hat Bugzilla 2006-08-10 21:50:38 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0504.html



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