Tools to scrub disks and factory reset a server when it is decommissioned.
Configure on Linux (or Bash on Windows)
- cd to the USB key root
- (optional, set additional environment variables ... see "Advanced Install" below)
curl "https://raw.githubusercontent.com/ncsa/syswipe/${SYSWIPE_GIT_BRANCH:-main}/setup_srcd.sh" | bash
- Insert USB key
- Power on (or reboot)
- If boot from USB is not enabled:
- During POST, manually select Boot options (usually F11)
- Select the USB key as the boot option
- Live:
Ctl-Alt-F2
- Logs:
/var/log/auto_wipe.log
- Live Rate:
iostat -z -m -y -d 1 1
Connect a USB drive carrier and insert a hard drive. The system will detect the new device and wipe it automatically. When it's complete, swap in a new drive to have it auto-wiped. Repeat until all drives are wiped.
- Live:
Ctl-Alt-F3
- Monitor:
watch -n 30 /root/status.sh
- Logs:
/var/log/continous_wipe.log
- Live Rate:
iostat -p "$(cat /root/disk_wipe_in_progress)" -m -y -d 1 1
Control extra features during "Configure" stage.
Set these before running "curl ... setup_srcd.sh" (above)
- Use a branch other than main
export SYSWIPE_GIT_BRANCH=some_branch_name
- Install ssh authorized_keys from github.com/user.keys
export SYSWIPE_AUTHKEYS_GITHUBUSER=githubusername
- Insert USB key
- cd to the USB key root
rm -f autorun/* sysrescue.d/2*
- ssh to the system
- If not already installed, install racadm
curl -s https://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash yum install -y srvadmin-idracadm7 mkdir /root/bin ln -s /opt/dell/srvadmin/bin/idracadm7 /root/bin/racadm
racadm systemerase idrac,bios
- Node will reboot on it's own and usually will stay off
- Insert USB key
- Power on node
- If there are remaining iDRAC changes to apply, it will apply those and power off again.
- Repeat until it boots from USB, which will auto wipe all the drives.
curl "https://raw.githubusercontent.com/ncsa/syswipe/${SYSWIPE_GIT_BRANCH:-main}/scripts/Dell/racadm_set_usb_boot" | bash