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 17:03:57 +0000 [thread overview]
Message-ID: <4F26CD7D.7030400@redhat.com> (raw)
In-Reply-To: <cde64fbe9152535e0ec43a48c7316917.squirrel@webmail.harte-lyne.ca>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/30/2012 04:50 PM, James B. Byrne wrote:
> [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?
The partition maps were apparently created with kpartx's "-p p" option
to force a partition separator of 'p' (the default is to use a 'p' if
the device name ends with a numeral but no separator otherwise).
If the maps were created with -pp kpartx will refuse to remove them if
the option is not given (but helpfully doesn't report any error.. :-/):
# ls /dev/mapper/vg_mother-lv_base*
/dev/mapper/vg_mother-lv_base /dev/mapper/vg_mother-lv_basep1
# kpartx -d /dev/mapper/vg_mother-lv_base
# ls /dev/mapper/vg_mother-lv_base*
/dev/mapper/vg_mother-lv_base /dev/mapper/vg_mother-lv_basep1
# kpartx -d -pp /dev/mapper/vg_mother-lv_base
# ls /dev/mapper/vg_mother-lv_base*
/dev/mapper/vg_mother-lv_base
Just add the -pp to your kpartx command lines and it should remove the
devices.
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk8mzX0ACgkQ6YSQoMYUY96ySwCZATKsF6+UiQ1FKtwQK/4XX2uP
G20AniKYezGGkZreHCvp0onymhIpXp8M
=tTC2
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2012-01-30 17:03 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
2012-01-30 16:50 ` James B. Byrne
2012-01-30 17:03 ` Bryn M. Reeves [this message]
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=4F26CD7D.7030400@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.