Mirror disko config test
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
};
|
# Data mirror disks
|
||||||
# Data mirror configuration generated by deploy.sh
|
|
||||||
disk = {
|
|
||||||
"content-1" = {
|
"content-1" = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "${CONTENT_DISK_ID}";
|
device = "${CONTENT_DISK_ID}";
|
||||||
@@ -13,6 +11,10 @@
|
|||||||
type = "luks";
|
type = "luks";
|
||||||
name = "crypted-content-1";
|
name = "crypted-content-1";
|
||||||
settings.keyFile = "/etc/secrets/disks/content-1";
|
settings.keyFile = "/etc/secrets/disks/content-1";
|
||||||
|
content = {
|
||||||
|
type = "mdraid";
|
||||||
|
name = "data-storage";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -30,14 +32,27 @@
|
|||||||
type = "luks";
|
type = "luks";
|
||||||
name = "crypted-parity-1";
|
name = "crypted-parity-1";
|
||||||
settings.keyFile = "/etc/secrets/disks/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" = {
|
# RAID 1 Configuration
|
||||||
type = "xfs";
|
mdadm = {
|
||||||
label = "data-storage";
|
"data-storage" = {
|
||||||
mountpoint = "/mnt/data-storage";
|
type = "mdadm";
|
||||||
|
level = 1;
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "xfs";
|
||||||
|
mountpoint = "/mnt/data-storage";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user