[linux-lvm] vgcreate fails with return value 5
Riches Jr, RobertX M
robertx.m.riches.jr at intel.com
Mon Oct 11 18:21:47 UTC 2010
I'm running into an odd problem in which vgcreate fails with a return value or exit code of 5. It is called from a script that calls pvcreate twice to create two PVs, then immediately calls vgcreate to create the VG.
An exit code of 5 appears to indicate excessive numbers of VGs. However, there are no other VGs on the system prior to this call to vgcreate. Search engine results indicate the PV might be corrupt. However, the PV was just created a few milliseconds before calling vgcreate.
When calling vgcreate immediately after calling pvcreate, is there a need to wait for some after-effects of the pvcreate to settle out? Is there some command to positively determine whether the PV is actually ready and open for business?
Any other suggestions?
Azad Consultant at Intel
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-lvm