Use service foo rather than calling init scripts directly
[mirror/dsa-wiki.git] / input / howto / iscsi.creole
index fff90f4..78acd25 100644 (file)
@@ -50,6 +50,17 @@ corresponding to the two addresses that controller A has:
 * Go to **Manage** -> **Volume Management** -> **volume mapping** and map the
   new volume to a free LUN on the new host.
 
+=== Meanwhile on Melee Islan^W^WGiustini (telnet version) ===
+
+* Log into the telnet config interface (see dsa-passwords for details)
+* run {{{show iscsi-hosts}}}. You should see a iqn without a hostname attached.
+  Compare that one to **InitiatorName** in {{{/etc/iscsi/initiatorname.iscsi}}}. 
+  If they are the same, set it like {{{set iscsi-host host iqn.1993-08.org.debian:01:f3c2e4746681 rossini}}}
+  **bad thing, you need to remember the iqn for the next step**
+* run {{{show chap-records}}}, this will list you the already configured hosts.
+  To add a new host run something like {{{create chap-record name iqn.1993-08.org.debian:01:f3c2e4746681 secret foobar mutual-name iqn.1986-03.com.hp:storage.msa2012i.0834d5ecda mutual-secret 1234567890ABCDEF }}}
+* for volume management see [[export-iscsi]]
+
 === Back on the host ===
 
 * edit /etc/iscsi/iscsid.conf:
@@ -61,9 +72,9 @@ corresponding to the two addresses that controller A has:
 
 * stop and start iscsi:
 {{{
-       /etc/init.d/open-iscsi stop &&
+       service open-iscsi stop &&
        sleep 3 &&
-       (cd / && env -i /etc/init.d/open-iscsi start)
+       service open-iscsi start)
 }}}
 
 * not sure if this is necessary again:
@@ -172,7 +183,7 @@ apt-get install multipath-tools
 * for the wwid thing in there create an entry in multipath.conf with a proper name, then reload multipathd
 {{{
        vi /etc/multipath.conf
-       /etc/init.d/multipath-tools reload
+       service multipath-tools reload
        echo show topology | multipathd -k
        ls -l /dev/mapper
 }}}