KZPOOL=$KEEP_ZPOOL
export KEEP_ZPOOL="true"
stopall
+ export SK_MOUNTED=false
writeconf_all
- setupall server_only || echo 1
+ setupall || echo 1
export KEEP_ZPOOL="$KZPOOL"
-
- # remount client normally
- mount_client $MOUNT $MOUNT_OPTS || error "unable to remount client"
- if [ "$MOUNT_2" ]; then
- mount_client $MOUNT2 || error "unable to remount client2"
- fi
}
test_31() {
stack_trap cleanup_31 EXIT
- # unmount client
- umount_client $MOUNT || error "unable to umount client"
- if [ "$MOUNT_2" ]; then
- umount_client $MOUNT2 || error "unable to umount client2"
+ # umount client
+ if [ "$MOUNT_2" ] && $(grep -q $MOUNT2' ' /proc/mounts); then
+ umount_client $MOUNT2 || error "umount $MOUNT2 failed"
+ fi
+ if $(grep -q $MOUNT' ' /proc/mounts); then
+ umount_client $MOUNT || error "umount $MOUNT failed"
fi
# check exports on servers are empty for client
KZPOOL=$KEEP_ZPOOL
export KEEP_ZPOOL="true"
stopall
+ export SK_MOUNTED=false
writeconf_all
setupall server_only || echo 1
export KEEP_ZPOOL="$KZPOOL"
-m $SK_PATH/$FSNAME-nmclient.key \
>/dev/null 2>&1"
fi
+ fi
+ if $GSS_SK; then
# mount options for servers and clients
MGS_MOUNT_OPTS=$(add_sk_mntflag $MGS_MOUNT_OPTS)
MDS_MOUNT_OPTS=$(add_sk_mntflag $MDS_MOUNT_OPTS)
TIMEOUT=$(lctl get_param -n timeout)
TIMEOUT=${TIMEOUT:-20}
+ if [ -n $arg1 ]; then
+ [ "$arg1" = "server_only" ] && return
+ fi
+
remote_mds_nodsh && log "Using TIMEOUT=$TIMEOUT" && return 0
TIMEOUT=$(do_facet $SINGLEMDS "lctl get_param -n timeout")