Bug 196300

Summary: rename of cluster mirror logical volume causes dev_open while suspended
Product: Red Hat Enterprise Linux 4 Reporter: Jonathan Earl Brassow <jbrassow>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED DEFERRED QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: agk, dwysocha, jbrassow, mbroz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-18 18:48:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
lvrename output
none
clvmd output none

Description Jonathan Earl Brassow 2006-06-22 14:33:50 UTC
cluster mirrors were hanging when renamed.  The reason turned out to be that the
mirror constructor was called for the newly renamed volume before the destructor
was called on the original volume.  This caused two copies of the exact same
instance to be loaded in the kernel at the same time.  (The cluster mirror
logging code was not able to handle this at the time.)

Further investigation revealed the following warnings being printed from clvmd:
lvm[4498]: WARNING: dev_open(/dev/sdb) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdc) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdd) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdb) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sda) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdc) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdd) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdc) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sda) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdb) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdd) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdd) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sda) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdb) called while suspended
lvm[4498]: WARNING: dev_open(/dev/sdc) called while suspended

I am using the very latest in CVS for both dm and LVM2.  We should not be
scanning while devices are suspended.

I'm attaching traces for the lvrename command and clvmd (note: the last command
processed in the clvmd output is the lvrename)

Comment 1 Jonathan Earl Brassow 2006-06-22 14:33:50 UTC
Created attachment 131357 [details]
lvrename output

Comment 2 Jonathan Earl Brassow 2006-06-22 14:35:11 UTC
Created attachment 131358 [details]
clvmd output

Comment 4 Alasdair Kergon 2006-10-18 18:42:16 UTC
mirror renames (both single-host and clustered) are not yet supported as they
are non-trivial.

The latest code enforces this.

Do you want to leave this open as a feature request for the ability to rename
mirrors?

Comment 5 Jonathan Earl Brassow 2006-10-18 18:48:04 UTC
I think at some point we'll want to rename, but this bug can be closed, as I'm
sure we'll have to address this issue as part of that implementation.