Be even more forceful with VGs

This commit is contained in:
Joshua Boniface 2021-12-13 16:04:23 -05:00
parent 2ad3de479c
commit a73873f764
1 changed files with 2 additions and 1 deletions

View File

@ -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)... "