]> git.proxmox.com Git - mirror_zfs.git/commit
vdev_id: new slot type ses
authorSimon Guest <simon.guest@tesujimath.org>
Wed, 20 Dec 2017 17:42:07 +0000 (06:42 +1300)
committerTony Hutter <hutter2@llnl.gov>
Fri, 22 Feb 2019 17:47:34 +0000 (09:47 -0800)
commit41f7723e9cb260f313f99d667142e37617812fca
tree387dcd341b674c0f39f651429e6f6e23b7d1cbea
parent2b8c3cb0c83681d7425fa5bf567e726b7ba975e9
vdev_id: new slot type ses

This extends vdev_id to support a new slot type, ses, for SCSI Enclosure
Services.  With slot type ses, the disk slot numbers are determined by
using the device slot number reported by sg_ses for the device with
matching SAS address, found by querying all available enclosures.

This is primarily of use on systems with a deficient driver omitting
support for bay_identifier in /sys/devices.  In my testing, I found that
the existing slot types of port and id were not stable across disk
replacement, so an alternative was required.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Simon Guest <simon.guest@tesujimath.org>
Closes #6956
cmd/vdev_id/vdev_id
man/man5/vdev_id.conf.5