2021-12-27
Raid-1 on the homeserver rebuilt
After seeing read errors on one disk in the raid-1 of the homeserver I ordered a replacement SSD of a different brand and exactly the same size. It arrived today, and I did the work to replace the suspect disk. First set the old disk as failed and removed from the array. And note the complete serial number on a piece of paper to make sure I removed the faulty disk. After that the server was shut down, disconnected from a lot of cables, dragged from the homerack in the attic and I worked on it. It took a while to open the side with the SSDs (below the mainboard) and with two exactly the same SSDs it was a 50% chance which one to remove. After removing the disk tray and unscrewing the SSD from the disk tray I was able to read the physical label on the underside and I guessed right. After that the new disk was installed, the case closed again and dragged back to its place and cables connected again. After boot it came all up fine. After bootup I partitioned the new disk, added it to the raid-1 again and set up the EFI and Linux boot partitions on the disk. Last step was to setup the boot menu with efibootmgr to set both disks as bootable.