I'm using RHEL 7.9 (Maipo) and need to setup for all iSCSI clients the same device name, like /dev/sdb or /dev/thiscustomname.
I could do that by sharing the source disk using multipath, but for Db2 pureScale it cannot be a a symlink. This is how it is showing in the clients A and B:
Client A:
/dev/sdb mpath_me
└─/dev/mapper/db2data
/dev/sdc mpath_me
└─/dev/mapper/db2tieb
Client B (has 2 more disks than Client A):
/dev/sdd mpath_me
└─/dev/mapper/db2data
/dev/sde mpath_me
└─/dev/mapper/db2tieb
For Db2 purScale, when I issue an instance creation with the command:
/opt/ibm/db2/V115fp8ps/instance/db2icrt \
-m n1.local -mnet n1 \
-cf c1.local -cfnet c1 \
-instance_shared_dev /dev/mapper/db2data \
-tbdev /dev/mapper/db2tieb \
-u db2fenc1 db2inst1
The error is
DBI20013E The database product installer detected that the given device path
"/dev/mapper/db2data" is a symbolic link on the host "c1.local".
Db2 pureScale instance creation complains about symlinks, so I cannot use any other entries in /dev/disk, because they're all symlinks and throws the same error:
/dev/disk/by-id
/dev/disk/by-label
/dev/disk/by-partlabel
/dev/disk/by-partuuid
/dev/disk/by-path
/dev/disk/by-uuid
That's the reason I need to use a device name (not a mapper name/symlink).
Is it possible that all clients have the same device name for these iSCSI remote disks, and, sure, ones that I can set myself like /dev/sfa or something way distant from the disks that kernel set for local disks (sda, sdb, sdc, etc.) ?