System information
The output will appear in the following format:
target_IP:port,target_portal_group_tag proper_target_name
Examp le 25.14 . Usin g i scsi ad m t o issu e a send targ ets co mman d
For example, on a target with a proper_target_name of i q n. 19 9 2-
0 8. co m. netapp: sn. 336 15311 and a target_IP:port of 10 . 15. 85. 19 : 326 0 , the output
may appear as:
10.15.84.19:3260,2 iqn.1992-08.com.netapp:sn.33615311
10.15.85.19:3260,3 iqn.1992-08.com.netapp:sn.33615311
In this example, the target has two portals, each using target_ip:ports of
10 . 15. 84 . 19 : 326 0 and 10 . 15. 85. 19 : 326 0 .
To see which i face configuration will be used for each session, add the -P 1 option. This option
will print also session information in tree format, as in:
Target: proper_target_name
Portal: target_IP:port,target_portal_group_tag
Iface Name: iface_name
Examp le 25.15. View i face co n f ig u rat io n
For example, with i scsi ad m -m d i sco very -t send targ ets -p 10 . 15. 85. 19 : 326 0 -
P 1, the output may appear as:
Target: iqn.1992-08.com.netapp:sn.33615311
Portal: 10.15.84.19:3260,2
Iface Name: iface2
Portal: 10.15.85.19:3260,3
Iface Name: iface2
This means that the target i q n. 19 9 2-0 8. co m. netapp: sn. 336 15311 will use i face2 as its
i face configuration.
With some device models (e.g. from EMC and Netapp), however, a single target may have multiple
logical units and/or portals. In this case, issue a send targ ets command to the host first to find new
portals on the target. Then, rescan the existing sessions using:
# iscsiadm -m session --rescan
You can also rescan a specific session by specifying the session's SID value, as in:
# iscsiadm -m session -r SID --rescan
[9]
Chapt er 2 5. O nline St orag e Manag ement
187