45Drives Tools: dalias - Error Duplicate Device Path Found Ignoring

Here is how I rebuilt mine on a X11SPH-nCTF w/out dalias - in case you don’t want to insert/remove a bunch of disks.

  1. ls -al /dev/disk/by-path to capture current drives. This step isn’t strictly necessary if you know the format of the disk paths.

Example:

# ls -al /dev/disk/by-path
total 0
drwxr-xr-x. 2 root root 720 Jan 15 12:48 .
drwxr-xr-x. 9 root root 180 Jan 15 12:45 ..
...
lrwxrwxrwx. 1 root root   9 Jan 15 12:45 pci-0000:19:00.0-sas-phy0-lun-0 -> ../../sda
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy0-lun-0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root  10 Jan 15 12:45 pci-0000:19:00.0-sas-phy0-lun-0-part9 -> ../../sda9
lrwxrwxrwx. 1 root root   9 Jan 15 12:45 pci-0000:19:00.0-sas-phy1-lun-0 -> ../../sdb
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy1-lun-0-part1 -> ../../sdb1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy1-lun-0-part9 -> ../../sdb9
lrwxrwxrwx. 1 root root   9 Jan 15 12:46 pci-0000:19:00.0-sas-phy2-lun-0 -> ../../sdc
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy2-lun-0-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy2-lun-0-part9 -> ../../sdc9
lrwxrwxrwx. 1 root root   9 Jan 15 12:46 pci-0000:19:00.0-sas-phy3-lun-0 -> ../../sdd
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy3-lun-0-part1 -> ../../sdd1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy3-lun-0-part9 -> ../../sdd9
lrwxrwxrwx. 1 root root   9 Jan 15 12:46 pci-0000:19:00.0-sas-phy4-lun-0 -> ../../sde
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy4-lun-0-part1 -> ../../sde1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy4-lun-0-part9 -> ../../sde9
lrwxrwxrwx. 1 root root   9 Jan 15 12:46 pci-0000:19:00.0-sas-phy5-lun-0 -> ../../sdf
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy5-lun-0-part1 -> ../../sdf1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy5-lun-0-part9 -> ../../sdf9
lrwxrwxrwx. 1 root root   9 Jan 15 12:46 pci-0000:19:00.0-sas-phy6-lun-0 -> ../../sdg
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy6-lun-0-part1 -> ../../sdg1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy6-lun-0-part9 -> ../../sdg9
lrwxrwxrwx. 1 root root   9 Jan 15 12:46 pci-0000:19:00.0-sas-phy7-lun-0 -> ../../sdh
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy7-lun-0-part1 -> ../../sdh1
lrwxrwxrwx. 1 root root  10 Jan 15 12:46 pci-0000:19:00.0-sas-phy7-lun-0-part9 -> ../../sdh9
...

In this case I’ve recabled slots 1-1 thru 1-8 to the X11SPH-nCTF’s onboard SAS ports via the AOC-S3008L-L8e and slots 1-9 thru 1-15 to the onboard SATA ports via the Intel C622.

SAS paths are /dev/disk/by-path/pci-0000:19:00.0-sas-phyX-lun-0 where X is the interface number.

SATA paths are /dev/disk/by-path/pci-0000:00:17.0-ata-X where X is the interface number.

The 0000:XX:XX.X is the ID of the PCI device - the SAS and SATA controllers.

# lspci
...
00:17.0 SATA controller: Intel Corporation C620 Series Chipset Family SATA Controller [AHCI mode] (rev 09)
...
19:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
...
  1. Created new version of /etc/vdev_id.conf.
# Manual creation; 2023-12-29
# Use `dalias` under normal circumstances.

# SAS (AOC-S3008L-L8e)
alias 1-1 /dev/disk/by-path/pci-0000:19:00.0-sas-phy0-lun-0
alias 1-2 /dev/disk/by-path/pci-0000:19:00.0-sas-phy1-lun-0
alias 1-3 /dev/disk/by-path/pci-0000:19:00.0-sas-phy2-lun-0
alias 1-4 /dev/disk/by-path/pci-0000:19:00.0-sas-phy3-lun-0
alias 1-5 /dev/disk/by-path/pci-0000:19:00.0-sas-phy4-lun-0
alias 1-6 /dev/disk/by-path/pci-0000:19:00.0-sas-phy5-lun-0
alias 1-7 /dev/disk/by-path/pci-0000:19:00.0-sas-phy6-lun-0
alias 1-8 /dev/disk/by-path/pci-0000:19:00.0-sas-phy7-lun-0

# SATA (Intel C622)
alias 1-9 /dev/disk/by-path/pci-0000:00:17.0-ata-1
alias 1-10 /dev/disk/by-path/pci-0000:00:17.0-ata-2
alias 1-11 /dev/disk/by-path/pci-0000:00:17.0-ata-3
alias 1-12 /dev/disk/by-path/pci-0000:00:17.0-ata-4
alias 1-13 /dev/disk/by-path/pci-0000:00:17.0-ata-5
alias 1-14 /dev/disk/by-path/pci-0000:00:17.0-ata-6
alias 1-15 /dev/disk/by-path/pci-0000:00:17.0-ata-7
  1. Run udevadm control --reload-rules
  2. Run udevadm trigger
  3. Run lsdev to confirm.
# lsdev
╔═══════════════════╗
║ Storage Disk Info ║
╠═══════════════════╣
║ Row 1 ID (Dev)    ║
╠═══════════════════╣
║ 1-1  (/dev/sda)   ║
║ 1-2  (/dev/sdb)   ║
║ 1-3  (/dev/sdc)   ║
║ 1-4  (/dev/sdd)   ║
║ 1-5  (/dev/sde)   ║
║ 1-6  (/dev/sdf)   ║
║ 1-7  (/dev/sdg)   ║
║ 1-8  (/dev/sdh)   ║
║ 1-9  (-)          ║
║ 1-10 (-)          ║
║ 1-11 (-)          ║
║ 1-12 (-)          ║
║ 1-13 (-)          ║
║ 1-14 (-)          ║
║ 1-15 (-)          ║
╚═══════════════════╝
 <-- motherboard | front plate -->
 Legend:
 Empty  Occupied (no partitions)  Occupied (1 or more partitions)

Disk Viewer feature is fully-functional.

1 Like