scst/README.dlm: Update startup sequence information

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2016-08-08 20:52:00 +00:00
parent ce52affcdf
commit 4f776f42bb

View File

@@ -85,8 +85,9 @@ Startup and Shutdown
--------------------
The startup sequence is as follows:
* Load and configure SCST with cluster_mode = 0 and with all target ports
disabled.
* Load the DLM kernel module. If not loaded explicitly, "modprobe scst" will
load the DLM kernel module implicitly.
* Load and configure SCST with all target ports disabled.
* Enable cluster mode for all SCST devices that can be accessed through more
than one cluster node:
for x in /sys/kernel/scst_tgt/handlers/*/*/; do
@@ -103,10 +104,17 @@ The startup sequence is as follows:
crmadmin -S "$dc" 2>/dev/null |
sed 's/^Status of crmd@[^[:blank:]]*:[[:blank:]]\([^[:blank:]]*\).*/\1/'
}
for ((i=0;i<300;i++)); do
[ "$(pacemaker_dc_status)" = "S_IDLE" ] && break
timeout=300
for ((i=0;i<timeout;i++)); do
if [ "$(pacemaker_dc_status)" = "S_IDLE" ]; then
echo "Pacemaker reached idle state after $i s"
break
fi
sleep 1
done
if [ "$i" = "$timeout" ]; then
echo "Pacemaker did not reach the IDLE state in $i s"
fi
* Enable SCST target ports.
* If no DLM resource has been configured in Pacemaker, start dlm_controld.pcmk
explicitly.