Skip to content

Instantly share code, notes, and snippets.

View skirmess's full-sized avatar
🌴

Sven Kirmess skirmess

🌴
View GitHub Profile
@skirmess
skirmess / illumos-wipe-disk.sh
Created May 31, 2020 09:31 — forked from priyadarshan/illumos-wipe-disk.sh
illumos/OmniOS - Wipe disks in order to re-use them from previous zpool
#!/usr/bin/ksh93
# This script only wipe same-sized disks for now
SIZE="10000831348736"
LAST_PART=`echo "($SIZE / 1024 / 1024) - 10" | /usr/bin/bc`
# List of disks to wipe
DRIVES="c0t5000CCA26BD0CAFAd0p0 c0t5000CCA26BD116ACd0p0 c0t5000CCA26BD59F6Dd0p0 c0t5000CCA26BD5AAC5d0p0
c0t5000CCA26BD6960Ed0p0 c0t5000CCA26BD6B9CCd0p0 c0t5000CCA26BD6C6D4d0p0 c0t5000CCA26BD6E59Cd0p0"