mchristi aadf696
From 4f85b76a1c1bd54dd4d0779c4bf7da485a80b50e Mon Sep 17 00:00:00 2001
mchristi aadf696
From: Mike Christie <michaelc@cs.wisc.edu>
mchristi aadf696
Date: Tue, 23 Mar 2010 19:24:09 -0500
mchristi aadf696
Subject: [PATCH 3/7] Add Red Hat specific info to docs.
mchristi aadf696
mchristi aadf696
iscsi-initiator-utils-update-initscripts-and-docs.patch
mchristi aadf696
---
mchristi aadf696
 README          |    9 +++------
mchristi aadf696
 etc/iscsid.conf |   23 ++++++++++-------------
mchristi aadf696
 usr/idbm.c      |    4 ++++
mchristi aadf696
 3 files changed, 17 insertions(+), 19 deletions(-)
mchristi aadf696
mchristi aadf696
diff --git a/README b/README
mchristi aadf696
index eadb385..121bd45 100644
mchristi aadf696
--- a/README
mchristi aadf696
+++ b/README
mchristi aadf696
@@ -74,11 +74,6 @@ the cache sync command will fail.
mchristi aadf696
 - iscsiadm's -P 3 option will not print out scsi devices.
mchristi aadf696
 - iscsid will not automatically online devices.
mchristi aadf696
 
mchristi aadf696
-You need to enable "Cryptographic API" under "Cryptographic options" in the
mchristi aadf696
-kernel config. And you must enable "CRC32c CRC algorithm" even if
mchristi aadf696
-you do not use header or data digests. They are the kernel options,
mchristi aadf696
-CONFIG_CRYPTO and CONFIG_CRYPTO_CRC32C, respectively.
mchristi aadf696
-
mchristi aadf696
 By default the kernel source found at
mchristi aadf696
 /lib/modules/`uname -a`/build
mchristi aadf696
 will be used to compile the open-iscsi modules. To specify a different
mchristi aadf696
@@ -813,7 +808,7 @@ Red Hat or Fedora:
mchristi aadf696
 -----------------
mchristi aadf696
 To start open-iscsi in Red Hat/Fedora you can do:
mchristi aadf696
 
mchristi aadf696
-	service open-iscsi start
mchristi aadf696
+	service iscsi start
mchristi aadf696
 
mchristi aadf696
 To get open-iscsi to automatically start at run time you may have to
mchristi aadf696
 run:
mchristi aadf696
@@ -1012,6 +1007,8 @@ To login to all the automated nodes, simply restart the iscsi service:
mchristi aadf696
 e.g /etc/init.d/open-iscsi restart. On your next startup the nodes will
mchristi aadf696
 be logged into autmotically.
mchristi aadf696
 
mchristi aadf696
+To set the startup value, so that nodes are not logged into automatically
mchristi aadf696
+use the value "manual".
mchristi aadf696
 
mchristi aadf696
 8. Advanced Configuration
mchristi aadf696
 =========================
mchristi aadf696
diff --git a/etc/iscsid.conf b/etc/iscsid.conf
mchristi aadf696
index 78c225c..e96833e 100644
mchristi aadf696
--- a/etc/iscsid.conf
mchristi aadf696
+++ b/etc/iscsid.conf
mchristi aadf696
@@ -17,10 +17,10 @@
mchristi 05db5ec
 # maintainers.
mchristi 05db5ec
 #
mchristi 05db5ec
 # Default for Fedora and RHEL. (uncomment to activate).
mchristi 05db5ec
-# iscsid.startup = /etc/rc.d/init.d/iscsid force-start
mchristi 05db5ec
+iscsid.startup = /etc/rc.d/init.d/iscsid force-start
mchristi 05db5ec
 # 
mchristi 05db5ec
 # Default for upstream open-iscsi scripts (uncomment to activate).
mchristi 05db5ec
-iscsid.startup = /sbin/iscsid
mchristi 05db5ec
+# iscsid.startup = /sbin/iscsid
mchristi 05db5ec
 
mchristi 05db5ec
 
mchristi aadf696
 
mchristi aadf696
@@ -110,8 +110,8 @@ iscsid.startup = /sbin/iscsid
mchristi 6425a35
 # To request that the iscsi initd scripts startup a session set to "automatic".
mchristi 6425a35
 # node.startup = automatic
mchristi 6425a35
 #
