From f66c10ea34db810a705cc538f0ffea62fcad22c3 Mon Sep 17 00:00:00 2001 From: schmti <44673995+schmti@users.noreply.github.com> Date: Thu, 20 Jul 2023 12:38:31 +0200 Subject: [PATCH] =?UTF-8?q?changed=20wipeing=20command=20to=20one=20who=20?= =?UTF-8?q?is=20more=20hardware=20friendly=20(works=20o=E2=80=A6=20(#850)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changed wipeing command to one who is more hardware friendly (works on any hardware) Co-authored-by: Tim Schmidt --- shared-utils/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-utils/common.sh b/shared-utils/common.sh index 8e4ffd344..371a2573a 100755 --- a/shared-utils/common.sh +++ b/shared-utils/common.sh @@ -335,7 +335,7 @@ function wipe_edge_disks() { storage_disks=$(yq e ".edgeclusters[${index}].[].master${master}.storage_disk" $EDGECLUSTERS_FILE | awk '{print $2}' | xargs echo) for disk in ${storage_disks}; do echo ">>> Wipe disk ${disk} at ${master} ${NODE_IP}" - ${SSH_COMMAND} -i ${RSA_KEY_FILE} core@${NODE_IP} "sudo sgdisk --zap-all $disk;sudo dd if=/dev/zero of=$disk bs=1M count=100 oflag=direct,dsync; sudo blkdiscard $disk" + ${SSH_COMMAND} -i ${RSA_KEY_FILE} core@${NODE_IP%%/*} "sudo wipefs --all --force $disk;" done echo ">>>>" echo "Remove all the existing VolumeGroups"