diff options
author | Michael Adam <obnox@samba.org> | 2011-04-05 13:50:00 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-04-05 13:50:00 +0200 |
commit | c9dc10292edf7b89d22d105ed462cffeafda7295 (patch) | |
tree | 1c9e658ae89c2369b75eb0c3bd42347cc2e969ef /ctdb/config | |
parent | faa6d8d7e2823ef4d06fa5384d6330067a95b5b7 (diff) | |
download | samba-c9dc10292edf7b89d22d105ed462cffeafda7295.tar.gz samba-c9dc10292edf7b89d22d105ed462cffeafda7295.tar.xz samba-c9dc10292edf7b89d22d105ed462cffeafda7295.zip |
ctdb.init: print a warning when tdbdump is found but tdbtoo or "tdbtool check" is not available
(This used to be ctdb commit afb26e38b617b85cdac14a7cd6dd3c85b8fddbc4)
Diffstat (limited to 'ctdb/config')
-rwxr-xr-x | ctdb/config/ctdb.init | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ctdb/config/ctdb.init b/ctdb/config/ctdb.init index be730cd394..1dc051c7d3 100755 --- a/ctdb/config/ctdb.init +++ b/ctdb/config/ctdb.init @@ -170,6 +170,18 @@ check_persistent_databases () { return 0 fi + if test x"$HAVE_TDBDUMP" = x"1" -a x"$TDBTOOL_HAS_CHECK" = x"0" ; then + if test x"$HAVE_TDBTOOL" = x"0"; then + echo "WARNING: 'tdbtool' is not available. Using 'tdbdump' to" + echo "check the persistent databases." + echo "Consider installing a recent 'tdbtool' for better checks!" + else + echo "WARNING: The installed 'tdbtool' does not offer the 'check'" + echo "subcommand. Using 'tdbdump' for persistent database checks." + echo "Consider updating 'tdbtool' for better checks!" + fi + fi + for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9] 2>/dev/null`; do check_tdb $PDBASE || { echo "Persistent database $PDBASE is corrupted! CTDB will not start." |