Skip to content

Commit

Permalink
changed wipeing command to one who is more hardware friendly (works o… (
Browse files Browse the repository at this point in the history
#850)

changed wipeing command to one who is more hardware friendly (works on any hardware)

Co-authored-by: Tim Schmidt <schmidt@viada.de>
  • Loading branch information
schmti and Tim Schmidt authored Jul 20, 2023
1 parent 72237da commit f66c10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f66c10e

Please sign in to comment.