Target: ietf
Initiator: open-iscsi
Get list of targets:
$ sudo iscsiadm -m discovery -t sendtargets -p chini 10.224.24.221:3260,1 iqn.2008-11.net.cyberleo.chini:mapajani
Create a node
$ sudo iscsiadm -m node -o new -T iqn.2008-11.net.cyberleo.chini:mapajani -p chini New iSCSI node [tcp:[hw=default,ip=,net_if=default,iscsi_if=default] chini,3260,-1 iqn.2008-11.net.cyberleo.chini:mapajani] added
Node list
$ sudo iscsiadm -m node [chini]:3260,-1 iqn.2008-11.net.cyberleo.chini:mapajani.bak 10.224.24.221:3260,1 iqn.2008-11.net.cyberleo.chini:mapajani.bak
Login
$ sudo iscsiadm -m node -T iqn.2008-11.net.cyberleo.chini:mapajani -l -p chini Logging in to [iface: default, target: iqn.2008-11.net.cyberleo.chini:mapajani, portal: chini,3260] Login to [iface: default, target: iqn.2008-11.net.cyberleo.chini:mapajani, portal: chini,3260]: successful
Logout:
$ sudo iscsiadm -m node -T iqn.2008-11.net.cyberleo.chini:mapajani -u [-p chini] Logging out of session [sid: 1, target: iqn.2008-11.net.cyberleo.chini:mapajani, portal: chini,3260] Logout of [sid: 1, target: iqn.2008-11.net.cyberleo.chini:mapajani, portal: chini,3260]: successful