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

Re: [lvm-devel] example [was Re: thinpool-block-device exists twice after renaming]



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


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