Hi All, When we made pgdata a mount(example : /dbfp1 on shared disk), the next error log is output in probe by all means.
ERROR: Cannot find configuration file /dbfp1/pgdata/data/postgresql.conf
Do not make this error log warning in probe?
Because the reason is because an operator watching error-log is confused.
diff -r d2fdb87bded9 heartbeat/pgsql
--- a/heartbeat/pgsql Fri Sep 17 15:30:20 2010 +0900
+++ b/heartbeat/pgsql Fri Sep 17 15:33:04 2010 +0900
@@ -22,6 +22,11 @@
get_pgsql_param() {
local config_file
local param_name
+ local loglevel=err
+
+ if ocf_is_probe; then
+ loglevel=warn
+ fi
param_name=$1
@@ -33,7 +38,7 @@
fi
if [ ! -f "$config" ]; then
- ocf_log err "Cannot find configuration file $config"
+ ocf_log $loglevel "Cannot find configuration file $config"
return
fi
Best Regards,
Hideo Yamauchi.
pgsql.patch
Description: 465324755-pgsql.patch
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
