summaryrefslogtreecommitdiffstats
path: root/cmd/Makefile.in
diff options
context:
space:
mode:
authorNed A. Bass <[email protected]>2011-06-21 16:18:27 -0700
committerBrian Behlendorf <[email protected]>2011-06-23 10:46:06 -0700
commit560bcf9d14a63e2cef4dd49d61399c8a865c1348 (patch)
treec077c852fe1a91c51d72e42951b888feab898906 /cmd/Makefile.in
parent7e7baecaa321ce4e96938a02b87ab22a7939e422 (diff)
Multipath device manageability improvements
Update udev helper scripts to deal with device-mapper devices created by multipathd. These enhancements are targeted at a particular storage network topology under evaluation at LLNL consisting of two SAS switches providing redundant connectivity between multiple server nodes and disk enclosures. The key to making these systems manageable is to create shortnames for each disk that conveys its physical location in a drawer. In a direct-attached topology we infer a disk's enclosure from the PCI bus number and HBA port number in the by-path name provided by udev. In a switched topology, however, multiple drawers are accessed via a single HBA port. We therefore resort to assigning drawer identifiers based on which switch port a drive's enclosure is connected to. This information is available from sysfs. Add options to zpool_layout to generate an /etc/zfs/zdev.conf using symbolic links in /dev/disk/by-id of the form <label>-<UUID>-switch-port:<X>-slot:<Y>. <label> is a string that depends on the subsystem that created the link and defaults to "dm-uuid-mpath" (this prefix is used by multipathd). <UUID> is a unique identifier for the disk typically obtained from the scsi_id program, and <X> and <Y> denote the switch port and disk slot numbers, respectively. Add a callout script sas_switch_id for use by multipathd to help create symlinks of the form described above. Update zpool_id and the udev zpool rules file to handle both multipath devices and conventional drives.
Diffstat (limited to 'cmd/Makefile.in')
-rw-r--r--cmd/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/Makefile.in b/cmd/Makefile.in
index ff7dfd3bf..733290e8b 100644
--- a/cmd/Makefile.in
+++ b/cmd/Makefile.in
@@ -299,7 +299,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = zfs zpool zdb zinject ztest zpios mount_zfs zpool_layout \
- zvol_id zpool_id
+ zvol_id zpool_id sas_switch_id
all: all-recursive
.SUFFIXES: