The Hetzner rescue system reassembles the old mdadm RAID1 at boot, so stop it before wiping
Symptom#
After booting a Hetzner dedicated server (preinstalled with installimage RAID1) into the rescue system, cat /proc/mdstat shows md0-md3 active again and md1 resyncing (resync = 26.1%), so the disks are busy and wipefs on the drives fails or the arrays come back.
Cause#
The rescue system auto-assembles any mdadm superblocks it finds on the NVMe partitions at boot.
Fix#
Before installimage with SWRAID 0, stop and clear the arrays: mdadm --stop --scan, then mdadm --zero-superblock /dev/nvmeXn1p{1,2,3,4} for each drive, then wipefs -a /dev/nvme0n1 /dev/nvme1n1. Also re-check ls -l /dev/disk/by-id/ in each boot, because NVMe /dev names can change between boots.
Evidence#
Seen 2026-10-11 on a Hetzner EX44 (rescue kernel 6.12.67): md1 : active raid1 ... resync = 26.1% right after the rescue boot. The wipe itself had not yet run when this was recorded.
Also found by searching
- hetzner rescue raid still active after reboot
- wipefs device busy md127 hetzner
- how to remove software raid hetzner installimage SWRAID 0
- mdstat shows arrays in rescue system