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

Next revision
Previous revision
packages:iscsi [2014/05/14 18:46]
admin created
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>​
  
-# confirm ​status after discovery +=== Confirm ​status after discovery ​=== 
- +<​code>​ 
-root@client:​~#​ +> sudo iscsiadm -m node -o show [-n iqn.2013-05.world.server:​target00]
-iscsiadm -m node -o show +
 # 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 44: Line 56:
 ..... .....
 ..... .....
-login to target+END RECORD 
 +</​code>​
  
-root@client:​~#​ +=== Login to target ===
-iscsiadm -m node --login+
  
 +<color darkslateblue>​**Login to all targets**</​color>​
 +<​code>​
 +> 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.
-# confirm session+</​code>​
  
-root@client:​~#​ +<color darkslateblue>​**Login to one target**</​color>​ 
-iscsiadm -m session ​-o show+<​code>​ 
 +> sudo iscsiadm -m node --target iqn.2014-05.4d --portal 10.1.1.2:​3260 --login 
 +</​code>​
  
-tcp: [1] 10.0.0.50:​3260,​1 iqn.2013-05.world.server:​target00 +Associated iSCSI disks should show up on the machine.
-# confirm partitions+
  
-root@client:~# +<color darkslateblue>​**Disconnect from node (unmounting iSCSI volumes):**</color> 
-cat /proc/partitions+<​code>​ 
 +> sudo iscsiadm -m node -u 
 +</code>
  
-major minor #blocks name +=== Confirm session === 
-8 +<​code>​ 
-0 +> sudo iscsiadm -m session -o show 
-31457280 +tcp: [1] 10.0.0.50:​3260,​1 iqn.2013-05.world.server:​target00 
-sda+</​code>​
  
-8 +=== Confirm partitions === 
-1 +<​code>​ 
-512000 +> cat /​proc/​partitions 
-sda1 +major minor  #​blocks ​ name
- +
-+
-+
-30944256 +
-sda2 +
- +
-253 +
-+
-20971520 +
-dm-0+
  
-253 +   ​8 ​       0  488386584 sda 
-+   8        ​    204800 sda1 
-6160384 +   8        2   ​26460160 sda2 
-dm-1+   8        3          ​sda3 
 +   ​8 ​       5  435505152 sda5 
 +   ​8 ​       6   ​10485760 sda6 
 +   ​8 ​       7    5242880 sda7 
 +   ​8 ​       8   ​10482688 sda8 
 +  11        0    1048575 sr0 
 +   ​8 ​      ​16 ​    ​204800 sdb 
 +</​code>​
  
-253 +----- 
-2 +On Debian, iSCSI discovery stores nodes (targets to extents associations,​ or LUNs) in **/​etc/​iscsi/​nodes** 
-3809280 +----- 
-dm-2 +=== iSCSI Documentation === 
- +[[https://​access.redhat.com/​site/​documentation/​en-US/​Red_Hat_Enterprise_Linux/​5/​html/​Online_Storage_Reconfiguration_Guide/iscsilogin.html]]
-+
-16 +
-104857600 +
-sdb +
-# added new device provided from target +
-</code>+