this post was submitted on 29 Apr 2024
12 points (100.0% liked)
homelab
6648 readers
12 users here now
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Replace one disk, let the raid rebuild. Do the same with the other disk. Do an mdadm grow, then maybe fdisk / lvm / resize fs depending on your setup. Don't forget to install a bootloader when you put a new disk in.
Making a new array and migrating data is for chumps.
Oh, so easy?! If the RAID rebuilds the disk, why should I install a bootloader? Isn't it already in the rebuilt disk? By the way...hemmm...how do I install the bootloader? ๐ฃ
Yes it's really that easy. Raid in Linux is usually at the partition level, not the whole device. The bootloader resides in the first few blocks of the disk before your partitions, and isn't included in the raid.
Use grub-install on the new disk device, ie /dev/sda
Got it, thanks a lot!