mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
09d0b30fd1
The vdev_id udev helper currently applies slot renumbering rules to every channel (JBOD) in the system. This is too inflexible for systems with non-homogeneous storage topologies. The "slot" keyword now takes an optional third parameter which names a channel to which the mapping will apply. If the third parameter is omitted then the rule applies to all channels. The first-specified rule that can match a slot takes precedence. Therefore a channel-specific rule for a given slot should generally appear before a generic rule for the same slot number. In this way a custom slot mapping can be applied to a particular channel and a default mapping applied to the rest. Signed-off-by: Ned Bass <bass6@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2056
26 lines
520 B
Plaintext
26 lines
520 B
Plaintext
multipath no
|
|
topology sas_direct
|
|
phys_per_port 4
|
|
|
|
# PCI_ID HBA PORT CHANNEL NAME
|
|
channel 85:00.0 1 A
|
|
channel 85:00.0 0 B
|
|
channel 86:00.0 1 C
|
|
channel 86:00.0 0 D
|
|
|
|
|
|
# Custom mapping for Channel A
|
|
|
|
# Linux Mapped
|
|
# Slot Slot Channel
|
|
slot 1 7 A
|
|
slot 2 10 A
|
|
slot 3 3 A
|
|
slot 4 6 A
|
|
|
|
# Default mapping for B, C, and D
|
|
slot 1 4
|
|
slot 2 2
|
|
slot 3 1
|
|
slot 4 3
|