Are there race conditions between pvcreate and vgcreate?
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
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