Bug 199185

Summary: 'lvconvert' fails to remove device-mapper devices when "down converting" a cluster mirror
Product: Red Hat Enterprise Linux 4 Reporter: Jonathan Earl Brassow <jbrassow>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.0CC: dwysocha, jbrassow, kanderso, mbroz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.02.06-6.0.RHEL4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-26 19:05:49 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:
Bug Depends On: 199826    
Bug Blocks: 198555    
Attachments:
Description Flags
verbose clvmd output from node running the lvconvert
none
output from test run
none
patch that works around the problem
none
Potential fix. Initial test looks good. none

Description Jonathan Earl Brassow 2006-07-17 20:34:23 UTC
This bug is being created to track $SUBJECT.  While 195392 was the original
issue that spawned investigation of this issue, I believe it requires its own entry.

Steps to reproduce:
1) create cluster mirror 'lvcreate -m1 -L 500M -n lv vg'
2) down convert mirror to linear 'lvconvert -m0 vg/lv'
3) convert successful, but device-mapper devices remain.

[root@tng1-1 ~]# dmsetup status
vg-lv: 0 1024000 linear
vg-lv_mimage_1: 0 1024000 linear
vg-lv_mimage_0: 0 1024000 linear
vg-lv_mlog: 0 8192 linear

Comment 1 Jonathan Earl Brassow 2006-07-17 20:35:39 UTC
Created attachment 132574 [details]
verbose clvmd output from node running the lvconvert

Comment 2 Jonathan Earl Brassow 2006-07-20 18:22:12 UTC
rerunning tests to get:
clvmd -d output on all machines + -vvvv output of lvconvert in action



Comment 3 Jonathan Earl Brassow 2006-07-20 18:35:53 UTC
Created attachment 132759 [details]
output from test run

includes:
 clvmd -d output from all machines in cluster
 lvconvert -vvvv from node running the command
 common output after the command was run (same on all machines)

Comment 4 Jonathan Earl Brassow 2006-07-20 19:27:16 UTC
Created attachment 132766 [details]
patch that works around the problem

as agk pointed out, doing an activate_lv before deactivating the orphans works
around/fixes the problem.

Comment 5 Jonathan Earl Brassow 2006-07-20 20:48:58 UTC
Created attachment 132772 [details]
Potential fix.  Initial test looks good.

Comment 6 Jonathan Earl Brassow 2006-07-20 20:50:44 UTC
Note:

attachment in comment #4 is for upstream and post-RHEL4U4

attachment in comment #5 is for RHEL4U4



Comment 7 Jonathan Earl Brassow 2006-07-22 18:24:52 UTC
Along with the attachments in comment #4 and comment #5, for this bug to be
completely resolved, bug 199826 must be resolved.  A fix for that bug will be in
place soon.


Comment 8 Corey Marthaler 2006-08-03 18:30:08 UTC
fix verified.