A bare-metal server has a broken disk out of the box. What do I do?
Servers from the Hetzner auction or new orders sometimes arrive with a bad disk. The usual sign is that provisioning fails or takes much longer than expected, or that disk I/O is unusually slow after the node joins.
The provisioner checks the disks during provisioning and publishes the result as a Kubernetes event on the HetznerBareMetalHost. The event has the disk identifiers and SMART data Hetzner needs for a replacement.
Open a Hetzner ticket with the disk check event
Set maintenanceMode: true on the HetznerBareMetalHost so the controller stops retrying. Then read the event:
kubectl get events -n <namespace> \
--field-selector involvedObject.kind=HetznerBareMetalHost,involvedObject.name=<host-name> \
-o jsonpath='{range .items[*]}{.reason}: {.message}{"\n"}{end}'
If the command prints nothing, the event has already expired. See If the event is no longer available below.
Open a support ticket through the Robot panel for the affected server. Hetzner needs the serial number of the faulty disk to replace it. Copy the serial from the first line of the event output, where it follows the disk name, and put it at the top of the ticket:
Affected disk serial number: <serial>
Then paste the full event output under it.
After Hetzner replaces the disk, update rootDeviceHints if the new disk has a different WWN (see Find the disk WWN), then set maintenanceMode: false.
If the event is no longer available
Events are kept for 3 hours. If the event is gone, boot the server into the Hetzner rescue system and run smartctl -a /dev/<disk> on each disk to get the SMART data yourself, then paste that into the Hetzner ticket instead.
Related questions
