talos
talos copied to clipboard
feat: add mdadm pkg
Add mdadm package to root filesystem. Which automatically activate healthy softraid.
PR: https://github.com/talos-systems/pkgs/pull/315
Soft raid has to be created before
mdadm --create --verbose --level=1 --metadata=1.2 --raid-devices=2 --homehost=any /dev/md/RAID1Array /dev/sdb /dev/sdc
mkfs.xfs -L data /dev/md/RAID1Array
Result of command blkid will be like
/dev/sdb: UUID="a6a859b8-0d42-090d-8269-e9d55e5875b4" UUID_SUB="788bcff8-8486-5829-815c-7dd634af8a02" LABEL="any:RAID1Array" TYPE="linux_raid_member"
/dev/sdc: UUID="a6a859b8-0d42-090d-8269-e9d55e5875b4" UUID_SUB="5dfb68d1-c5e6-623f-7c83-c02ea4af2e35" LABEL="any:RAID1Array" TYPE="linux_raid_member"
/dev/md127: LABEL="data" UUID="facbfa7a-45a1-4659-ba85-b689a3c1a2b3" TYPE="xfs"
You can add those yaml lines to mount the softraid at boot time
machine:
disks:
- device: /dev/md/RAID1Array
partitions:
- mountpoint: /var/mnt/extra