Be even more forceful with VGs
This commit is contained in:
parent
1e61592ed9
commit
e78cdb515a
|
@ -613,6 +613,7 @@ for vg in $( pvscan | grep "${target_disk}" | awk '{ print $4 }' ); do
|
||||||
vgchange -an ${vg} >&2 || true
|
vgchange -an ${vg} >&2 || true
|
||||||
sleep 1
|
sleep 1
|
||||||
vgchange -an ${vg} >&2
|
vgchange -an ${vg} >&2
|
||||||
|
yes | vgremove ${vg}
|
||||||
done
|
done
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
@ -667,7 +668,7 @@ yes | pvcreate -ffy ${target_disk}4 >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating LVM VG 'vgx'... "
|
echo -n "Creating LVM VG 'vgx'... "
|
||||||
yes | vgcreate vgx ${target_disk}4 >&2
|
yes | vgcreate -f vgx ${target_disk}4 >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating root logical volume (${size_root_lv}GB)... "
|
echo -n "Creating root logical volume (${size_root_lv}GB)... "
|
||||||
|
|
Loading…
Reference in New Issue