Disks raid for rock5b
This commit is contained in:
parent
41687d8a6a
commit
6ce4914941
1 changed files with 61 additions and 57 deletions
|
@ -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";
|
||||||
# };
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue