Displaying 1 result from an estimated 1 matches for "estado_mirror".
2011 Dec 06
0
script for check drbd at mount ocfs2 at boot in debian
...E=eth3
SLEEP=10
TIMEOUT=30
SLEEP_TIME=0
MOUNTPOINT="/datos/datosadantra"
#LOG="/bin/echo"
LOG="/usr/bin/logger"
if [ ! -f /proc/drbd ]; then
? ?$LOG "No esta arrancado DRBD..."
? ?exit 1
fi
case "$1" in
?start)
? ? ? ?# Inciando las comprobaciones
ESTADO_MIRROR=`/sbin/drbdadm dstate r$RES`
until [ "$ESTADO_MIRROR" == "UpToDate/UpToDate" ]; do
? ?ESTADO_CONEXION=`/sbin/drbdadm cstate r$RES`
? ?IP_ASIGNADA=`ifconfig $NET_INTERFACE | sed -n '/^[A-Za-z0-9]/
{N;/dr:/{;s/.*dr://;s/ .*//;p;}}'`
# ? if [ "$ESTADO_CONEXION" ==...