[CentOS] Replacing SW RAID-1 with SSD RAID-1

Tue Nov 24 17:06:49 UTC 2020
Simon Matter <simon.matter at invoca.ch>

> --On Monday, November 23, 2020 4:46 PM +0100 Simon Matter
> <simon.matter at invoca.ch> wrote:
>
>> I suggest to "mdadm --fail" one drive, then "mdadm --remove" it. After
>> replacing the drive you can "mdadm --add" it.
>
> Does it make sense to dd or ddrescue from the removed drive to the
> replacement? My md RAID set is on primary partitions, not raw drives, so
> I'm assuming the replacement drive needs at least the boot sector from the
> old drive to copy the partition data.

I usually dd the first mb to the new disk if it's used for booting, yes.

Simon