On 03/26/2014 10:11 PM, 陈江宏 wrote:
> I have a synology data station which have two Ethernet work,eth0 ip is
> 172.18.133.210 and eth1 ip is 172.18.133.218.
> eth0 had been connect to network,but eht1 hadn't connect to
> network,follow is information:
> 
> # iscsiadm -m node 
> 172.18.133.218:3260,0 iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail
> 172.18.133.210:3260,0 iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail
> 
> # iscsiadm -m node -T iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail
> 172.18.133.210:3260 -l
> Logging in to [iface: default, target:
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail, portal:
> 172.18.133.218,3260] (multiple)
> Logging in to [iface: default, target:
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail, portal:
> 172.18.133.210,3260] (multiple)
> Login to [iface: default, target:
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail, portal:
> 172.18.133.218,3260] successful.
> iscsiadm: Could not login to [iface: default, target:
> iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail, portal:
> 172.18.133.210,3260].
> iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI
> login failure)
> iscsiadm: Could not log into all portals
> 
> is it possible adjust the login in order,let 172.18.133.210 first than
> 172.18.133.218 target.

I am not sure what you want exactly.

1. The command you ran above:

iscsiadm -m node -T iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail
172.18.133.210:3260 -l

is going to ignore the portal and try to log into all portals on the
target.  You just forgot to pass in the -p. It should be

iscsiadm -m node -T iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail -p
172.18.133.210:3260 -l

That would have iscsi only login to that specific portal. If that is all
you wanted to do then we are done :)

2. If you wanted the default code to be able to login to specific
portals in a user defined order then that is not possible. It logs into
all portals marked automatic in parallel. You could modify the default
iscsi init scripts to login to specific portals in some order.

Not sure if it is exactly what you wanted but you could also mark the
startup as manual.

iscsiadm -m node -o update -n node.startup -v manual -T
iqn.2010-10.synology-iscsi:virtualdisk.whxg-mail -p 172.18.133.218

That would just make it so when the iscsi init scripts run the tools
would auto login to 210.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to