2015-06-10 06:11:22 +00:00
|
|
|
From 067a87077e35e4df3564b42c675394797afa59c8 Mon Sep 17 00:00:00 2001
|
2013-01-22 21:44:13 +00:00
|
|
|
From: Chris Leech <cleech@redhat.com>
|
|
|
|
Date: Mon, 19 Nov 2012 16:37:13 -0800
|
2015-06-10 06:11:22 +00:00
|
|
|
Subject: [PATCH] update initscripts and docs
|
2013-01-22 21:44:13 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
README | 9 +++------
|
|
|
|
etc/iscsid.conf | 23 +++++++++++------------
|
|
|
|
usr/idbm.c | 4 ++++
|
|
|
|
3 files changed, 18 insertions(+), 18 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/README b/README
|
2015-06-10 06:11:22 +00:00
|
|
|
index 06d1b6f..0ac4529 100644
|
2013-01-22 21:44:13 +00:00
|
|
|
--- a/README
|
|
|
|
+++ b/README
|
|
|
|
@@ -74,11 +74,6 @@ the cache sync command will fail.
|
|
|
|
- iscsiadm's -P 3 option will not print out scsi devices.
|
|
|
|
- iscsid will not automatically online devices.
|
|
|
|
|
|
|
|
-You need to enable "Cryptographic API" under "Cryptographic options" in the
|
|
|
|
-kernel config. And you must enable "CRC32c CRC algorithm" even if
|
|
|
|
-you do not use header or data digests. They are the kernel options,
|
|
|
|
-CONFIG_CRYPTO and CONFIG_CRYPTO_CRC32C, respectively.
|
|
|
|
-
|
|
|
|
By default the kernel's iSCSI modules will be used. Running:
|
|
|
|
|
|
|
|
make
|
2015-06-10 06:11:22 +00:00
|
|
|
@@ -1118,7 +1113,7 @@ Red Hat or Fedora:
|
2013-01-22 21:44:13 +00:00
|
|
|
-----------------
|
|
|
|
To start open-iscsi in Red Hat/Fedora you can do:
|
|
|
|
|
|
|
|
- service open-iscsi start
|
|
|
|
+ service iscsi start
|
|
|
|
|
|
|
|
To get open-iscsi to automatically start at run time you may have to
|
|
|
|
run:
|
2015-06-10 06:11:22 +00:00
|
|
|
@@ -1326,6 +1321,8 @@ iscsid will only perform rediscovery when it gets a SCN from the server.
|
2013-01-22 21:44:13 +00:00
|
|
|
# linux-isns (SLES's iSNS server) where it sometimes does not send SCN
|
|
|
|
# events in the proper format, so they may not get handled.
|
|
|
|
|
|
|
|
+To set the startup value, so that nodes are not logged into automatically
|
|
|
|
+use the value "manual".
|
|
|
|
|
|
|
|
Example:
|
|
|
|
--------
|
|
|
|
diff --git a/etc/iscsid.conf b/etc/iscsid.conf
|
2015-06-10 06:11:22 +00:00
|
|
|
index c30a7dc..cfa6844 100644
|
2013-01-22 21:44:13 +00:00
|
|
|
--- a/etc/iscsid.conf
|
|
|
|
+++ b/etc/iscsid.conf
|
2010-05-06 21:41:12 +00:00
|
|
|
@@ -17,10 +17,10 @@
|
|
|
|
# maintainers.
|
|
|
|
#
|
|
|
|
# Default for Fedora and RHEL. (uncomment to activate).
|
|
|
|
-# iscsid.startup = /etc/rc.d/init.d/iscsid force-start
|
|
|
|
+iscsid.startup = /etc/rc.d/init.d/iscsid force-start
|
|
|
|
#
|
|
|
|
# Default for upstream open-iscsi scripts (uncomment to activate).
|
|
|
|
-iscsid.startup = /sbin/iscsid
|
|
|
|
+# iscsid.startup = /sbin/iscsid
|
|
|
|
|
2015-06-10 06:11:22 +00:00
|
|
|
# Check for active mounts on devices reachable through a session
|
|
|
|
# and refuse to logout if there are any. Defaults to "No".
|
|
|
|
@@ -39,8 +39,8 @@ iscsid.startup = /sbin/iscsid
|
2010-05-06 21:41:12 +00:00
|
|
|
# To request that the iscsi initd scripts startup a session set to "automatic".
|
|
|
|
# node.startup = automatic
|
|
|
|
#
|
|
|
|
-# To manually startup the session set to "manual". The default is manual.
|
|
|
|
-node.startup = manual
|
|
|
|
+# To manually startup the session set to "manual". The default is automatic.
|
|
|
|
+node.startup = automatic
|
|
|
|
|
2011-10-23 08:29:01 +00:00
|
|
|
# For "automatic" startup nodes, setting this to "Yes" will try logins on each
|
|
|
|
# available iface until one succeeds, and then stop. The default "No" will try
|
2015-06-10 06:11:22 +00:00
|
|
|
@@ -262,28 +262,27 @@ node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
|
2010-05-06 21:41:12 +00:00
|
|
|
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
|
|
|
|
|
|
|
|
# To allow the targets to control the setting of the digest checking,
|
|
|
|
-# with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
|
|
|
|
+# with the initiator requesting a preference of enabling the checking, uncomment
|
|
|
|
+# the following lines (Data digests are not supported.):
|
|
|
|
#node.conn[0].iscsi.HeaderDigest = CRC32C,None
|
|
|
|
-#node.conn[0].iscsi.DataDigest = CRC32C,None
|
2011-10-23 08:29:01 +00:00
|
|
|
+
|
2010-05-06 21:41:12 +00:00
|
|
|
#
|
|
|
|
# To allow the targets to control the setting of the digest checking,
|
|
|
|
# with the initiator requesting a preference of disabling the checking,
|
|
|
|
-# uncomment one or both of the following lines:
|
2011-10-23 08:29:01 +00:00
|
|
|
+# uncomment the following line:
|
2010-05-06 21:41:12 +00:00
|
|
|
#node.conn[0].iscsi.HeaderDigest = None,CRC32C
|
|
|
|
-#node.conn[0].iscsi.DataDigest = None,CRC32C
|
|
|
|
#
|
|
|
|
# To enable CRC32C digest checking for the header and/or data part of
|
|
|
|
-# iSCSI PDUs, uncomment one or both of the following lines:
|
2011-10-23 08:29:01 +00:00
|
|
|
+# iSCSI PDUs, uncomment the following line:
|
2010-05-06 21:41:12 +00:00
|
|
|
#node.conn[0].iscsi.HeaderDigest = CRC32C
|
|
|
|
-#node.conn[0].iscsi.DataDigest = CRC32C
|
|
|
|
#
|
|
|
|
# To disable digest checking for the header and/or data part of
|
|
|
|
-# iSCSI PDUs, uncomment one or both of the following lines:
|
2011-10-23 08:29:01 +00:00
|
|
|
+# iSCSI PDUs, uncomment the following line:
|
2010-05-06 21:41:12 +00:00
|
|
|
#node.conn[0].iscsi.HeaderDigest = None
|
|
|
|
-#node.conn[0].iscsi.DataDigest = None
|
|
|
|
#
|
|
|
|
# The default is to never use DataDigests or HeaderDigests.
|
|
|
|
#
|
|
|
|
+node.conn[0].iscsi.HeaderDigest = None
|
|
|
|
|
2011-10-23 08:29:01 +00:00
|
|
|
# For multipath configurations, you may want more than one session to be
|
|
|
|
# created on each iface record. If node.session.nr_sessions is greater
|
2013-01-22 21:44:13 +00:00
|
|
|
diff --git a/usr/idbm.c b/usr/idbm.c
|
2015-06-10 06:11:22 +00:00
|
|
|
index d8f42b6..589078c 100644
|
2013-01-22 21:44:13 +00:00
|
|
|
--- a/usr/idbm.c
|
|
|
|
+++ b/usr/idbm.c
|
2015-06-10 06:11:22 +00:00
|
|
|
@@ -512,9 +512,13 @@ idbm_recinfo_node(node_rec_t *r, recinfo_t *ri)
|
2010-05-06 21:41:12 +00:00
|
|
|
IDBM_SHOW, "None", "CRC32C", "CRC32C,None",
|
|
|
|
"None,CRC32C", num, 1);
|
|
|
|
sprintf(key, CONN_DATA_DIGEST, i);
|
|
|
|
+
|
|
|
|
+#if 0
|
|
|
|
+We do not support data digests
|
|
|
|
__recinfo_int_o4(key, ri, r, conn[i].iscsi.DataDigest, IDBM_SHOW,
|
|
|
|
"None", "CRC32C", "CRC32C,None",
|
|
|
|
"None,CRC32C", num, 1);
|
|
|
|
+#endif
|
|
|
|
sprintf(key, CONN_IFMARKER, i);
|
|
|
|
__recinfo_int_o2(key, ri, r, conn[i].iscsi.IFMarker, IDBM_SHOW,
|
|
|
|
"No", "Yes", num, 1);
|
2013-01-22 21:44:13 +00:00
|
|
|
--
|
2015-06-10 06:11:22 +00:00
|
|
|
2.1.0
|
2013-01-22 21:44:13 +00:00
|
|
|
|