- nfs_client_mode && return
- auster_cleanup=false
-
- local MOUNTED=$(mounted_lustre_filesystems)
- if $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
- check_config_clients $MOUNT
- # init_facets_vars
- # init_param_vars
- return
- fi
-
- echo "Lustre is not mounted, trying to do setup ... "
- $reformat && formatall
- setupall
-
- MOUNTED=$(mounted_lustre_filesystems)
- if ! $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
- echo "Lustre is not mounted after setup! "
- exit 1
- fi
- auster_cleanup=true
+ ! ${do_setup} && return
+ nfs_client_mode && return
+ AUSTER_CLEANUP=false
+
+ local MOUNTED=$(mounted_lustre_filesystems)
+ if $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
+ check_config_clients $MOUNT
+ # init_facets_vars
+ # init_param_vars
+ return
+ fi
+
+ echo "Lustre is not mounted, trying to do setup ... "
+ $reformat && CLEANUP_DM_DEV=true formatall
+ setupall
+
+ MOUNTED=$(mounted_lustre_filesystems)
+ if ! $(echo $MOUNTED' ' | grep -w -q $MOUNT' '); then
+ echo "Lustre is not mounted after setup! "
+ exit 1
+ fi
+ AUSTER_CLEANUP=true