All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: example [was Re: thinpool-block-device exists twice after renaming]
Date: Tue, 27 Aug 2013 15:43:07 +0200	[thread overview]
Message-ID: <521CACEB.1020607@redhat.com> (raw)
In-Reply-To: <521CAA85.5040003@mglug.de>

Dne 27.8.2013 15:32, Oliver Rath napsal(a):
> Here an example for recreating the situation:
>
>
> asterix:lvm2# lvcreate --name renametest -V 100M -T myvg/mythinpool
>    Logical volume "renametest" created
> asterix:lvm2# lvrename /dev/myvg/renametest renametest2
>    Renamed "renametest" to "renametest2" in volume group "myvg"
>    Unable to rename device node from 'myvg-renametest' to 'dmivg-renametest2'

Have you been changing this by hand ?
It's not clear from where  dmivg name could be taken ?



> asterix:lvm2# ls -l /dev/myvg/renametest2
> lrwxrwxrwx 1 root root 29 Aug 27 15:24 /dev/myvg/renametest2 ->
> /dev/mapper/dmivg-renametest2
> asterix:lvm2# ls -l /dev/mapper/myvg-renametest2
> brw------- 1 root root 252, 26 Aug 27 15:24 /dev/mapper/myvg-renametest2
> asterix:lvm2# ls -l /dev/dm-26
> brw-rw---- 1 root disk 252, 26 Aug 27 15:24 /dev/dm-26
>
> Now this device exist as /dev/dm-26 _and_ as /dev/mapper/myvg-renametest2
>


Please reproduce your problem with upstream build and post a full -vvvv trace.
(eventually open rhbz http://bugzilla.redhat.com/ with attachments).

Debian is unfortunately putting some non-upstream extensions and it's not 
quite clear how they are influencing things here. Since rename operations 
needs tight cooperation with udev.

Also check your lvm.conf for:

obtain_device_list_from_udev = 1
udev_sync = 1
udev_rules = 1
verify_udev_operations = 0

Zdenek



  reply	other threads:[~2013-08-27 13:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27 13:03 thinpool-block-device exists twice after renaming Oliver Rath
2013-08-27 13:32 ` example [was Re: thinpool-block-device exists twice after renaming] Oliver Rath
2013-08-27 13:43   ` Zdenek Kabelac [this message]
2013-08-27 14:13     ` Oliver Rath
2013-08-27 14:17     ` lvm.conf " Oliver Rath
2013-08-27 13:35 ` example " Oliver Rath

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=521CACEB.1020607@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=lvm-devel@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.