mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 22:43:28 +01:00
Add examples for all special zpool vdev types
This commit is contained in:
1 file changed
+38
-4
+38
-4
@@ -63,10 +63,15 @@ in
|
|||||||
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Virtual_Devices_(vdevs)
|
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Virtual_Devices_(vdevs)
|
||||||
for details.
|
for details.
|
||||||
'';
|
'';
|
||||||
example = [{
|
example = [
|
||||||
mode = "mirror";
|
{
|
||||||
members = [ "x" "y" "/dev/sda1" ];
|
mode = "mirror";
|
||||||
}];
|
members = [ "x" "y" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
members = [ "z" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
spare = lib.mkOption {
|
spare = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
@@ -76,6 +81,7 @@ in
|
|||||||
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Hot_Spares
|
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Hot_Spares
|
||||||
for details.
|
for details.
|
||||||
'';
|
'';
|
||||||
|
example = [ "x" "y" ];
|
||||||
};
|
};
|
||||||
log = lib.mkOption {
|
log = lib.mkOption {
|
||||||
type = lib.types.listOf vdev;
|
type = lib.types.listOf vdev;
|
||||||
@@ -85,6 +91,15 @@ in
|
|||||||
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Intent_Log
|
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Intent_Log
|
||||||
for details.
|
for details.
|
||||||
'';
|
'';
|
||||||
|
example = [
|
||||||
|
{
|
||||||
|
mode = "mirror";
|
||||||
|
members = [ "x" "y" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
members = [ "z" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
dedup = lib.mkOption {
|
dedup = lib.mkOption {
|
||||||
type = lib.types.listOf vdev;
|
type = lib.types.listOf vdev;
|
||||||
@@ -94,6 +109,15 @@ in
|
|||||||
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#dedup
|
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#dedup
|
||||||
for details.
|
for details.
|
||||||
'';
|
'';
|
||||||
|
example = [
|
||||||
|
{
|
||||||
|
mode = "mirror";
|
||||||
|
members = [ "x" "y" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
members = [ "z" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
special = lib.mkOption {
|
special = lib.mkOption {
|
||||||
type = lib.types.either (lib.types.listOf vdev) (lib.types.nullOr vdev);
|
type = lib.types.either (lib.types.listOf vdev) (lib.types.nullOr vdev);
|
||||||
@@ -103,6 +127,15 @@ in
|
|||||||
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#special
|
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#special
|
||||||
for details.
|
for details.
|
||||||
'';
|
'';
|
||||||
|
example = [
|
||||||
|
{
|
||||||
|
mode = "mirror";
|
||||||
|
members = [ "x" "y" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
members = [ "z" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
cache = lib.mkOption {
|
cache = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
@@ -112,6 +145,7 @@ in
|
|||||||
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Cache_Devices
|
https://openzfs.github.io/openzfs-docs/man/master/7/zpoolconcepts.7.html#Cache_Devices
|
||||||
for details.
|
for details.
|
||||||
'';
|
'';
|
||||||
|
example = [ "x" "y" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user