Red Hat Bugzilla – Bug 199185
'lvconvert' fails to remove device-mapper devices when "down converting" a cluster mirror
Last modified: 2007-11-30 17:07:26 EST
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
Created attachment 132574 [details]
verbose clvmd output from node running the lvconvert
rerunning tests to get:
clvmd -d output on all machines + -vvvv output of lvconvert in action
Created attachment 132759 [details]
output from test run
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)
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.
Created attachment 132772 [details]
Potential fix. Initial test looks good.
attachment in comment #4 is for upstream and post-RHEL4U4
attachment in comment #5 is for RHEL4U4
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