this post was submitted on 29 Apr 2024
12 points (100.0% liked)

homelab

6584 readers
2 users here now

founded 4 years ago
MODERATORS
 

I have installed Debian with software RAID1 (and installed Proxmox on it) on 2 256GB SSD and I now want to move to 2 500GB SSD, how do I proceed?

Edit: the RAID is of the OS disks.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 7 points 6 months ago* (last edited 6 months ago) (1 children)

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.

[โ€“] [email protected] 3 points 6 months ago (1 children)

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? ๐Ÿ˜ฃ

[โ€“] [email protected] 4 points 6 months ago* (last edited 6 months ago) (1 children)

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

[โ€“] [email protected] 2 points 6 months ago

Got it, thanks a lot!