I try to configure iscsi initiator on Linux (Mageia 5 x86_64, open-iscsi). The goal is to automatically connect to iscsi-storage by starting linux. Iscsi-storae is configured on 10.11.104.10 (by the provider, and I don't have any access to the storage management) 1) I discovered targets with command:[root@localhost ~]# iscsiadm -m discovery -p 10.11.104.10 -t stAnd get a list of avalaible targets:10.11.104.10:3260,1 iqn.1991-05.com.microsoft:bckp-104-target10.10.83.10:3260,1 iqn.1991-05.com.microsoft:bckp-104-target10.11.100.10:3260,1 iqn.1991-05.com.microsoft:bckp-104-target10.11.106.10:3260,1 iqn.1991-05.com.microsoft:bckp-104-target10.11.114.10:3260,1 iqn.1991-05.com.microsoft:bckp-104-target2) To initiate the connection on startup I changed the value of discovery.sendtargets.use_discoveryd = No to Yes/var/lib/iscsi/send_targets/10.11.104.10,3260/st_config:# BEGIN RECORD 2.0-872discovery.startup = manualdiscovery.type = sendtargetsdiscovery.sendtargets.address = 10.11.104.10discovery.sendtargets.port = 3260discovery.sendtargets.auth.authmethod = Nonediscovery.sendtargets.timeo.login_timeout = 15discovery.sendtargets.use_discoveryd = Yesdiscovery.sendtargets.discoveryd_poll_inval = 30discovery.sendtargets.reopen_max = 5discovery.sendtargets.timeo.auth_timeout = 45discovery.sendtargets.timeo.active_timeout = 30discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768# END RECORDIn /etc/iscsi/iscsid.conf:node.startup = manualnode.leading_login = NoAfter restarting of iscsid I get /dev/sdb disk and can work with it. But see also in /var/log/messages the foolowing:iscsid: Logging in to [iface: default, target: iqn.1991-05.com.microsoft:bckp-104-target, portal: 10.10.83.10,3260] (multiple)iscsid: Logging in to [iface: default, target: iqn.1991-05.com.microsoft:bckp-104-target, portal: 10.11.100.10,3260] (multiple)iscsid: Logging in to [iface: default, target: iqn.1991-05.com.microsoft:bckp-104-target, portal: 10.11.106.10,3260] (multiple)iscsid: Logging in to [iface: default, target: iqn.1991-05.com.microsoft:bckp-104-target, portal: 10.11.114.10,3260] (multiple)It means, that iscsid tries to connect to all discovered targets.I delete unwanted targets with the command: iscsiadm -m node -p 10.11.100.10  -T iqn.1991-05.com.microsoft:bckp-104-target -o deleteit disappears from /var/lib/iscsi, but all the same in /var/log/messages (there are still connections to all discovered targets).Restarting of iscsid does not change anything.The question is, how to limit logins to discovered targets to only one target 10.11.104.10:3260,1 iqn.1991-05.com.microsoft:bckp-104-target ?
Limit logins to discovered iscsi-targets on Linux
linux;iscsi