2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
17 .Nd generate user-friendly names for JBOD disks
22 .Fl g Sy sas_direct Ns | Ns Sy sas_switch Ns | Ns Sy scsi
24 .Fl p Ar phys_per_port
28 is an udev helper which parses
30 to map a physical path in a storage topology to a channel name.
31 The channel name is combined with a disk enclosure slot number to create
32 an alias that reflects the physical location of the drive.
33 This is particularly helpful when it comes to tasks like replacing failed
35 Slot numbers may also be remapped in case the default numbering is
37 The drive aliases will be created as symbolic links in
38 .Pa /dev/disk/by-vdev .
40 The currently supported topologies are
45 A multipath mode is supported in which dm-mpath devices are handled by
46 examining the first running component disk as reported by the driver.
47 In multipath mode the configuration file should contain a
48 channel definition with the same name for each path to a given
52 also supports creating aliases based on existing udev links in the /dev
55 configuration file keyword.
63 The device node to classify, like
65 .It Fl c Ar config_file
66 Specifies the path to an alternate configuration file.
68 .Pa /etc/zfs/vdev_id.conf .
69 .It Fl g Sy sas_direct Ns | Ns Sy sas_switch Ns | Ns Sy scsi
70 Identifies a physical topology that governs how physical paths are
72 .Bl -tag -compact -width "sas_direct and scsi"
73 .It Sy sas_direct No and Sy scsi
74 channels are uniquely identified by a PCI slot and HBA port number
76 channels are uniquely identified by a SAS switch port number
79 Only handle dm-multipath devices.
80 If specified, examine the first running component disk of a dm-multipath
81 device as provided by the driver to determine the physical path.
82 .It Fl p Ar phys_per_port
83 Specifies the number of PHY devices associated with a SAS HBA port or SAS
86 internally uses this value to determine which HBA or switch port a
87 device is connected to.
91 Print a usage summary.