nfs_client_mode && return
local MOUNTED=$(mounted_lustre_filesystems)
- if $(echo $MOUNTED | grep -w -q $MOUNT); then
+ if $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
check_config_clients $MOUNT
init_facets_vars
init_param_vars
$SETUP
MOUNTED=$(mounted_lustre_filesystems)
- if ! $(echo $MOUNTED | grep -w -q $MOUNT); then
+ if ! $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
echo "Lustre is not mounted after setup! SETUP=$SETUP"
exit 1
fi
auster_cleanup=false
local MOUNTED=$(mounted_lustre_filesystems)
- if $(echo $MOUNTED | grep -w -q $MOUNT); then
+ if $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
check_config_clients $MOUNT
# init_facets_vars
# init_param_vars
setupall
MOUNTED=$(mounted_lustre_filesystems)
- if ! $(echo $MOUNTED | grep -w -q $MOUNT); then
+ if ! $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
echo "Lustre is not mounted after setup! "
exit 1
fi
check_and_setup_lustre
MOUNTED=$(mounted_lustre_filesystems)
-if ! $(echo $MOUNTED | grep -w -q $MOUNT2); then
+if ! $(echo $MOUNTED' ' | grep -w -q $MOUNT2' '); then
zconf_mount $HOSTNAME $MOUNT2
MOUNTED2=yes
fi
local rc=0
for mnt in $mnts ; do
do_nodes $nodes "running=\\\$(grep -c $mnt' ' /proc/mounts);
-mpts=\\\$(mount | grep -w -c $mnt);
+mpts=\\\$(mount | grep -c $mnt' ');
if [ \\\$running -ne \\\$mpts ]; then
echo \\\$(hostname) env are INSANE!;
exit 1;
exit $rc"
echo "Started clients $clients: "
- do_nodes $clients "mount | grep -w $mnt"
+ do_nodes $clients "mount | grep $mnt' '"
set_default_debug_nodes $clients