diff options
| author | Andrew Tridgell <tridge@samba.org> | 2008-07-24 16:39:10 +1000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2008-07-24 16:39:10 +1000 |
| commit | 01fafc01fb66769018ef3ca8a050f75211eb9919 (patch) | |
| tree | 98e1720d081ade1f72f0f4f6588e2f2e773b8242 /base/root/scripts | |
| parent | 415b66866250565791de25cab5c7f90a27cf3b51 (diff) | |
| download | autocluster-01fafc01fb66769018ef3ca8a050f75211eb9919.tar.gz autocluster-01fafc01fb66769018ef3ca8a050f75211eb9919.tar.xz autocluster-01fafc01fb66769018ef3ca8a050f75211eb9919.zip | |
fix gpfsready bug on all nodes
Diffstat (limited to 'base/root/scripts')
| -rwxr-xr-x | base/root/scripts/setup_tsm_client.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/base/root/scripts/setup_tsm_client.sh b/base/root/scripts/setup_tsm_client.sh index d2a7e66..a4f909f 100755 --- a/base/root/scripts/setup_tsm_client.sh +++ b/base/root/scripts/setup_tsm_client.sh @@ -75,6 +75,9 @@ mmshutdown -a echo "Starting up gpfs again" mmstartup -a +echo "Waiting for gpfs to become active" +while ! mmgetstate | grep active > /dev/null; do echo -n "."; sleep 1; done + echo "Enabling DMAPI in gpfs" mmchfs gpfs0 -z yes @@ -88,6 +91,9 @@ echo "Restarting GPFS" mmshutdown -a mmstartup -a +echo "Waiting for gpfs to become active" +while ! mmgetstate | grep active > /dev/null; do echo -n "."; sleep 1; done + echo "Waiting for gpfs to mount" while ! mount | grep /dev/gpfs0 > /dev/null; do echo -n "."; sleep 1; done @@ -95,14 +101,17 @@ echo "Adding space management to /gpfs" dsmmigfs add /gpfs -LT=100 -HT=100 echo "Fixing gpfsready TSM bug" -sed -e 's@^return 0@/bin/true@g' -i.orig /var/mmfs/etc/gpfsready +run_onnode all "sed -e 's@^return 0@/bin/true@g' -i.orig /var/mmfs/etc/gpfsready" echo "Restarting gpfs" mmshutdown -a mmstartup -a -echo "Setting TSM thresholds to disable auto-migration" -dsmmigfs update /gpfs -LT=100 -HT=100 +echo "Waiting for gpfs to become active" +while ! mmgetstate | grep active > /dev/null; do echo -n "."; sleep 1; done + +echo "Waiting for gpfs to mount" +while ! mount | grep /dev/gpfs0 > /dev/null; do echo -n "."; sleep 1; done cat <<EOF TSM client setup complete |
