I did a bit more testing of raid1
on root
- with systemd-boot
.
-
zfs
turned out to be a simpler choice thanraid1
onbtrfs
-
btrfs filesystem show /
was not very clear if data was properly mirrored -
I just partitioned the
2
disks & chosevda
as the install disk with the option to “Erase Disk” & the installer just re-used the existing2
partitions
Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D84656E3-B34B-46F0-AF43-B90189118F24
Device Start End Sectors Size Type
/dev/vda1 4096 4198399 4194304 2G EFI System
/dev/vda2 4198400 41942973 37744574 18G Linux filesystem
Disk /dev/vdb: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0E924AAF-CEDE-4CCD-A52D-BA16D278D7C7
Device Start End Sectors Size Type
/dev/vdb1 2048 4196351 4194304 2G EFI System
/dev/vdb2 4196352 41940991 37744640 18G Linux filesystem
- Calamares successfully installed
systemd-boot
withzfs
- adding DISK 2 of the
root
mirror:
-----------------------------------------
zpool attach <pool> <device> <new device>
-----------------------------------------
zpool attach -f zpcachyos 9b830ba0-9be4-422c-aab3-ef155c8006e9 \
virtio-pci-0000:08:00.0-part2
# possibly wait one minute for resilvering: os => mirror B to finish
#--------------------------------------------------------------------
❯ zpool status
pool: zpcachyos
state: ONLINE
scan: resilvered 4.85G in 00:01:39 with 0 errors on Wed Oct 23 21:09:52 2024
config:
NAME STATE READ WRITE CKSUM
zpcachyos ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
9b830ba0-9be4-422c-aab3-ef155c8006e9 ONLINE 0 0 0
virtio-pci-0000:08:00.0-part2 ONLINE 0 0 0
errors: No known data errors
❯ bootctl is-installed
yes
- adding
netboot.xyz
tosystemd-boot
is easy. An Ubuntu XFCElive image
makes a nice recovery environment (it has thezfs
module available in thelive
environment) 4k
sectors onnvme
gives you5-10%
free performance- now just cloning the
ESP
to figure out (mdadm
?) - Debian’s RAID for the EFI System Partition should be good enough as apacman
hook in my particular case (2 xnvme
)