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
…n any hardware)
  • Loading branch information
Tim Schmidt committed Jul 20, 2023
1 parent 55ae4e0 commit ca55bf6
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 ca55bf6

Please sign in to comment.