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 = {
# type = "disk";
# device = hd1;
# content = {
# type = "table";
# format = "gpt";
# partitions = [
# {
# name = "primary";
# start = "0";
# end = "100%";
# content = {
# type = "lvm_pv";
# vg = "pool";
# };
# }
# ];
# };
# };
# hd2 = {
# type = "disk";
# device = hd2;
# content = {
# type = "table";
# format = "gpt";
# partitions = [
# {
# name = "primary";
# start = "0";
# end = "100%";
# content = {
# type = "lvm_pv";
# vg = "pool";
# };
# }
# ];
# };
# };
# };
# lvm_vg = {
# pool = {
# type = "lvm_vg";
# lvs = {
# root = {
# size = "100M";
# lvm_type = "mirror";
# content = {
# type = "filesystem";
# format = "ext4";
# mountpoint = "/mnt/raid";
# mountOptions = [
# "defaults"
# ];
# };
# };
# };
# };
hd1 = {
type = "disk";
device = hd1;
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "primary";
start = "0";
end = "100%";
content = {
type = "mdraid";
name = "raid1";
};
}
];
};
};
hd2 = {
type = "disk";
device = hd2;
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "primary";
start = "0";
end = "100%";
content = {
type = "mdraid";
name = "raid1";
};
}
];
};
};
};
mdadm = {
raid1 = {
type = "mdadm";
level = 1;
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "primary";
start = "0";
end = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/mnt/raid";
};
}
];
};
};
};
};
}