I'm currently thinking about installing the CoreOS on a bare-metal server with two disks I want to put in a software RAID1.
The latest CoreOS is now using EXT4 as their default filesystem and I'm fine with that – I've never used brtfs (their previous default) which apparently supports something close to a RAID1, and I'd rather stick to the default EXT4 and mdadm
with which I already have experience.
I can assemble the RAID using mdadm
(from a basic Linux environment loaded from the network) but I don't know what to do next, I'm pretty sure the CoreOS installer will wreck everything if I just give it the /dev/md0
as the target disk so let's not do that.
Did anyone successfully try this ?
Best Answer
The trick is to use right LABELS:
/dev/sdaX
and the second RAID Device is/dev/sdb
/
gets mirrored, Node goes down when sda fails--
Boot into any recovery system like Grml
If not already done: install CoreOS
Backup
/dev/sda9
Prepare the partition layout
Create the RAID
Copy the Data
Wait until resync is finished
watch -n 1 cat /proc/mdstat
reboot!
Now we have
ROOT
on/dev/md0
. I have not tried to put the other partitions (EFI-SYSTEM
,BIOS-BOOT
,USR-A
,USR-B
,OEM
,CONFIG
) on mdadm but it probably would work the same way.