Commit ed50b520 authored by Mike Hibler's avatar Mike Hibler

Make a couple of initial setup robustness fixes.

Discovered when reloading/reinitializing the Apt shared node hosts.
parent 3793bb41
......@@ -892,9 +892,11 @@ sub rootPreConfig($)
mysystem("mdadm --detail --scan | sed -e 's/spares=1//' ".
">>/etc/mdadm/mdadm.conf");
$blockdevstr = $rdev;
# XXX wait for the RAID device to come ready, ow pvcreate will fail
sleep(5);
}
mysystem("pvcreate $blockdevstr");
mysystem("pvcreate -f $blockdevstr");
mysystem("vgcreate $VGNAME $blockdevstr");
my $size = lvmVGSize($VGNAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment