diff options
| author | Martin Schwenke <martin@meltin.net> | 2009-08-14 12:36:49 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2009-08-14 12:36:49 +1000 |
| commit | 4e60e179146ec92087c0ec14f3323b5c81bad079 (patch) | |
| tree | c1c998d144957cbf0477ac83b9157bd4c9915f73 /base/root/scripts | |
| parent | ca4ef9cf983908745c8da1eec8fc78cb56690731 (diff) | |
Make setting of CTDB recovery lock more reliable in setup_gpfs.sh.
Recent versions of CTDB no longer comment out the relevant line in the
config file, so weaken the substitution. While we're here, clean
things up a bit: use "sed -i" to do in-place modification and use
cnpushfile for clarity.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts')
| -rwxr-xr-x | base/root/scripts/setup_gpfs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/root/scripts/setup_gpfs.sh b/base/root/scripts/setup_gpfs.sh index 69af32c..98055b7 100755 --- a/base/root/scripts/setup_gpfs.sh +++ b/base/root/scripts/setup_gpfs.sh @@ -80,8 +80,8 @@ echo echo "Setting up ctdb recovery lock" mkdir -p /gpfs/.ctdb set -e -sed -e 's@# CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"@CTDB_RECOVERY_LOCK=/gpfs/.ctdb/shared@g' > /tmp/ctdb.$$ < /etc/sysconfig/ctdb -mv /tmp/ctdb.$$ /etc/sysconfig/ctdb -onnode all rsync $HOSTNAME:/etc/sysconfig/ctdb /etc/sysconfig +f=/etc/sysconfig/ctdb +sed -i -e 's@.*CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"@CTDB_RECOVERY_LOCK=/gpfs/.ctdb/shared@g' $f +cnpushfile $f echo "GPFS setup complete" |
