User Tools

Site Tools


public:iscsi:relogin

Connecting to configured iSCSI targets

If the automatic start of iSCSI connections is configured as described, the iSCSI initiator will log into the iSCSI target autmatically as soon as the daemon 'open-iscsi' is started.

root@kvm55:~# /etc/init.d/open-iscsi start
…

If active sessions are not displayed by the command above, they can be made visible like so:

root@kvm55:~# iscsiadm -m session
tcp: [1] 10.48.2.11:3260,582 iqn.2000-05.com.3pardata:25820002ac002071
tcp: [2] 10.48.2.10:3260,482 iqn.2000-05.com.3pardata:24820002ac002071

If no connections to iSCSI exist yet, a login into iSCSI will be tried. Sometimes the names of the iSCSI targets are necessary for the login. They can be read from the iSCSI configuration of the host before login:

root@kvm55:~# ll /etc/iscsi/nodes/
total 16
drwxr-xr-x 4 root root 4096 Jan  4 20:29 ./
drwxr-xr-x 5 root root 4096 May 21 22:53 ../
drwxr-xr-x 3 root root 4096 Jan  4 20:29 iqn.2000-05.com.3pardata:24820002ac002071/
drwxr-xr-x 3 root root 4096 Jan  4 20:29 iqn.2000-05.com.3pardata:25820002ac002071/
root@kvm55:~# iscsiadm –m node \
–T iqn.2000-05.com.3pardata:24820002ac002071 -l
…
root@kvm55:~# iscsiadm –m node \
–T iqn.2000-05.com.3pardata:25820002ac002071 -l
…

The command has to put out 'success' as result of every login trial. Otherwise the login was not successful.

previous chapter | contents | next chapter

public/iscsi/relogin.txt · Last modified: 2015/06/06 12:17 by T Kornack