Add support for ZFS spare, log & dedup vdevs

This commit is contained in:
Michon van Dooren committed 2024-11-17 15:52:28 +01:00
1 parent cb64993826
commit 9b56c1afdb
3 files changed
+110 -14

No files matched your search

+67 -6
View File
@@ -43,9 +43,57 @@
};
};
};
z = {
spare = {
type = "disk";
device = "/dev/sdz";
device = "/dev/vdc";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
};
log = {
type = "disk";
device = "/dev/vdd";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
};
dedup = {
type = "disk";
device = "/dev/vde";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
};
special = {
type = "disk";
device = "/dev/vdf";
content = {
type = "gpt";
partitions = {
@@ -61,7 +109,7 @@
};
cache = {
type = "disk";
device = "/dev/vdc";
device = "/dev/vdg";
content = {
type = "gpt";
partitions = {
@@ -91,9 +139,22 @@
];
}
];
special = {
members = [ "z" ];
};
spare = [ "spare" ];
log = [
{
members = [ "log" ];
}
];
dedup = [
{
members = [ "dedup" ];
}
];
special = [
{
members = [ "special" ];
}
];
cache = [ "cache" ];
};
};