echo "start mds service on `facet_active_host mds`"
start mds --reformat $MDSLCONFARGS || return 94
}
+
stop_mds() {
echo "stop mds service on `facet_active_host mds`"
stop mds $@ || return 97
[ -d $MOUNT ] || mkdir -p $MOUNT
$LCONF --nosetup --node client_facet $XMLCONFIG > /dev/null
- llmount -o nettype=$NETTYPE,$MOUNTOPT $mds_HOST://mds_svc/client_facet $MOUNT || return 1
+ llmount -o nettype=$NETTYPE,$MOUNTOPT `facet_nid mds`://mds_svc/client_facet $MOUNT || return 1
- umount $MOUNT || return 2
- # cleanup client modules
- $LCONF --cleanup --nosetup --node client_facet $XMLCONFIG > /dev/null
+ umount_client $MOUNT || return 2
stop_mds || return 3
# load llite module on the client if it isn't in /lib/modules
do_node `hostname` lconf --nosetup --node client_facet $XMLCONFIG
do_node `hostname` mount -t lustre -o nettype=$NETTYPE,$MOUNTOPT \
- `facet_active_host mds`:/mds_svc/client_facet $MOUNT ||return $?
+ `facet_nid mds`:/mds_svc/client_facet $MOUNT ||return $?
echo "mount lustre on $MOUNT with $MOUNTLUSTRE: success"
[ -d /r ] && $LCTL modules > /r/tmp/ogdb-`hostname`
check_mount || return 41
[ -f "$MOUNTLUSTRE" ] && rm -f $MOUNTLUSTRE
echo "mount lustre on ${MOUNT} without $MOUNTLUSTRE....."
do_node `hostname` mount -t lustre -o nettype=$NETTYPE,$MOUNTOPT \
- `facet_active_host mds`:/mds_svc/client_facet $MOUNT &&return $?
+ `facet_nid mds`:/mds_svc/client_facet $MOUNT &&return $?
echo "mount lustre on $MOUNT without $MOUNTLUSTRE failed as expected"
cleanup || return $?
cleanup_15
facet=$1
HOST=`facet_host $facet`
if [ -z "$HOST" ]; then
- echo "The env variable ${facet}_HOST must be set."
- exit 1
+ echo "The env variable ${facet}_HOST must be set."
+ exit 1
fi
if [ -z "$NETTYPE" ]; then
- echo "The env variable NETTYPE must be set."
- exit 1
+ echo "The env variable NETTYPE must be set."
+ exit 1
fi
echo `h2$NETTYPE $HOST`
}