In newer versions of iscsid (RHEL6) the init.d script has been changed, such that the start method won't do anything unless discovery etc has already occurred at least once.
As a result, there's now a new option in iscsid.conf - 'iscsid.startup' which you can set to be a command to be run when iscsiadm is unable to connect to the iscsid daemon: http://groups.google.com/group/open-iscsi/browse_thread/thread/afdaaedad9050da8 The iscsi RA shouldn't fail if it notices iscsid isn't running if this value is set - this patch checks the config file to see if it exists, and if it does, doesn't return an error. One side-effect of this change in behaviour is that this startup will only be carried out for certain iscsiadm actions. Since (in RH anyway) the init.d script also loads the iscsi kernel modules, some actions in the RA will now fail if these modules haven't been loaded. The solution seems to be to 'manually' load the modules (e.g. via /etc/modprobe.d). I'm not sure if this will have HA effects, since this will be a 'one-off' operation, e.g at boot. Please let me know if you have any comments/suggestions on this patch, or think that a different approach to starting the iscsid daemon from the RA is now needed. Thanks, Matthew -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
--- iscsi 2011-06-29 13:51:48.000000000 +0100
+++ iscsi.new 2011-11-10 09:52:13.000000000 +0000
@@ -160,6 +160,8 @@
open_iscsi_daemon() {
if ps -e -o cmd | grep -qs '[i]scsid'; then
return 0
+ elif grep -qs '^iscsid.startup' /etc/iscsi/iscsid.conf; then
+ return 0
else
ocf_log err "iscsid not running; please start open-iscsi utilities"
return 1
signature.asc
Description: OpenPGP digital signature
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
