summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2018-12-14 17:27:49 -0800
committerBrian Behlendorf <[email protected]>2018-12-14 17:27:49 -0800
commitc66401fae036b22ecb3fa9af3337e1f9ecffb5e7 (patch)
treec52b231a099ae57908e550b2d85ef32c0433167e /etc
parent7c46894081300410612a34f7c05377848b277dab (diff)
Add enclosure_symlinks option to vdev_id
Add an 'enclosure_symlinks' option to vdev_id.conf. This creates consistently named symlinks to the enclosure devices (/dev/sg*) based off the configuration in vdev_id.conf. The enclosure symlinks show up in /dev/by-enclosure/<prefix>-<channel><num>. The links make it make it easy to run sg_ses on a particular enclosure device. The enclosure links are created in addition to the normal /dev/disk/by-vdev links. 'enclosure_symlinks' is only valid in sas_direct configurations. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Simon Guest <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #8194
Diffstat (limited to 'etc')
-rw-r--r--etc/zfs/vdev_id.conf.sas_direct.example3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/zfs/vdev_id.conf.sas_direct.example b/etc/zfs/vdev_id.conf.sas_direct.example
index 115ebd8d3..0a6f130cb 100644
--- a/etc/zfs/vdev_id.conf.sas_direct.example
+++ b/etc/zfs/vdev_id.conf.sas_direct.example
@@ -2,6 +2,9 @@ multipath no
topology sas_direct
phys_per_port 4
+# Additionally create /dev/by-enclousure/ symlinks for enclosure devices
+enclosure_symlinks yes
+
# PCI_ID HBA PORT CHANNEL NAME
channel 85:00.0 1 A
channel 85:00.0 0 B