Skip to contentSkip to conversation

lvm2 2.02.86 error... udev problem?

DISCUSSION ben 2 participants 4 messages Jul 10, 2011 – Jul 11, 2011

lore
Share & tools
lore

ben

author
#0 lore raw

I just downloaded and compiled lvm2 2.02.86 and have seen the following error message several times:

~/# lvcreate --name test --mirrors 1 --size 1g vg01
/dev/mapper/vg01-test_mimage_0: open failed: No such file or directory /dev/mapper/vg01-test: open failed: No such file or directory /dev/vg01/test: not found: device not cleared
Aborting. Failed to wipe start of new LV.
LV vg01/test in use: not deactivating
Unable to deactivate failed new LV. Manual intervention required.

The volume is created despite the error message. Is this another udev issue? I am running Debian Sid and udev 171-2.

#1 lore raw
Quoted 11 lines · ben

I just downloaded and compiled lvm2 2.02.86 and have seen the following error message several times:

~/# lvcreate --name test --mirrors 1 --size 1g vg01
/dev/mapper/vg01-test_mimage_0: open failed: No such file or directory /dev/mapper/vg01-test: open failed: No such file or directory /dev/vg01/test: not found: device not cleared
Aborting. Failed to wipe start of new LV.
LV vg01/test in use: not deactivating
Unable to deactivate failed new LV. Manual intervention required.

Quoted 3 lines

The volume is created despite the error message. Is this another udev issue? I am running Debian Sid and udev 171-2.

Can you please try that with 'verify_udev_operations=1' setting in lvm.conf (in 'activation' section) and see if you get any warnings. Thanks.

Peter

author
#2 lore raw
Quoted 1 line · Peter Rajnoha

verify_udev_operations=1

That seems to help. Now I get this message:

# lvcreate  --name test --mirrors 1 --size 1g vg01
  /dev/mapper/vg01-test_mimage_0 not set up by udev: Falling back to direct 
node creation.
  /dev/mapper/vg01-test not set up by udev: Falling back to direct node 
creation.
  The link /dev/vg01/test should had been created by udev but it was not 
found. Falling back to direct link creation.
  Logical volume "test" created
#3 lore raw
Quoted 5 lines · ben
Quoted 1 line · Peter Rajnoha

verify_udev_operations=1

That seems to help. Now I get this message:

Quoted 8 lines
# lvcreate  --name test --mirrors 1 --size 1g vg01
  /dev/mapper/vg01-test_mimage_0 not set up by udev: Falling back to direct 
node creation.
  /dev/mapper/vg01-test not set up by udev: Falling back to direct node 
creation.
  The link /dev/vg01/test should had been created by udev but it was not 
found. Falling back to direct link creation.
  Logical volume "test" created

This normally means that udev rules are wrong. Have you also installed upstream udev rules? (10-dm.rules, 11-dm-lvm.rules, 13-dm-disk.rules and 95-dm-notify.rules in /lib/udev/rules.d directory)

Debian has modified upstream udev rules a bit so there's a possibility that this is the source of the problem you see (debian udev rules are
renamed: 55-dm.rules, 60-persistent-storage-dm.rules, 56-lvm.rules, 60-persistent-storage-lvm.rules).

Please, try using upstream udev rules directly and also be sure that Debian and upstream udev rules are not installed together.

Peter