2021-06-05 18:39:11 +00:00
|
|
|
# iscsiadm
|
|
|
|
# open-iscsi administration utility
|
|
|
|
|
|
|
|
# Discover targets at iscsi portal ADDR:PORT
|
|
|
|
# Prints a list of available iscsi targets, example:
|
|
|
|
#
|
2021-06-08 15:03:13 +00:00
|
|
|
# <target-ip>:<port> <IQN>
|
2021-06-05 18:39:11 +00:00
|
|
|
# 10.10.10.42:3260,1 iqn.2007-10:iscsi.target0
|
|
|
|
iscsiadm -m discovery -t sendtargets -p ADDR:PORT
|
|
|
|
|
|
|
|
# login to target IQN at portal ADDR:PORT:
|
|
|
|
iscsiadm -m node -T IQN -p ADDR:PORT --login
|
|
|
|
|
|
|
|
# logout from specified target IQN:
|
|
|
|
iscsiadm -m node -T IQN --logout
|
|
|
|
|
|
|
|
# list active sessions:
|
|
|
|
iscsiadm -m session
|
|
|
|
|
|
|
|
# logout from all active sessions:
|
|
|
|
iscsiadm -m node --logout
|