From c66401fae036b22ecb3fa9af3337e1f9ecffb5e7 Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Fri, 14 Dec 2018 17:27:49 -0800 Subject: 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/-. 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 Reviewed-by: Simon Guest Signed-off-by: Tony Hutter Closes #8194 --- etc/zfs/vdev_id.conf.sas_direct.example | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc') 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 -- cgit v1.2.3