mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
zfs-with-vdevs: add an example for using absolute device paths
This is the only way to assign devices rather than fixed gpt partitions. Without reading the code it's not very obvious how disko actually assigns devices to zpools.
This commit is contained in:
1 parent
2ee76c861a
commit
7ea6edd857
3 files changed
+46
-5
No files matched your search
@@ -244,11 +244,14 @@
|
||||
type = "topology";
|
||||
vdev = [
|
||||
{
|
||||
mode = "mirror";
|
||||
members = [ "data1" "data2" ];
|
||||
# This syntax expects a disk called 'data3' with a gpt partition called 'zfs'.
|
||||
members = [ "data1" ];
|
||||
# It's also possible to use the full path of the device or partition
|
||||
# members = [ "/dev/disk/by-id/wwn-0x5000c500af8b2a14" ];
|
||||
}
|
||||
{
|
||||
members = [ "data3" ];
|
||||
mode = "mirror";
|
||||
members = [ "data2" "data3" ];
|
||||
}
|
||||
];
|
||||
spare = [ "spare" ];
|
||||
|
||||
Reference in new issue
Block a user