I have a software RAID running on another distribution of Linux and are upgrading the server to CentOS 8.
I've only configured a server in the past when there was no data on the boot device or software RAID. How do I upgrading just the boot device to CentOS 8 so it will recognize the existing software RAID?
Tested with centos8:
/etc/fstab
to mount the raid (copy fstab line in current fstab)You don't need an
/etc/mdadm.conf
and the boot process autodetects and assembles md devices (unless you have an exotic config).Make sure your backups are up to date before beginning.
Stable solution for migration to any other OS flavor would be:
disassemble your RAID to free up some of your block devices (BD) for a new OS;
set up new OS solely to dedicated BDs (set up incomplete/fail-state RAID within there if required);
migrate mandatory OS/user data to new semi-RAID BDs;
switch to new OS & reassemble your RAID again.
In case your RAID structure can deal with that (I.e. not RAID-1 or alike without any redundancy).