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

Re: [lvm-devel] "semop failed" while lvrename execution



Dne 30.8.2013 15:24, Oliver Rath napsal(a):
Hi list,

im using here ubuntu 12.04.03 with lvm-git with ( --with-thin=internel
--enable-udev_sync --enable-udev_rules

Now following occurs:

root asterisk:dmiadm# lvcreate --name udevtest -V 50M -T
dmivg/winthinpool  Rounding up size to full physical extent 52,00 MiB
   Logical volume "udevtest" created
   semid 65536: semop failed for cookie 0xd4d1ce4: incorrect semaphore state
   Failed to set a proper state for notification semaphore identified by
cookie value 223157476 (0xd4d1ce4) to initialize waiting for incoming
notifications.
root asterisk:dmiadm# lvrename /dev/dmivg/udevtest udevtest-renamed
   Renamed "udevtest" to "udevtest-renamed" in volume group "dmivg"
   semid 98304: semop failed for cookie 0xd4d54d2: incorrect semaphore state
   Failed to set a proper state for notification semaphore identified by
cookie value 223171794 (0xd4d54d2) to initialize waiting for incoming
notifications.
root asterisk:dmiadm# ls -l /dev/dmivg/udevtest-renamed
lrwxrwxrwx 1 root root 8 Aug 30 15:17 /dev/dmivg/udevtest-renamed ->
../dm-56
root asterisk:dmiadm# ls -l /dev/mapper/dmivg-udevtest--renamed
lrwxrwxrwx 1 root root 8 Aug 30 15:17 /dev/mapper/dmivg-udevtest--renamed



Furthermore, _deleting the lv shows:

# lvremove /dev/dmivg/udevtest-renamed
Do you really want to remove active logical volume udevtest-renamed?
[y/n]: y
   Logical volume "udevtest-renamed" successfully removed
   semid 131072: semop failed for cookie 0xd4d2f12: incorrect semaphore state
   Failed to set a proper state for notification semaphore identified by
cookie value 223162130 (0xd4d2f12) to initialize waiting for incoming
notifications.


What is todo?


You probably have a mixture of udev rules in your debian
There must be exactly 1 rule with this content:

95-dm-notify.rules:ENV{DM_COOKIE}=="?*", RUN+="/usr/sbin/dmsetup udevcomplete $env{DM_COOKIE}"

(dmsetup udevcomplete)

I assume you have there 2 such rules - when you have just added upstream rules - and left in Debian broken rules.

Zdenek




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