3–Open-iSCSI User’s Guide
Managing QLogic iSCSI Adapters Using iscsiadm
IS0054604-00 A 3-13
Adding a New discoverydb for sendtarget
# iscsiadm -m discoverydb -t st -p 192.168.2.105 -I qla4xxx-3 -o new
New discovery record for [192.168.2.105,3260] added.
# cat /var/lib/iscsi/send_targets/192.168.2.105,3260/st_config
# BEGIN RECORD 2.0-872.28.el6-1031
discovery.startup = manual
discovery.type = sendtargets
discovery.sendtargets.address = 192.168.2.105
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
# iscsiadm -m discoverydb -t st -p 192.168.2.105 -I qla4xxx-3 -o update -n
discovery.sendtargets.auth.authmethod -v CHAP
# iscsiadm -m discoverydb -t st -p 192.168.2.105 -o update -n
discovery.sendtargets.auth.username -v joe
# iscsiadm -m discoverydb -t st -p 192.168.2.105 -o update -n
discovery.sendtargets.auth.password -v secret
# iscsiadm -m discoverydb -t st -p 192.168.2.105 -I qla4xxx-3 --discover
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-32e33fe02-517000ecd724ea83-karen-1
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-eddd93203-dc1000ece454e721-karen-2
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-ef8d93203-e99000ece484e721-karen-3
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-f16d93203-92d000ece4b4e721-karen-4