1*61145dc2SMartin Matuska.\" SPDX-License-Identifier: CDDL-1.0 216038816SMartin Matuska.\" 316038816SMartin Matuska.\" This file and its contents are supplied under the terms of the 416038816SMartin Matuska.\" Common Development and Distribution License ("CDDL"), version 1.0. 516038816SMartin Matuska.\" You may only use this file in accordance with the terms of version 616038816SMartin Matuska.\" 1.0 of the CDDL. 716038816SMartin Matuska.\" 816038816SMartin Matuska.\" A full copy of the text of the CDDL should have accompanied this 916038816SMartin Matuska.\" source. A copy of the CDDL is also available via the Internet at 1016038816SMartin Matuska.\" http://www.illumos.org/license/CDDL. 1116038816SMartin Matuska.\" 1216038816SMartin Matuska.Dd May 26, 2021 1316038816SMartin Matuska.Dt VDEV_ID 8 1416038816SMartin Matuska.Os 1516038816SMartin Matuska. 1616038816SMartin Matuska.Sh NAME 1716038816SMartin Matuska.Nm vdev_id 1816038816SMartin Matuska.Nd generate user-friendly names for JBOD disks 1916038816SMartin Matuska.Sh SYNOPSIS 2016038816SMartin Matuska.Nm 2116038816SMartin Matuska.Fl d Ar dev 2216038816SMartin Matuska.Fl c Ar config_file 2316038816SMartin Matuska.Fl g Sy sas_direct Ns | Ns Sy sas_switch Ns | Ns Sy scsi 2416038816SMartin Matuska.Fl m 2516038816SMartin Matuska.Fl p Ar phys_per_port 2616038816SMartin Matuska. 2716038816SMartin Matuska.Sh DESCRIPTION 2816038816SMartin Matuska.Nm 2916038816SMartin Matuskais an udev helper which parses 3016038816SMartin Matuska.Xr vdev_id.conf 5 3116038816SMartin Matuskato map a physical path in a storage topology to a channel name. 3216038816SMartin MatuskaThe channel name is combined with a disk enclosure slot number to create 3316038816SMartin Matuskaan alias that reflects the physical location of the drive. 34bb2d13b6SMartin MatuskaThis is particularly helpful when it comes to tasks like replacing failed 35bb2d13b6SMartin Matuskadrives. 36bb2d13b6SMartin MatuskaSlot numbers may also be remapped in case the default numbering is 37bb2d13b6SMartin Matuskaunsatisfactory. 3816038816SMartin MatuskaThe drive aliases will be created as symbolic links in 3916038816SMartin Matuska.Pa /dev/disk/by-vdev . 4016038816SMartin Matuska.Pp 4116038816SMartin MatuskaThe currently supported topologies are 4216038816SMartin Matuska.Sy sas_direct , 4316038816SMartin Matuska.Sy sas_switch , 4416038816SMartin Matuskaand 4516038816SMartin Matuska.Sy scsi . 4616038816SMartin MatuskaA multipath mode is supported in which dm-mpath devices are handled by 4716038816SMartin Matuskaexamining the first running component disk as reported by the driver. 4816038816SMartin MatuskaIn multipath mode the configuration file should contain a 49eda14cbcSMatt Macychannel definition with the same name for each path to a given 50eda14cbcSMatt Macyenclosure. 5116038816SMartin Matuska.Pp 5216038816SMartin Matuska.Nm 53eda14cbcSMatt Macyalso supports creating aliases based on existing udev links in the /dev 5416038816SMartin Matuskahierarchy using the 5516038816SMartin Matuska.Sy alias 5616038816SMartin Matuskaconfiguration file keyword. 5716038816SMartin MatuskaSee 5816038816SMartin Matuska.Xr vdev_id.conf 5 5916038816SMartin Matuskafor details. 6016038816SMartin Matuska. 6116038816SMartin Matuska.Sh OPTIONS 6216038816SMartin Matuska.Bl -tag -width "-m" 6316038816SMartin Matuska.It Fl d Ar device 6416038816SMartin MatuskaThe device node to classify, like 6516038816SMartin Matuska.Pa /dev/sda . 6616038816SMartin Matuska.It Fl c Ar config_file 6716038816SMartin MatuskaSpecifies the path to an alternate configuration file. 6816038816SMartin MatuskaThe default is 6916038816SMartin Matuska.Pa /etc/zfs/vdev_id.conf . 7016038816SMartin Matuska.It Fl g Sy sas_direct Ns | Ns Sy sas_switch Ns | Ns Sy scsi 71eda14cbcSMatt MacyIdentifies a physical topology that governs how physical paths are 7216038816SMartin Matuskamapped to channels: 7316038816SMartin Matuska.Bl -tag -compact -width "sas_direct and scsi" 7416038816SMartin Matuska.It Sy sas_direct No and Sy scsi 7516038816SMartin Matuskachannels are uniquely identified by a PCI slot and HBA port number 7616038816SMartin Matuska.It Sy sas_switch 7716038816SMartin Matuskachannels are uniquely identified by a SAS switch port number 7816038816SMartin Matuska.El 7916038816SMartin Matuska.It Fl m 8016038816SMartin MatuskaOnly handle dm-multipath devices. 8116038816SMartin MatuskaIf specified, examine the first running component disk of a dm-multipath 8216038816SMartin Matuskadevice as provided by the driver to determine the physical path. 8316038816SMartin Matuska.It Fl p Ar phys_per_port 84eda14cbcSMatt MacySpecifies the number of PHY devices associated with a SAS HBA port or SAS 85eda14cbcSMatt Macyswitch port. 8616038816SMartin Matuska.Nm 87eda14cbcSMatt Macyinternally uses this value to determine which HBA or switch port a 8816038816SMartin Matuskadevice is connected to. 8916038816SMartin MatuskaThe default is 9016038816SMartin Matuska.Sy 4 . 9116038816SMartin Matuska.It Fl h 92eda14cbcSMatt MacyPrint a usage summary. 9316038816SMartin Matuska.El 9416038816SMartin Matuska. 9516038816SMartin Matuska.Sh SEE ALSO 9616038816SMartin Matuska.Xr vdev_id.conf 5 97