friesia Apprentice


Joined: 23 Mar 2007 Posts: 174
|
Posted: Mon Dec 03, 2012 5:43 pm Post subject: Problems with LVM utilities on systemd |
|
|
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. |
|