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:
Jörg Thalheim committed 2024-12-24 14:45:56 +01:00
1 parent 2ee76c861a
commit 7ea6edd857
3 files changed
+46 -5

No files matched your search

+6 -3
View File
@@ -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" ];