HP 3PAR RedHat and Oracle Linux Implementation Guide

2. The contents of the discovery can be viewed using the iscsiadm -m discovery command.
For example:
# iscsiadm -m discovery
10.100.0.101:3260 via sendtargets
3. Issue the iscsiadm -m node command:
# iscsiadm -m node
10.100.1.101:3260,31 iqn.2000-05.com.3pardata:20320002ac000121
4. Identify the iSCSI node login that record has been discovered from the discovery process.
iscsiadm -m node -T <targetname> -p <target ip address>:<iscisport>
-l.
For example:
# iscsiadm -m node -T iqn.2000-05.com.3pardata:20310002ac000079 -p 10.100.0.101:3260 -l
Logging in to [iface: default, target: iqn.2000-05.com.3pardata:20310002ac000079, portal: 10.100.0.101,3260]
Login to [iface: default, target: iqn.2000-05.com.3pardata:20310002ac000079, portal: 10.100.0.101,3260]: successful
5. The content of the login node can be viewed using the iscsiadm command.
For example:
# iscsiadm -m node -T iqn.2000-05.com.3pardata:20310002ac000079 -p 10.100.0.101:3260
10.100.0.101:3260,31 iqn.2000-05.com.3pardata:20310002ac000079
6. Now examine the iSCSI session and content session of the node info by issuing iscsiadm
-m session.
For example:
# iscsiadm -m session
tcp: [1] 10.100.0.101:3260,31 iqn.2000-05.com.3pardata:20310002ac000079
See “RHEL iscsiadm Utility Usage (page 24) for more RHEL iscsiadm command usage.
In RHEL 5.4, the open-iSCSI persistent configuration is implemented as a DBM database
available during the Linux iSCSI installation.
Discovery table (/var/lib/iscsi/send_targets)
Node table (/var/lib/iscsi/nodes)
The following example shows settings for send_targets and node tables:
send_targets/
drw------- 2 root root 4096 Feb 26 16:51 10.102.2.131,3260
drw------- 2 root root 4096 Feb 26 10:22 10.102.2.31,3260
nodes/
drw------- 3 root root 4096 Feb 26 10:22 iqn.2000-05.com.3pardata:20310002ac0000b1
drw------- 3 root root 4096 Feb 26 10:58 iqn.2000-05.com.3pardata:21310002ac0000b1
To change or modify the send_targets or nodes, remove the above entry first to use the
iscsiadm utility to add the new send_targets or nodes, after which the persistent tables
will update.
80 Configuring a Host with iSCSI