Mirror disko config test

This commit is contained in:
Raphaël Numbus
2026-01-10 12:08:14 +01:00
parent 8368d2b522
commit 90e46d3751
+23 -8
View File
@@ -1,6 +1,4 @@
};
# Data mirror configuration generated by deploy.sh
disk = {
# Data mirror disks
"content-1" = {
type = "disk";
device = "${CONTENT_DISK_ID}";
@@ -13,6 +11,10 @@
type = "luks";
name = "crypted-content-1";
settings.keyFile = "/etc/secrets/disks/content-1";
content = {
type = "mdraid";
name = "data-storage";
};
};
};
};
@@ -30,14 +32,27 @@
type = "luks";
name = "crypted-parity-1";
settings.keyFile = "/etc/secrets/disks/parity-1";
content = {
type = "mdraid";
name = "data-storage";
};
};
};
};
};
};
};
mdadm.raid-devices = [ "/dev/mapper/crypted-content-1" "/dev/mapper/crypted-parity-1" ];
fs."/dev/md/data-storage" = {
type = "xfs";
label = "data-storage";
mountpoint = "/mnt/data-storage";
# RAID 1 Configuration
mdadm = {
"data-storage" = {
type = "mdadm";
level = 1;
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/mnt/data-storage";
};
};
};