Skip to contentSkip to conversation

Getting 'incorrect semaphore state' on self configured server kernel

linux-lvm Mark van Dijk 2 participants 2 messages Aug 12, 2012 – Aug 13, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
# lvcreate -L100M -n foobar -v array 
/dev/array/foobar: not found: device not cleared
Aborting. Failed to wipe start of new LV.
semid 983040: semop failed for cookie 0xd4d19ee: incorrect
semaphore state Failed to set a proper state for notification
semaphore identified by cookie value 223156718 (0xd4d19ee) to
initialize waiting for incoming notifications.

I appreciate all help I can get.

Quoted 7 lines
Quoted 2 lines

I still haven't solved this.. who is willing to lend me a hand please?

A diff -u of a working kernel config vs a non-working config would possibly help.
--
Scott Merrilees

(I'm replying to a digest so sorry if the formatting is a bit off. I disabled digests for now.)

Scott, thanks for your suggestion. I followed it, changed more settings just for testing, and still can't get it to work without these errors.

So I tried to build a kernel, same version and same config on a different distribution, this time I chose AlpineLinux. And lo, the errors are not occurring there.

This makes me suspicious about Archlinux's udev version and/or methods, but the question about why their own kernel doesn't have these issues remains.

What to try next? Where to look?

Signature · 5 lines
Stay in touch,
Mark van Dijk.                  ,------------------------------------
-------------------------------'            Sun Aug 12 15:21 UTC 2012
Today is Prickle-Prickle, the 5th day of Bureaucracy in the YOLD 3178
Celebrate Zaraday
#2 lore raw

Dne 12.8.2012 17:31, Mark van Dijk napsal(a):

Quoted 29 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
# lvcreate -L100M -n foobar -v array
/dev/array/foobar: not found: device not cleared
Aborting. Failed to wipe start of new LV.
semid 983040: semop failed for cookie 0xd4d19ee: incorrect
semaphore state Failed to set a proper state for notification
semaphore identified by cookie value 223156718 (0xd4d19ee) to
initialize waiting for incoming notifications.

I appreciate all help I can get.

Quoted 7 lines
Quoted 2 lines

I still haven't solved this.. who is willing to lend me a hand please?

A diff -u of a working kernel config vs a non-working config would possibly help.
--
Scott Merrilees

(I'm replying to a digest so sorry if the formatting is a bit off. I disabled digests for now.)

Scott, thanks for your suggestion. I followed it, changed more settings just for testing, and still can't get it to work without these errors.

So I tried to build a kernel, same version and same config on a different distribution, this time I chose AlpineLinux. And lo, the errors are not occurring there.

Quoted 6 lines

This makes me suspicious about Archlinux's udev version and/or methods, but the question about why their own kernel doesn't have these issues remains.

What to try next? Where to look?

Check you are not having set CONFIG_UEVENT_HELPER_PATH in your kernel
(or preset on your system) - If I remember, there was a one Archlinux user with very old kernel .config file which was just updated.

On modern udev based distro you should let udev to handle uevents.

Zdenek