When block device naming is not persistent, you may specify the “by-path” name on the <blockdev> line in a node’s disk setup instead of, say, /dev/nvme2n1.
For example:
<blockdev>/dev/disk/by-path/pci-0000:03:00.0-scsi-0:3:111:0</blockdev>
You may find the “by-path” names for a node’s block devices by running the following command on that node:
# ls -l /dev/disk/by-path
Here is an example of what that may look like:
[root@login001-lakeshore smohr]# ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:3:0 -> ../../sda
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:4:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:5:0 -> ../../sdd
lrwxrwxrwx 1 root root 10 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:5:0-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:5:0-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:5:0-part3 -> ../../sdd3
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:6:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:7:0 -> ../../sdg
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:2:8:0 -> ../../sdf
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:03:00.0-scsi-0:3:111:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Oct 19 13:51 pci-0000:61:00.4-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sr0