echo $ost
}
+ostuuid_from_index()
+{
+ $LFS osts $2 | awk '/^'$1'/ { print $2 }'
+}
+
remote_node () {
local node=$1
[ "$node" != "$(hostname)" ]
local list=$1
local ts=$(date +%s)
-
- # bug 20237, comment 11
- # It would also be useful to provide the option
- # of writing the file to an NFS directory so it doesn't need to be copied.
- local tmp=$TMP
local docp=true
[ -f $LOGDIR/shared ] && docp=false
local res=0
for ((i=0;i<20;i++)); do
- echo -n "checking..."
+ echo -n "checking $dir..."
res=$(do_check_flavor $dir $flavor)
- if [ $res -eq $expect ]; then
- echo "found $res $flavor connections of $dir, OK"
- return 0
- else
- echo "found $res $flavor connections of $dir, not ready ($expect)"
- return 0
- sleep 4
- fi
+ echo "found $res/$expect $flavor connections"
+ [ $res -eq $expect ] && return 0
+ sleep 4
done
echo "Error checking $flavor of $dir: expect $expect, actual $res"
for rule in `do_facet mgs lctl get_param -n $proc 2>/dev/null | grep ".srpc.flavor."`; do
echo "remove rule: $rule"
spec=`echo $rule | awk -F = '{print $1}'`
- do_facet mgs "$LCTL conf_param $spec="
+ do_facet mgs "$LCTL conf_param -d $spec"
done
fi