linux_wiki:configure_a_system_as_either_an_iscsi_target_or_initiator_that_persistently_mounts_an_iscsi_target

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:configure_a_system_as_either_an_iscsi_target_or_initiator_that_persistently_mounts_an_iscsi_target [2018/05/05 16:44]
billdozor [Configure the iSCSI Target]
linux_wiki:configure_a_system_as_either_an_iscsi_target_or_initiator_that_persistently_mounts_an_iscsi_target [2019/05/25 23:50] (current)
Line 15: Line 15:
  
 ---- ----
 +
 +====== Help ======
 +
 +Finding help in this section.
 +  * iSCSI target (server)<code bash>#tab completion in targetcli utility</code>
 +  * iSCSI initiator (client)<code bash>man iscsiadm</code>
 +
 +----
 +
  
 ====== iSCSI Targets (Storage Server) ====== ====== iSCSI Targets (Storage Server) ======
Line 98: Line 107:
     * luns (logical unit number or the exported resource)     * luns (logical unit number or the exported resource)
     * portals (IP addresses:ports to reach the exported resource)     * portals (IP addresses:ports to reach the exported resource)
 +      * **Note:** In some earlier versions (RHEL 7.0-7.1), a portal is NOT automatically created. This may need to be created manually.
 +
 +\\
 +**Create portal: RHEL 7.0 - 7.1 only**
 +<code bash>
 +/iscsi/iqn.20...2:target/tpg1> portals create 0.0.0.0 ip_port=3260
 +</code>
  
 \\ \\
Line 145: Line 161:
 firewall-cmd --reload firewall-cmd --reload
 </code> </code>
-  * iscsi-target service available as of RHEL 7.2+  * iscsi-target service available as of **RHEL 7.2**
  
 \\ \\
Line 172: Line 188:
 vim /etc/iscsi/initiatorname.iscsi vim /etc/iscsi/initiatorname.iscsi
  
-InitiatorName=iqn.2016-08.com.example:server1+InitiatorName=iqn.2018-05.com.example:server1
 </code> </code>
   * Identifying client information needed to mount the disk   * Identifying client information needed to mount the disk
Line 208: Line 224:
  
 \\ \\
-Login to the Target IQN+Login to the Target IQN (found during discovery)
 <code bash> <code bash>
-iscsiadm --mode node --target iqn.2016-08.com.example.server2:target --portal 192.168.1.151 --login+iscsiadm --mode node --target iqn.2018-05.com.example.server2:target --portal 192.168.1.151 --login
 </code> </code>
   * Default port is 3260 if not specified   * Default port is 3260 if not specified
  • linux_wiki/configure_a_system_as_either_an_iscsi_target_or_initiator_that_persistently_mounts_an_iscsi_target.1525553060.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)