How to create Raid in installation
¶ odroid-HC4
PRETTY_NAME="Ubuntu Noble Numbat (development branch)"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 ext4 1.0 /boot 8e721e25-7267-4318-bdcb-e01163274553 849.9M 3% /boot
├─sda2 swap 1 00d1e678-d452-4a47-8154-24d67944f471 [SWAP]
└─sda3 xfs 291bc8d4-bd02-418d-a298-593b53ea17c2 918.9G 1% /
sdb
├─sdb1
├─sdb2 swap 1 2163249b-2bff-42d3-b716-063bf93325b4 [SWAP]
├─sdb3
└─sdb5 linux_raid_member 1.2 nextcloud:0 24462db5-cde5-f03a-74a5-862a2f60b4e7
└─md0 \
- create /dev/sda1(boot), /dev/sda2(swap), /dev/sda3(N/A), and /dev/sdb1(N/A) and /dev/sdb2(swap) /dev/sdb3(N/A)
- create raid /dev/sda3, /dev/sdb3 as md0
- make md0 as XFS as /
- odroid-hc4 with bookworm
alexlai@hc4Bookworm:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 ext4 1.0 0d9e1017-f688-4f9c-bdfe-8384cad41d4f 392M 6% /boot
├─sda2 swap 1 66f1b286-6e81-4ca1-9be9-9ba3d8e34b1c [SWAP]
└─sda3 linux_raid_member 1.2 hc4Bookworm:0 66412718-d737-7aea-f807-39a1a351a0fd
└─md0 xfs /root 2e58c1c3-6c27-4d7f-914f-dcb66c460379 216.5G 1% /
sdb
├─sdb1 vfat FAT32 efi-boot 6B3D-DD28
├─sdb2 swap 1 9babc28c-ccf0-46f1-aed8-0588a6db3c47 [SWAP]
└─sdb3 linux_raid_member 1.2 hc4Bookworm:0 66412718-d737-7aea-f807-39a1a351a0fd
└─md0 xfs /root 2e58c1c3-6c27-4d7f-914f-dcb66c460379 216.5G 1% /
Since /boot partion is not replicated, so very updated kernel we have to
mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /mnt
rsync -arv /boot/ /mnt
以下、 you can not make boot partion as md0, since the bootload can not load mdadm in
- create /dev/sda1(N/A), /dev/sda2(swap), /dev/sda3(N/A), and /dev/sdb1(N/A) and /dev/sdb2(swap) /dev/sdb3(N/A)
- create raid /dev/sda1, /dev/sdb1 as md0
- create raid /dev/sda3, /dev/sdb3 as md1
- make md0 as ext4, /boot and md1 as xfs ad /