Difference between revisions of "Using iSCSI targets from Linux machine"

From Notes_Wiki
(Created page with "=Using iSCSI targets from Linux machine= ===Dicovering iSCSI targets=== The following command can be used to scan for avaiable iSCSI targets: <pre> iscsiadm -m discoverydb --...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Using iSCSI targets from Linux machine=
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Miscellaneous OS configuration]] > [[Using iSCSI targets from Linux machine]]
 
'''There are updated articles on this at [[CentOS 7.x iSCSI]]'''


===Dicovering iSCSI targets===
===Dicovering iSCSI targets===
Line 27: Line 29:


Use '<tt>man iscsiadm</tt>' for more information
Use '<tt>man iscsiadm</tt>' for more information
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Miscellaneous OS configuration]] > [[Using iSCSI targets from Linux machine]]

Latest revision as of 15:49, 22 July 2022

Home > CentOS > CentOS 6.x > Miscellaneous OS configuration > Using iSCSI targets from Linux machine

There are updated articles on this at CentOS 7.x iSCSI

Dicovering iSCSI targets

The following command can be used to scan for avaiable iSCSI targets:

iscsiadm -m discoverydb --type=st --interface=br0 --portal=<iscsi_server_IP>:3260 --op=new


Connecting iSCSI disk

Following command can be used to login on iSCSI target

iscsiadm -m discovery -p <iscsi_server_ip>:3260 -l

Sometimes even

iscsiadm -m node -p <iscsi_server_ip>:3260 -L all 

may be required for things to work.


To disconnect iSCSI disk

To disconnect a drive use following steps:

  1. Use 'iscsiadm -m session' to list running sessions
  2. Then use 'iscsiadm -m session -r <session_number> -u' to logout from given session

Use 'man iscsiadm' for more information



Home > CentOS > CentOS 6.x > Miscellaneous OS configuration > Using iSCSI targets from Linux machine