Disks raid for rock5b

This commit is contained in:
Andrea Ciceri 2023-06-17 01:01:13 +02:00
parent 41687d8a6a
commit 6ce4914941
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -33,63 +33,67 @@ in {
]; ];
}; };
}; };
# hd1 = { hd1 = {
# type = "disk"; type = "disk";
# device = hd1; device = hd1;
# content = { content = {
# type = "table"; type = "table";
# format = "gpt"; format = "gpt";
# partitions = [ partitions = [
# { {
# name = "primary"; name = "primary";
# start = "0"; start = "0";
# end = "100%"; end = "100%";
# content = { content = {
# type = "lvm_pv"; type = "mdraid";
# vg = "pool"; name = "raid1";
# }; };
# } }
# ]; ];
# }; };
# }; };
# hd2 = { hd2 = {
# type = "disk"; type = "disk";
# device = hd2; device = hd2;
# content = { content = {
# type = "table"; type = "table";
# format = "gpt"; format = "gpt";
# partitions = [ partitions = [
# { {
# name = "primary"; name = "primary";
# start = "0"; start = "0";
# end = "100%"; end = "100%";
# content = { content = {
# type = "lvm_pv"; type = "mdraid";
# vg = "pool"; name = "raid1";
# }; };
# } }
# ]; ];
# }; };
# }; };
# }; };
# lvm_vg = {
# pool = { mdadm = {
# type = "lvm_vg"; raid1 = {
# lvs = { type = "mdadm";
# root = { level = 1;
# size = "100M"; content = {
# lvm_type = "mirror"; type = "table";
# content = { format = "gpt";
# type = "filesystem"; partitions = [
# format = "ext4"; {
# mountpoint = "/mnt/raid"; name = "primary";
# mountOptions = [ start = "0";
# "defaults" end = "100%";
# ]; content = {
# }; type = "filesystem";
# }; format = "ext4";
# }; mountpoint = "/mnt/raid";
# }; };
}
];
};
};
}; };
}; };
} }