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

Re: [linux-lvm] Cannot delete lv



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/30/2012 04:25 PM, James B. Byrne wrote:
> At this point I could use a little more guidance.  I wish to remove
> all the lvs associated with the following defunct vm guests:
> 
> base  <--- guest name vg_vhost01-lv_vm_base (dm-5) 
> vg_vhost01-lv_vm_basep1 (dm-17) vg_vhost01-lv_vm_basep2 (dm-18)
> 
> pas.harte--lyne.ca  <--- guest name 
> vg_vhost01-lv_vm_pas.harte--lyne.ca (dm-12) 
> vg_vhost01-lv_vm_pas.harte--lyne.cap1 (dm-15) 
> vg_vhost01-lv_vm_pas.harte--lyne.cap2 (dm-16) 
> vg_vhost01-lv_vm_pas.harte--lyne.ca_01 (dm-13) 
> vg_vhost01-lv_vm_pas.harte--lyne.ca_01p1 (dm-14)
> 
> pgsql--dbms.harte--lyne.ca  <--- guest name 
> vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_00 (dm-6) 
> vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_00p1 (dm-10) 
> vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_00p2 (dm-11) 
> vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_01 (dm-7) 
> vg_vhost01-lv_vm_pgsql--dbms.harte--lyne.ca_01p1 (dm-9)

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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8mxaQACgkQ6YSQoMYUY957KACg3LuLaueEx2NDBUDyLe5vVILR
d3cAn0+qhBcPlYaEz73d2gywKHPzu5kZ
=Oi4S
-----END PGP SIGNATURE-----


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