A PCRE internal error occured. This might be caused by a faulty plugin

====== 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
packages:iscsi [2014/05/22 18:13]
admin [discover target]
packages:iscsi [2016/09/09 15:58] (current)
admin [Adding an appropriate IP address]
Line 26: Line 26:
  
  
 +==== Adding an appropriate IP address ====
 +
 +Depending on the server'​s iscsi portal configuration,​ it might be necessary to add an appropriate IP address to the initiator'​s machine network interface (NIC). If this is required, here is how to do it, in this case temporarily adding the appropriate IP address to the eth0 interface ([[https://​www.garron.me/​en/​linux/​add-secondary-ip-linux.html|reference]]):​
 +
 +<​Code:​bash>​
 +> sudo ip address add 10.1.1.55/​24 dev eth0
 +</​Code>​
 +
 +Once done, the temporary IP address can be removed using:
 +
 +<​Code:​bash>​
 +> sudo ip address del 10.1.1.55/​24 dev eth0
 +</​Code>​
 ===== discover target ===== ===== discover target =====
 +
 <​code>​ <​code>​
-> iscsiadm -m discovery -t sendtargets -p <​10.0.0.50>​+sudo iscsiadm -m discovery -t sendtargets -p <​10.0.0.50>​
 10.0.0.50:​3260,​1 iqn.2013-05.world.server:​target00 10.0.0.50:​3260,​1 iqn.2013-05.world.server:​target00
 </​code>​ </​code>​
Line 34: Line 48:
 === Confirm status after discovery === === Confirm status after discovery ===
 <​code>​ <​code>​
-> sudo iscsiadm -m node -o show+> sudo iscsiadm -m node -o show [-n iqn.2013-05.world.server:​target00]
 # BEGIN RECORD 2.0-873 # BEGIN RECORD 2.0-873
 node.name = iqn.2013-05.world.server:​target00 node.name = iqn.2013-05.world.server:​target00
Line 46: Line 60:
  
 === Login to target === === Login to target ===
 +
 +<color darkslateblue>​**Login to all targets**</​color>​
 <​code>​ <​code>​
 > sudo iscsiadm -m node --login > sudo iscsiadm -m node --login
 Logging in to [iface: default, target: iqn.2013-05.world.server:​target00,​ portal: 10.0.0.50,​3260] (multiple) Logging in to [iface: default, target: iqn.2013-05.world.server:​target00,​ portal: 10.0.0.50,​3260] (multiple)
 Login to [iface: default, target: iqn.2013-05.world.server:​target00,​ portal: 10.0.0.50,​3260] successful. Login to [iface: default, target: iqn.2013-05.world.server:​target00,​ portal: 10.0.0.50,​3260] successful.
 +</​code>​
 +
 +<color darkslateblue>​**Login to one target**</​color>​
 +<​code>​
 +> sudo iscsiadm -m node --target iqn.2014-05.4d --portal 10.1.1.2:​3260 --login
 </​code>​ </​code>​
  
 Associated iSCSI disks should show up on the machine. Associated iSCSI disks should show up on the machine.
 +
 +<color darkslateblue>​**Disconnect from node (unmounting iSCSI volumes):​**</​color>​
 +<​code>​
 +> sudo iscsiadm -m node -u
 +</​code>​
  
 === Confirm session === === Confirm session ===
 <​code>​ <​code>​
-> iscsiadm -m session -o show+sudo iscsiadm -m session -o show
 tcp: [1] 10.0.0.50:​3260,​1 iqn.2013-05.world.server:​target00 tcp: [1] 10.0.0.50:​3260,​1 iqn.2013-05.world.server:​target00
 </​code>​ </​code>​
Line 78: Line 104:
  
 ----- -----
-iSCSI discovery stores nodes (targets to extents associations) in **/​etc/​iscsi/​nodes**+On Debian, ​iSCSI discovery stores nodes (targets to extents associations, or LUNs) in **/​etc/​iscsi/​nodes** 
 +----- 
 +=== iSCSI Documentation === 
 +[[https://​access.redhat.com/​site/​documentation/​en-US/​Red_Hat_Enterprise_Linux/​5/​html/​Online_Storage_Reconfiguration_Guide/​iscsilogin.html]]