3–Open-iSCSI User’s Guide
Managing QLogic iSCSI Adapters Using iscsiadm
IS0054604-00 A 3-15
List All Targets
# iscsiadm -m node
Example:
Deleting a Target Node
# iscsiadm -m node -T <target name> -p <target portal> -I <iface>
-o delete
Example:
# iscsiadm -m node -T
iqn.2001-05.com.equallogic:0-8a0906-2d733fe02-d25000ecd7a4eac6-bfs
-2 -p 192.168.2.104:3260 -I qla4xxx-3 -o delete
Target Login and Logout
Login to a Target
# iscsiadm -m node -T <target name> -p <target portal> -I <iface> -l
Example:
# iscsiadm -m node
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-32e33fe02-517000ecd724ea83-karen-1
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-eddd93203-dc1000ece454e721-karen-2
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-ef8d93203-e99000ece484e721-karen-3
192.168.2.105:3260,1
iqn.2001-05.com.equallogic:0-8a0906-f16d93203-92d000ece4b4e721-karen-4
192.168.2.104:3260,-1
iqn.2001-05.com.equallogic:0-8a0906-2d733fe02-d25000ecd7a4eac6-bfs-2
# iscsiadm -d 7 -m node --targetname
iqn.1986-03.com.hp:storage.msa2012i.0911d7e161.b --portal 192.168.2.24:3260
-I qla4xxx-3 -l
Logging in to [iface: qla4xxx-3, target:
iqn.1986-03.com.hp:storage.msa2012i.0911d7e161.b, portal: 192.168.2.24,3260]
(multiple)
Login to [iface: qla4xxx-3, target:
iqn.1986-03.com.hp:storage.msa2012i.0911d7e161.b, portal: 192.168.2.24,3260]
successful.