Operating System - Linux
1828013 Members
1705 Online
109973 Solutions
New Discussion

Cannot remove local disk from multipath

 
SOLVED
Go to solution
feeble
Valued Contributor

Cannot remove local disk from multipath

I am not exactly sure how it got started, but here is the issue. local disk /dev/sda has 2 partitions one for /boot and the other for lvm vg00. At some point multipath was setup on the local disk. dm-multipath has called it mpathb. when I do a vgdisplay of vg00 the pvname is /dev/mapper/mpathbp2 which is effectivly a link to /dev/sda2. I have run dmsetup and cannot remove the mpathb, mpathbp1, and mpathb2 entries since they are in use. I have been trying to figure out how to resolve this. I added filters to lvm.conf to not use anything with mpathb in the device file name. Upon reboot, I could only see lvol2 and lvol3 for vg00. I have more lvols than that. I have been tryinh to see if there is some data or cache file that dmsetup writes to. I have not seem anything. Any one have any good ideas?

1 REPLY 1
feeble
Valued Contributor
Solution

Re: Cannot remove local disk from multipath

Figured it out. I disabled multipath and created a new initrd without dm_multipath. I then rebooted and reconfig'ed multipathing. I now see /dev/sda2 for vg00.