In linux all /dev/disk/by-* show link to block device in /dev/sd?, example:
ZFS have attached device by id
Before export new block device from storage to hba, id have next configuration
/dev/disk/by-id/scsi-3600144f0c7a5bc61000058d3b96d001d -> ../../sdd
When added new block device by FC-switch, FC-HBA change block device names
/dev/disk/by-id/scsi-3600144f0c7a5bc61000058d3b96d001d -> ../../sdf
and ZFS can't access to device
And solve this possible only if reboot server
Code:
# ls -la /dev/disk/by-path/
total 0
drwxr-xr-x 2 root root 200 Nov 2 12:58 .
drwxr-xr-x 8 root root 160 Nov 1 21:21 ..
lrwxrwxrwx 1 root root 9 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ecd8890-lun-0 -> ../../sde
lrwxrwxrwx 1 root root 10 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ecd8890-lun-0-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ecd8890-lun-1 -> ../../sdf
lrwxrwxrwx 1 root root 10 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ecd8890-lun-1-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ecd8890-lun-1-part9 -> ../../sdf9
lrwxrwxrwx 1 root root 9 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ecd8890-lun-3 -> ../../sdg
lrwxrwxrwx 1 root root 9 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ee0b861-lun-1 -> ../../sdd
lrwxrwxrwx 1 root root 9 Nov 2 12:59 pci-0000:05:00.0-fc-0x2100000e1ee0b861-lun-2 -> ../../sdh
Code:
# ls -la /dev/disk/by-id/ | grep scsi
lrwxrwxrwx 1 root root 9 Nov 2 12:59 scsi-3600144f0b49c14d1000059fabff00003 -> ../../sdh
lrwxrwxrwx 1 root root 9 Nov 2 12:59 scsi-3600144f0c7a5bc6100005818b76d0013 -> ../../sdg
lrwxrwxrwx 1 root root 9 Nov 2 12:59 scsi-3600144f0c7a5bc610000585d0c610018 -> ../../sde
lrwxrwxrwx 1 root root 10 Nov 2 12:59 scsi-3600144f0c7a5bc610000585d0c610018-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Nov 2 12:59 scsi-3600144f0c7a5bc61000058d3b96d001d -> ../../sdf
lrwxrwxrwx 1 root root 10 Nov 2 12:59 scsi-3600144f0c7a5bc61000058d3b96d001d-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Nov 2 12:59 scsi-3600144f0c7a5bc61000058d3b96d001d-part9 -> ../../sdf9
ZFS have attached device by id
Code:
# zpool status
pool: pool
state: ONLINE
scan: scrub repaired 0 in 1h39m with 0 errors on Sun Oct 8 02:03:34 2017
config:
NAME STATE READ WRITE CKSUM
pool ONLINE 0 0 0
scsi-3600144f0c7a5bc61000058d3b96d001d ONLINE 0 0 0
Before export new block device from storage to hba, id have next configuration
/dev/disk/by-id/scsi-3600144f0c7a5bc61000058d3b96d001d -> ../../sdd
When added new block device by FC-switch, FC-HBA change block device names
/dev/disk/by-id/scsi-3600144f0c7a5bc61000058d3b96d001d -> ../../sdf
and ZFS can't access to device
And solve this possible only if reboot server