Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with LVM utilities on systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
friesia
Apprentice
Apprentice


Joined: 23 Mar 2007
Posts: 174

PostPosted: Mon Dec 03, 2012 5:43 pm    Post subject: Problems with LVM utilities on systemd Reply with quote

Here I'm trying to create a PV, VG and then a LV.
Let me say that this only happens when I boot into systemd. With OpenRC everything's OK. I'm on ~amd64 and use all the latest software.

Code:

melforce ~ # pvcreate /dev/sda4
  Physical volume "/dev/sda4" successfully created
melforce ~ # vgcreate derk /dev/sda4
  Volume group "derk" successfully created
melforce ~ # vgdisplay
  --- Volume group ---
  VG Name               siga
<I skipped some lines here>
   
  --- Volume group ---
  VG Name               derk
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               44,43 GiB
  PE Size               4,00 MiB
  Total PE              11373
  Alloc PE / Size       0 / 0   
  Free  PE / Size       11373 / 44,43 GiB
  VG UUID               k2D7Wp-VJT8-25yG-qhnF-qfDX-xFZx-c6E1yf
   
melforce ~ # lvcreate -L5G -nmylv derk
  /dev/derk/mylv: not found: device not cleared
  Aborting. Failed to wipe start of new LV.
  semid 9797633: semop failed for cookie 0xd4d0a9b: incorrect semaphore state
  Failed to set a proper state for notification semaphore identified by cookie value 223152795 (0xd4d0a9b) to initialize waiting for incoming notifications.


Thus, LV is not created.
If I use --zero n it's created alright:

Code:

melforce ~ # lvcreate -Z n -L5G -nmylv derk
  WARNING: "mylv" not zeroed
  Logical volume "mylv" created


But still I get semaphore warnings on delete:

Code:

melforce ~ # lvremove /dev/derk/mylv
Do you really want to remove active logical volume mylv? [y/n]: y
  Logical volume "mylv" successfully removed
  semid 10780673: semop failed for cookie 0xd4db599: incorrect semaphore state
  Failed to set a proper state for notification semaphore identified by cookie value 223196569 (0xd4db599) to initialize waiting for incoming notifications.


I have no idea what it can be related to.
Back to top
View user's profile Send private message
Mardok45
n00b
n00b


Joined: 21 Jun 2008
Posts: 59
Location: Right behind you

PostPosted: Mon May 20, 2013 9:00 pm    Post subject: Reply with quote

Dear people from the future who happen to be searching for the same problem:

I was experiencing the same problem and eventually found this:
http://www.redhat.com/archives/linux-lvm/2012-August/msg00025.html

After changing the following entry in the kernel .config from:

Code:
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"


to

Code:
CONFIG_UEVENT_HELPER_PATH=""


the problem seems to be fixed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum