From 4e95be796c72ff4f206e9c5666b7dcb8604ba0e0 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Thu, 27 Dec 2018 15:45:59 +0800 Subject: [PATCH] Port daa6c91991d6b1472a0962f0753f4d60ee977c9b --- xCAT-server/share/xcat/install/scripts/pre.rhels8 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/share/xcat/install/scripts/pre.rhels8 b/xCAT-server/share/xcat/install/scripts/pre.rhels8 index 6be905d17..c1d611657 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.rhels8 +++ b/xCAT-server/share/xcat/install/scripts/pre.rhels8 @@ -224,6 +224,12 @@ fi BOOTFSTYPE=ext4 FSTYPE=ext4 EFIFSTYPE=efi + +#remove any exiting "xcatvg" VG to avoid fatal error +vgs > /tmp/vgs 2>&1 +vgchange -a n xcatvg +vgremove -f xcatvg + msgutil_r "$MASTER_IP" "info" "Found $instdisk, generate partition file..." "/var/log/xcat/xcat.log" "$log_label" echo "ignoredisk --only-use=$instdisk" >>/tmp/partitionfile case "$(uname -m)" in