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

homelab

6602 readers
1 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.

top 3 comments
sorted by: hot top controversial new old
[โ€“] Shadow@lemmy.ca 0 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.

[โ€“] peregus@lemmy.world 0 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? ๐Ÿ˜ฃ

[โ€“] Shadow@lemmy.ca 1 points 6 months ago* (last edited 6 months ago)

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