On a local machine, I can just do
cat /etc/iscsi/initiatorname.iscsi
to get the IQN that is sent to the targets when creating an iSCSI session. I am trying to find out if it is possible to install another IQN machine initiator without ssh'ing. This is because, given the set of IP addresses or hostnames that I donβt control, I need to configure goals to allow ISCSI inputs from only these machines.
It seems that this is not possible, for example, iscsiadm. I suppose the answer is no, but I am not an expert in iSCSI, so I ask anyway. If the answer is βNoβ, we will have to solve the problem in some other way, perhaps by requiring the initiators to be configured using the IQN from a known pool or even that the IQN is installed on all these machines the same way (I suspect that with the last workaround be adverse effects, but I'm not sure).
source share