[linux-lvm] Unable to remove LVs

Bryn M. Reeves bmr at redhat.com
Tue Nov 15 11:07:12 UTC 2011

On 11/15/2011 06:44 AM, Jan Bakuwel wrote:
> Hi Bryn,
>> The partition map has a 'p' separator - d-pdc.oa.cp1 - the correct
>> command is:
>> kpartx -d /dev/mapper/d-pdc.oa.c
> # kpartx -d /dev/mapper/d-pdc.oa.c

It's possible kpartx is getting confused and is refusing to remove the 
maps if they still exist after running this command.

You can try to remove the device manually with dmsetup:

dmsetup remove d-pdc.oa.cp1

If this succeeds then you can proceed to deactivate the lv/vg. If it 
fails then there is something still using the device and you'll need to 
figure out what it is to get rid of the devices.


More information about the linux-lvm mailing list