HP ProLiant Accelerated iSCSI for Linux User Guide
Connecting to the iSCSI target 18
Connecting to the iSCSI target
Sample commands to discover targets and create
iSCSI connections
• Add static entry
# iscsiadm -m node -p <ipaddr[:port,TPGT]> -T <iqn.targetname> -o new
• iSCSI target discovery using 'SendTargets'
# iscsiadm -m discovery --type sendtargets -p <ipaddr[:port]>
• Login to target using 'iscsiadm' command
iscsiadm --mode node --targetname <iqn.targetname> --portal
<ipaddr[:port]> --login
• List all drives active in the system
# 'fdisk -l'
See the open-iSCSI documentation for comprehensive list of iscsiadm commands.