System information
If your device supports multiple targets, you will need to issue a send targ ets command to the hosts
to find new portals for each target. Then, rescan existing sessions to discover new logical units on
existing sessions (i.e. using the --rescan option).
Important
The send targ ets command used to retrieve --targ etname and --po rtal values
overwrites the contents of the /var/l ib/i scsi /no d es database. This database will then
be repopulated using the settings in /etc/i scsi /i scsi d. co nf. However, this will not
occur if a session is currently logged in and in use.
To safely add new targets/portals or delete old ones, use the -o new or -o d el ete options,
respectively. For example, to add new targets/portals without overwriting
/var/l i b/i scsi /no d es, use the following command:
iscsiadm -m discovery -t st -p target_IP -o new
To delete /var/l i b/i scsi /no d es entries that the target did not display during discovery,
use:
iscsiadm -m discovery -t st -p target_IP -o delete
You can also perform both tasks simultaneously, as in:
iscsiadm -m discovery -t st -p target_IP -o delete -o new
The send targ ets command will yield the following output:
ip:port,target_portal_group_tag proper_target_name
Examp le 25.16 . O u t p u t o f t h e send targ ets co mman d
For example, given a device with a single target, logical unit, and portal, with eq ual l og i c-
i scsi 1 as your target_name, the output should appear similar to the following:
10.16.41.155:3260,0 iqn.2001-05.com.equallogic:6-8a0900-ac3fe0101-
63aff113e344a4a2-dl585-03-1
Note that proper_target_name and ip:port,target_portal_group_tag are identical to the
values of the same name in Section 25.2.1, āiSCSI APIā .
At this point, you now have the proper --targ etname and --po rtal values needed to manually
scan for iSCSI devices. To do so, run the following command:
# iscsiadm --mode node --targetname proper_target_name --portal
ip:port,target_portal_group_tag \ --login
ā
[10]
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
188