iscsiadm --mode discovery -t sendtargets --portal 192.168.0.56 192.168.0.56:3260,1 iqn.2012-10.net.cpd:san.target01
iscsiadm --mode node --targetname iqn.2012-10.net.cpd:san.target01 --portal 192.168.0.56 --login
iscsiadm --mode node --targetname iqn.2012-10.net.cpd:san.target01 --portal 192.168.0.56 --login
Logging in to [iface: default, target: iqn.2012-10.net.cpd:san.target01, portal: 192.168.0.56,3260] (multiple)
Login to [iface: default, target: iqn.2012-10.net.cpd:san.target01, portal: 192.168.0.56,3260] successful.
[root@localhost iscsi]#
[root@localhost iscsi]# cat /var/lib/iscsi/send_targets/192.168.0.56,3260/st_config
# BEGIN RECORD 2.0-872.41.el6
discovery.startup = manual
discovery.type = sendtargets
discovery.sendtargets.address = 192.168.0.56
discovery.sendtargets.port = 3260
discovery.sendtargets.auth.authmethod = None
discovery.sendtargets.timeo.login_timeout = 15
discovery.sendtargets.use_discoveryd = No
discovery.sendtargets.discoveryd_poll_inval = 30
discovery.sendtargets.reopen_max = 5
discovery.sendtargets.timeo.auth_timeout = 45
discovery.sendtargets.timeo.active_timeout = 30
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
# END RECORD
[root@localhost iscsi]#
[root@localhost iscsi]# iscsiadm --mode session --op show
tcp: [6] 192.168.0.56:3260,1 iqn.2012-10.net.cpd:san.target01