linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <bmr@redhat.com>
To: "James B. Byrne" <byrnejb@harte-lyne.ca>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Cannot delete lv
Date: Mon, 30 Jan 2012 16:30:28 +0000	[thread overview]
Message-ID: <4F26C5A4.1080907@redhat.com> (raw)
In-Reply-To: <0e76b29210b181e84d1c5762f9c8f07d.squirrel@webmail.harte-lyne.ca>

-----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-----

  reply	other threads:[~2012-01-30 16:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30 15:44 [linux-lvm] Cannot delete lv James B. Byrne
2012-01-30 15:57 ` James B. Byrne
2012-01-30 16:00   ` Bryn M. Reeves
2012-01-30 16:00 ` Bryn M. Reeves
2012-01-30 16:25   ` James B. Byrne
2012-01-30 16:30     ` Bryn M. Reeves [this message]
2012-01-30 16:50       ` James B. Byrne
2012-01-30 17:03         ` Bryn M. Reeves
2012-01-30 17:34           ` James B. Byrne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F26C5A4.1080907@redhat.com \
    --to=bmr@redhat.com \
    --cc=byrnejb@harte-lyne.ca \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).