From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4EC247E0.7050905@redhat.com> Date: Tue, 15 Nov 2011 11:07:12 +0000 From: "Bryn M. Reeves" MIME-Version: 1.0 References: <4EC09964.1080305@omiha.com> <4EC12F54.2000303@redhat.com> <4EC20A6A.10709@omiha.com> In-Reply-To: <4EC20A6A.10709@omiha.com> Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] Unable to remove LVs Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: LVM general discussion and development Cc: Jan Bakuwel 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. Regards, Bryn.