local exports=$2
local varsvc=${facet}_svc
- wait_update $(facet_host $facet) "lctl get_param -n *.${!varsvc}.num_exports | cut -d' ' -f2" $((exports - 1)) $3
+ wait_update $(facet_active_host $facet) \
+ "lctl get_param -n *.${!varsvc}.num_exports | cut -d' ' -f2" \
+ $((exports - 1)) $3
}
test_26a() { # was test_26 bug 5921 - evict dead exports by pinger
sync
}
-remote_node () {
- local node=$1
- [ "$node" != "$(hostname)" ]
-}
-
set_default_debug_nodes () {
local nodes=$1
- if remote_node $nodes; then
- do_rpc_nodes $nodes set_default_debug \
- \\\"$PTLDEBUG\\\" \\\"$SUBSYSTEM\\\" $DEBUG_SIZE
- else
+ if [[ ,$nodes, = *,$HOSTNAME,* ]]; then
+ nodes=$(exclude_items_from_list "$nodes" "$HOSTNAME")
set_default_debug
fi
+
+ [[ -n $nodes ]] && do_rpc_nodes $nodes set_default_debug \
+ \\\"$PTLDEBUG\\\" \\\"$SUBSYSTEM\\\" $DEBUG_SIZE || true
}
set_default_debug_facet () {
# save the active host for this facet
local activevar=${facet}active
echo "$activevar=${!activevar}" > $TMP/$activevar
+ [[ $facet = mds ]] && combined_mgs_mds && \
+ echo "mgsactive=${!activevar}" > $TMP/mgsactive
local TO=`facet_active_host $facet`
echo "Failover $facet to $TO"
done
# make sure its not already running
stop ${facet} -f
rm -f $TMP/${facet}active
+ [[ $facet = mds ]] && combined_mgs_mds && rm -f $TMP/mgsactive
do_facet ${facet} $MKFS $*
}
# currently we use do_facet mds in local.sh
stop mds -f
rm -f ${TMP}/mdsactive
+ combined_mgs_mds && rm -f $TMP/mgsactive
for num in `seq $OSTCOUNT`; do
stop ost$num -f
rm -f $TMP/ost${num}active
$LFS osts $2 | awk '/^'$1'/ { print $2 }'
}
+remote_node () {
+ local node=$1
+ [[ $node != $HOSTNAME ]]
+}
+
remote_mds ()
{
remote_node $mds_HOST