Red Hat Bugzilla – Bug 385651
RHEL5 cmirror tracker: unable to properly delete a mirror
Last modified: 2010-01-11 21:05:37 EST
Description of problem:
A mirror remove fails to delete the active log device, and thus causes future
mirror operations to fail.
[root@taft-02 ~]# lvremove -f taft
Logical volume "mirror1" successfully removed
Logical volume "mirror2" successfully removed
[root@taft-02 ~]# lvcreate -m 1 -n feist -L 4G taft
Error locking on node taft-04: device-mapper: reload ioctl failed: Invalid
Failed to activate new LV.
[root@taft-02 ~]# vgchange -an
0 logical volume(s) in volume group "taft" now active
Can't deactivate volume group "VolGroup00" with 2 open logical volume(s)
[root@taft-02 ~]# lvremove taft
Logical volume "feist" successfully removed
[root@taft-02 ~]# dmsetup ls
taft-mirror1_mlog (253, 2)
taft-mirror2_mlog (253, 6)
taft-feist_mlog (253, 3)
VolGroup00-LogVol01 (253, 1)
VolGroup00-LogVol00 (253, 0)
Version-Release number of selected component (if applicable):
failed to close the file desc when done using
Fix verified in cmirror-1.1.5-4.el5.
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 therefore 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.