start_mds() {
echo "start mds1 service on `facet_active_host mds1`"
start mds1 --reformat $MDSLCONFARGS || return 94
- start_lsvcgssd || return 501
}
stop_mds() {
echo "stop mds1 service on `facet_active_host mds1`"
stop mds1 $@ || return 97
- stop_lsvcgssd
}
start_ost() {
mount_client() {
local MOUNTPATH=$1
- start_lgssd || return 502
echo "mount lustre on ${MOUNTPATH}....."
zconf_mount `hostname` $MOUNTPATH || return 96
}
local MOUNTPATH=$1
echo "umount lustre on ${MOUNTPATH}....."
zconf_umount `hostname` $MOUNTPATH || return 97
- stop_lgssd
}
manual_umount_client(){
echo "manual umount lustre on ${MOUNTPATH}...."
do_facet client "umount $MOUNT"
- stop_lgssd
}
setup() {
gen_config
start_krb5_kdc || exit 1
-
+start_lsvcgssd || return 2
+start_lgssd || return 3
test_0() {
start_ost
kill -TERM $UMOUNT_PID
echo "waiting for umount to finish"
wait $UMOUNT_PID
- stop_lgssd
# cleanup client modules
$LCONF --force --cleanup --nosetup --node client_facet $XMLCONFIG > /dev/null
[ -d $MOUNT ] || mkdir -p $MOUNT
$LCONF --nosetup --node client_facet $XMLCONFIG > /dev/null
- start_lgssd || return 1
llmount -o nettype=$NETTYPE $mds_HOST://mds_svc/client_facet $MOUNT && exit 2
# cleanup client modules
$LCONF --cleanup --nosetup --node client_facet $XMLCONFIG > /dev/null
- stop_lgssd
# stop_mds is a no-op here, and should not fail
stop_mds || return 3
[ -d $MOUNT ] || mkdir -p $MOUNT
$LCONF --nosetup --node client_facet $XMLCONFIG > /dev/null
- start_lgssd || return 1
llmount -o nettype=$NETTYPE $mds_HOST://wrong_mds_svc/client_facet $MOUNT && return 2
# cleanup client modules
$LCONF --cleanup --nosetup --node client_facet $XMLCONFIG > /dev/null
- stop_lgssd
stop_mds || return 3
stop_ost || return 4
[ -d $MOUNT ] || mkdir -p $MOUNT
$LCONF --nosetup --node client_facet $XMLCONFIG > /dev/null
- start_lgssd || return 1
llmount -o nettype=$NETTYPE $mds_HOST://mds1_svc/client_facet $MOUNT || return 1
umount $MOUNT || return 2
# cleanup client modules
$LCONF --cleanup --nosetup --node client_facet $XMLCONFIG > /dev/null
- stop_lgssd
stop_mds || return 3
}
run_test 18 "check lconf creates large journals"
+stop_lgssd
+stop_lsvcgssd
+
equals_msg "Done"