]> granicus.if.org Git - zfs/commit
vdev_id: implement slot numbering by port id
authorsckobras <sckobras@users.noreply.github.com>
Mon, 14 Aug 2017 22:18:26 +0000 (00:18 +0200)
committerTony Hutter <hutter2@llnl.gov>
Mon, 21 Aug 2017 23:41:22 +0000 (16:41 -0700)
commit426563be7002ad9bdd99d3ad21fc8698aba353d0
tree22eab0dc0e469c59b084f4d0a61a89b5724c8b18
parentaec43188702b16f805aa71234a4dc5c60398af43
vdev_id: implement slot numbering by port id

With HPE hardware and hpsa-driven SAS adapters, only a single phy is
reported, but no individual per-port phys (ie. no phy* entry below
port_dir), which breaks topology detection in the current sas_handler
code. Instead, slot information can be derived directly from the port
number. This change implements a new slot keyword "port" similar to
"id" and "lun", and assumes a default phy/port of 0 if no individual
phy entry can be found. It allows to use the "sas_direct" topology with
current HPE Dxxxx and Apollo 45xx JBODs.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Daniel Kobras <d.kobras@science-computing.de>
Closes #6484
cmd/vdev_id/vdev_id
man/man5/vdev_id.conf.5