United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
If the iscsitarget and iscsi-initiator are properly connected, the command iscsiadm can display the connection status. For example:
#iscsiadm --mode node --targetname iqn.2001-04.com.example:storage.disk2.sys1.xyz --portal 192.168.1.10:3260
In the case below, assume the iscsitarget's IP address is 192.168.1.10, the default port is 3260, the target disk is iqn.2001-04.com.example:storage.disk2.sys1.xyz. The output will be similar as below:
iscsiadm --mode node --targetname iqn.2001-04.com.example:storage.disk2.sys1.xyz --portal 192.168.1.10:3260 node.name = iqn.2001-04.com.example:storage.disk2.sys1.xyz node.tpgt = 1 node.startup = automatic iface.hwaddress = default iface.iscsi_ifacename = default iface.net_ifacename = default iface.transport_name = tcp node.discovery_address = 192.168.1.10 ..................................... node.conn[0].timeo.ping_timeout = 5 node.conn[0].timeo.noop_out_interval = 10 node.conn[0].timeo.noop_out_timeout = 15 node.conn[0].iscsi.MaxRecvDataSegmentLength = 131072 node.conn[0].iscsi.HeaderDigest = None,CRC32C node.conn[0].iscsi.IFMarker = No node.conn[0].iscsi.OFMarker = No
If the output is too detailed to see, another command will show the brief satus:
# iscsiadm --mode node
The output is as below:
192.168.1.10:3260,1 iqn.2001-04.com.example:storage.disk2.sys1.xyz