Skip to contentSkip to conversation

Are there race conditions between pvcreate and vgcreate?

DISCUSSION Oliver Rath 2 participants 2 messages Aug 13, 2013

lore
Share & tools
lore
#0 lore raw

Hi List,

i have a strange problem:

Sometimes a script runs into a failure "device /dev/sdb1 not found or ignored by filtering" , but the devices are created just before

i.e.

pvcreate /dev/sda5 (1,4TB)
pvcreate /dev/sdb1 (2 TB)

..

vgcreate myvg /dev/sda5 /dev/sdb1

Are there any race conditions? If there are, exist any robust solution for this? Im using lvm2-tools 2.02.99 + --enbale

Tfh!

Oliver

#1 lore raw
Quoted 1 line · Oliver Rath

i have a strange problem:

When you see anything strange, add -vvvv to all your commands and record the output, or configure lvm.conf to write it all to syslog, if you have things running in parallel and need to see how they overlap.

Quoted 1 line

vgcreate myvg /dev/sda5 /dev/sdb1

vgcreate will perform pvcreate itself if necessary. Try without the pvcreates?

Alasdair