Content-type: text/html
The vdev_id.conf file uses a simple format consisting of a keyword followed by one or more values on a single line. Any line not beginning with a recognized keyword is ignored. Comments may optionally begin with a hash character.
The following keywords and values are used.
name - the name of the link to the device that will by created in /dev/disk/by-vdev.
devlink - the name of the device link that has already been defined by udev. This may be an absolute path or the base filename.
/dev/by-enclosure/<prefix>-<channel><num>
Defaults to "enc" if not specified.
port - specifies the numeric identifier of the HBA or SAS switch port connected to the disk enclosure being mapped.
name - specifies the name of the channel.
sas_direct - in this mode a channel is uniquely identified by a PCI slot and a HBA port number
sas_switch - in this mode a channel is uniquely identified by a SAS switch port number
bay - read the slot number from the bay identifier.
phy - read the slot number from the phy identifier.
port - use the SAS port as the slot number.
id - use the scsi id as the slot number.
lun - use the scsi lun as the slot number.
ses - use the SCSI Enclosure Services (SES) enclosure device slot number, as reported by sg_ses(8). This is intended for use only on systems where bay is unsupported, noting that port and id may be unstable across disk replacement.
        multipath     no
        topology      sas_direct
        phys_per_port 4
        slot          bay
        #       PCI_SLOT 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
A SAS-switch topology. Note that the channel keyword takes only two arguments in this example.
        topology      sas_switch
        #       SWITCH PORT  CHANNEL NAME
        channel 1            A
        channel 2            B
        channel 3            C
        channel 4            D
A multipath configuration. Note that channel names have multiple definitions - one per physical path.
        multipath yes
        #       PCI_SLOT HBA PORT  CHANNEL NAME
        channel 85:00.0  1         A
        channel 85:00.0  0         B
        channel 86:00.0  1         A
        channel 86:00.0  0         B
A configuration with enclosure_symlinks enabled.
        multipath yes
        enclosure_symlinks yes
        #          PCI_ID      HBA PORT     CHANNEL NAME
        channel    05:00.0     1            U
        channel    05:00.0     0            L
        channel    06:00.0     1            U
        channel    06:00.0     0            L
In addition to the disks symlinks, this configuration will create:
        /dev/by-enclosure/enc-L0
        /dev/by-enclosure/enc-L1
        /dev/by-enclosure/enc-U0
        /dev/by-enclosure/enc-U1
A configuration using device link aliases.
        #     by-vdev
        #     name     fully qualified or base name of device link
        alias d1       /dev/disk/by-id/wwn-0x5000c5002de3b9ca
        alias d2       wwn-0x5000c5002def789e