[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Cannot delete lv



On Mon, January 30, 2012 11:30, Bryn M. Reeves wrote:
)
>
> These LVs all have active kpartx mappings (the names with
> pN
> suffixes). Remove them with kpartx -d:
>
> # kpartx -d /dev/mapper/vg_vhost01-lv_vm_base
> # kpartx -d
> /dev/mapper/vg_vhost01-lv_vm_pas.harte--lyne.ca
> # kpartx -d
> /dev/mapper/vg_vhost01-lv_vm_pas.harte--lyne.ca_01
> # kpartx -d
> /dev/mapper/vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_00
> # kpartx -d
> /dev/mapper/vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_01
>
> Regards,
> Bryn.


I tried this with no change in the result.

[root vhost01 ~]# kpartx -d /dev/mapper/vg_vhost01-lv_vm_base
[root vhost01 ~]# kpartx -d
/dev/mapper/vg_vhost01-lv_vm_basep1
[root vhost01 ~]# kpartx -d
/dev/mapper/vg_vhost01-lv_vm_basep2
[root vhost01 ~]# /sbin/lvremove -f
/dev/vg_vhost01/lv_vm_base
  Can't remove open logical volume "lv_vm_base"

[root vhost01 ~]# dmsetup info -c vg_vhost01-lv_vm_base
Name                  Maj Min Stat Open Targ Event  UUID
vg_vhost01-lv_vm_base 253   5 L--w    2    1      0
LVM-gXMt00E1RDjpSX3INLZ35Prtg66aX36BeAOlKIkmfSNQRNol3Hni920R4YVaZr52

[root vhost01 ~]# lsblk
NAME                                 MAJ:MIN RM   SIZE RO
TYPE MOUNTPOINT
.  .  .
  ├─vg_vhost01-lv_vm_base (dm-5)              
                253:5    0   7.8G  0 lvm
  │ ├─vg_vhost01-lv_vm_basep1 (dm-17)   
                      253:17   0   500M  0 dm
  │ └─vg_vhost01-lv_vm_basep2 (dm-18)   
                      253:18   0   7.3G  0 dm

.  .  .

Am I misunderstanding your instructions?


-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB Harte-Lyne ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]