summaryrefslogtreecommitdiffstats
path: root/etc/zfs
diff options
context:
space:
mode:
authorSimon Guest <[email protected]>2017-09-28 06:39:47 +1300
committerBrian Behlendorf <[email protected]>2017-09-27 10:39:47 -0700
commit269db7a4b3ef2bc14f3c2cf95f050479cbd69e72 (patch)
tree0db5488ac7ecbc7ca979eea49b600b6dba94a7d7 /etc/zfs
parent0c484ab5677ffaa3e0e2371456deb4f8eb370388 (diff)
vdev_id: extension for new scsi topology
On systems with SCSI rather than SAS disk topology, this change enables the vdev_id script to match against the block device path, and therefore create a vdev alias in /dev/disk/by-vdev. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Simon Guest <[email protected]> Closes #6592
Diffstat (limited to 'etc/zfs')
-rw-r--r--etc/zfs/Makefile.am3
-rw-r--r--etc/zfs/vdev_id.conf.scsi.example9
2 files changed, 11 insertions, 1 deletions
diff --git a/etc/zfs/Makefile.am b/etc/zfs/Makefile.am
index ff35469fe..52f6634df 100644
--- a/etc/zfs/Makefile.am
+++ b/etc/zfs/Makefile.am
@@ -4,6 +4,7 @@ pkgsysconf_DATA = \
vdev_id.conf.alias.example \
vdev_id.conf.sas_direct.example \
vdev_id.conf.sas_switch.example \
- vdev_id.conf.multipath.example
+ vdev_id.conf.multipath.example \
+ vdev_id.conf.scsi.example
EXTRA_DIST = $(pkgsysconf_DATA)
diff --git a/etc/zfs/vdev_id.conf.scsi.example b/etc/zfs/vdev_id.conf.scsi.example
new file mode 100644
index 000000000..b8c0ab2bf
--- /dev/null
+++ b/etc/zfs/vdev_id.conf.scsi.example
@@ -0,0 +1,9 @@
+multipath no
+topology scsi
+phys_per_port 1
+# Usually scsi disks are numbered from 0, but this can be offset, to
+# match the physical bay numbers, as follows:
+first_bay_number 1
+
+# PCI_ID HBA PORT CHANNEL NAME
+channel 0c:00.0 0 Y