Connecting to the iscsi target – HP NC532m Dual Port 10GbE Multifunction BL-c Adapter User Manual

Page 18

Advertising
background image

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.

Advertising