mchristi 6425a35
-# To manually startup the session set to "manual". The default is manual.
mchristi 6425a35
-node.startup = manual
mchristi 6425a35
+# To manually startup the session set to "manual". The default is automatic.
mchristi 6425a35
+node.startup = automatic
mchristi 6425a35
 
mchristi aadf696
 
mchristi 6425a35
 # *************
mchristi aadf696
@@ -329,29 +329,26 @@ node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
mchristi 05db5ec
 discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
mchristi 05db5ec
 
mchristi 05db5ec
 # To allow the targets to control the setting of the digest checking,
mchristi 05db5ec
-# with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
mchristi 05db5ec
+# with the initiator requesting a preference of enabling the checking, uncomment
mchristi aadf696
+# the following lines (Data digests are not supported.):
mchristi 05db5ec
 #node.conn[0].iscsi.HeaderDigest = CRC32C,None
mchristi 05db5ec
-#node.conn[0].iscsi.DataDigest = CRC32C,None
mchristi 05db5ec
 #
mchristi 05db5ec
 # To allow the targets to control the setting of the digest checking,
mchristi 05db5ec
 # with the initiator requesting a preference of disabling the checking,
mchristi 05db5ec
-# uncomment one or both of the following lines:
mchristi 05db5ec
+# uncomment the following lines:
mchristi 05db5ec
 #node.conn[0].iscsi.HeaderDigest = None,CRC32C
mchristi 05db5ec
-#node.conn[0].iscsi.DataDigest = None,CRC32C
mchristi 05db5ec
 #
mchristi 05db5ec
 # To enable CRC32C digest checking for the header and/or data part of
mchristi 05db5ec
-# iSCSI PDUs, uncomment one or both of the following lines:
mchristi 05db5ec
+# iSCSI PDUs, uncomment the following lines:
mchristi 05db5ec
 #node.conn[0].iscsi.HeaderDigest = CRC32C
mchristi 05db5ec
-#node.conn[0].iscsi.DataDigest = CRC32C
mchristi 05db5ec
 #
mchristi 05db5ec
 # To disable digest checking for the header and/or data part of
mchristi 05db5ec
-# iSCSI PDUs, uncomment one or both of the following lines:
mchristi 05db5ec
+# iSCSI PDUs, uncomment the following lines:
mchristi 05db5ec
 #node.conn[0].iscsi.HeaderDigest = None
mchristi 05db5ec
-#node.conn[0].iscsi.DataDigest = None
mchristi 05db5ec
 #
mchristi 05db5ec
 # The default is to never use DataDigests or HeaderDigests.
mchristi 05db5ec
 #
mchristi 05db5ec
-
mchristi 05db5ec
+node.conn[0].iscsi.HeaderDigest = None
mchristi 05db5ec
 
mchristi 05db5ec
 #************
mchristi 05db5ec
 # Workarounds
mchristi aadf696
diff --git a/usr/idbm.c b/usr/idbm.c
mchristi aadf696
index 1428365..8ad8024 100644
mchristi aadf696
--- a/usr/idbm.c
mchristi aadf696
+++ b/usr/idbm.c
mchristi aadf696
@@ -324,9 +324,13 @@ idbm_recinfo_node(node_rec_t *r, recinfo_t *ri)
mchristi 05db5ec
 				 IDBM_SHOW, "None", "CRC32C", "CRC32C,None",
mchristi 05db5ec
 				 "None,CRC32C", num, 1);
mchristi 05db5ec
 		sprintf(key, CONN_DATA_DIGEST, i);
mchristi 05db5ec
+
mchristi 05db5ec
+#if 0
mchristi 05db5ec
+We do not support data digests
mchristi 05db5ec
 		__recinfo_int_o4(key, ri, r, conn[i].iscsi.DataDigest, IDBM_SHOW,
mchristi 05db5ec
 				 "None", "CRC32C", "CRC32C,None",
mchristi 05db5ec
 				 "None,CRC32C", num, 1);
mchristi 05db5ec
+#endif
mchristi 05db5ec
 		sprintf(key, CONN_IFMARKER, i);
mchristi 05db5ec
 		__recinfo_int_o2(key, ri, r, conn[i].iscsi.IFMarker, IDBM_SHOW,
mchristi 05db5ec
 				"No", "Yes", num, 1);
mchristi aadf696
-- 
mchristi aadf696
1.6.6.1
mchristi aadf696