From: Ned A. Bass Date: Tue, 21 Jun 2011 23:18:27 +0000 (-0700) Subject: Multipath device manageability improvements X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=560bcf9d14a63e2cef4dd49d61399c8a865c1348;p=zfs.git 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