Skip to content
Snippets Groups Projects

Add a parameter to configure the number of FSTs to run ( default is 6)

Merged Andrea Manzi requested to merge config_n_fst into master
4 files
+ 33
9
Compare changes
  • Side-by-side
  • Inline
Files
4
#!/usr/bin/env bash
n_fst=6
if [ $# -ne 0 ]
then
n_fst=$1
fi
# Enable default space with quota disabled
eos -b space set default on
eos -b space quota default off
@@ -7,7 +15,7 @@ eos -b space quota default off
echo "Wait for FSTs to become online ..."
for i in `seq 1 30`; do
if [ `eos fs ls | grep online | wc -l` -eq 6 ]; then
if [ `eos fs ls | grep online | wc -l` -eq $n_fst ]; then
echo "All FSTs are online"
break
else
@@ -15,7 +23,7 @@ for i in `seq 1 30`; do
fi
done
if [ `eos fs ls | grep online | wc -l` -ne 6 ]; then
if [ `eos fs ls | grep online | wc -l` -ne $n_fst ]; then
echo "Some of the FSTs are not online ... aborting!"
eos fs ls
exit 1;
@@ -27,7 +35,7 @@ eos -b config save -f default
echo "Wait for FSTs to boot ..."
for i in `seq 1 30`; do
if [ `eos fs ls | grep booted | wc -l` -eq 6 ]; then
if [ `eos fs ls | grep booted | wc -l` -eq $n_fst ]; then
echo "All FSTs are booted"
break
else
@@ -35,7 +43,7 @@ for i in `seq 1 30`; do
fi
done
if [ `eos fs ls | grep booted | wc -l` -ne 6 ]; then
if [ `eos fs ls | grep booted | wc -l` -ne $n_fst ]; then
echo "Some of the FSTs are not booted ... aborting!"
eos fs ls
exit 1;
Loading