[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-installer RAID question



On 9/11/21 9:55 AM, Felix Natter wrote:
hello fellow Debian users,

I have an SSD for the root filesystem, and two HDDs using RAID1 for
/storage running Debian10. Now I need a plan B in case the upgrade
fails.

So I made an experiment with a VM and rougly the same setup (disk-wise),
and found out that when reinstalling Debian11, the d-i does recognize
the RAID1 (/storage) and can reuse it while keeping the data.

My question is: How does d-i know how the individual HDDs were combined
into a RAID1? For all that "sudo fdisk -l" shows, the disks are
"Linux raid autodetect". For all I see, it could be a RAIDX, X!=1 or
two different RAIDs .... Are there RAID headers on the partitions?

The same thing applies when I boot a GNU/Linux rescue system: I think I
can mount the RAID1 if I know the member partitions and type of RAID
using mdadm?

Many Thanks and Best Regards,


I would backup everything, unmount the RAID, shutdown, disconnect the RAID devices, remove the SSD, insert a blank SSD, boot the Debian 11 installer, do a fresh install, configure, do some basic testing, shutdown, connect the RAID devices, boot, mount the RAID, and finish configuring/ testing.


If Debian 11 turns out to be bad, revert to the Debian 10 SSD.


If the RAID gets trashed, restore from backup.


David


Reply to: