No subject


Sun Aug 12 13:32:27 UTC 2012


diff --git a/mcp/corosync.c b/mcp/corosync.c
index 7f83d2d..20b6114 100644
--- a/mcp/corosync.c
+++ b/mcp/corosync.c
@@ -603,7 +603,6 @@ read_config(void)
             /* What a cluster fsck, eventually we need to mandate /one/ */
             set_daemon_option("debugfile", logging_logfile);
             set_daemon_option("DEBUGLOG", logging_logfile);
-            set_daemon_option("LOGFILE", logging_logfile);
             have_log =3D TRUE;

         } else {



> I checked with logging to_syslog enabled and disabled.
>
> from corosync.conf
> ....
> logging {
>    fileline: on
>    function_name: on
>    to_stderr: on
>    to_logfile: on
>    to_syslog: off
>    syslog_facility: local6
>    logfile: /opt/ha/var/log/corosync.log
>    debug: off
>    logfile_priority: error
>    syslog_priority: error
>    tags: enter|leave|trace
>    timestamp: on
> }
> ....
>
> from syslog:
> ....
> Sep 26 08:39:20 [8670]       crmd:     info: te_rsc_command:    Initiatin=
g action 5: stop zone_zd-sol-s25_stop_0 on zd-sol-s1
> Sep 26 08:39:26 [8670]       crmd:     info: te_rsc_command:    Initiatin=
g action 6: start zone_zd-sol-s25_start_0 on zd-sol-s2 (local)
> zpool(zone_zd-sol-s25)[848]:    2012/09/26_08:39:26 INFO: zpool pool1 app=
arently exported
> zpool(zone_zd-sol-s25)[848]:    2012/09/26_08:39:26 INFO: zpool pool1 app=
arently exported
> zpool(zone_zd-sol-s25)[848]:    2012/09/26_08:39:36 INFO: zpool pool1 imp=
orted
> zpool(zone_zd-sol-s25)[848]:    2012/09/26_08:39:36 INFO: zpool pool1 imp=
orted
> zpool(zone_zd-sol-s25)[848]:    2012/09/26_08:39:47 INFO: zone zd-sol-s25=
 booted
> zpool(zone_zd-sol-s25)[848]:    2012/09/26_08:39:47 INFO: zone zd-sol-s25=
 booted
> Sep 26 08:39:48 [8670]       crmd:     info: services_os_action_execute: =
       Managed zpool_meta-data_0 process 1928 exited with rc=3D0
> Sep 26 08:39:48 [8670]       crmd:   notice: process_lrm_event:         L=
RM operation zone_zd-sol-s25_start_0 (call=3D855, rc=3D0, cib-update=3D617,=
 confirmed=3Dtrue) ok
> ....
>
> Excerpt from script:
> .....
> zpool_start() {
>         zpool_monitor; rc=3D$?
>         if [ $rc =3D $OCF_SUCCESS ]; then
>                 ocf_log err "zpool ${OCF_RESKEY_state} already running."
>                 return $OCF_ERR_GENERIC
>         fi
>         if [ $rc =3D $OCF_NOT_RUNNING ]; then
>                 ocf_log info "zpool ${OCF_RESKEY_zpoolname} apparently ex=
ported"
>       sudo zpool import ${OCF_RESKEY_zpoolname}; rc=3D$?
>       if [ $rc !=3D $OCF_SUCCESS ]; then
>          ocf_log err "zpool import ${OCF_RESKEY_zpoolname} returns ${rc}"
>          return $OCF_ERR_GENERIC
>       fi
>       sudo touch ${OCF_RESKEY_state}
>       zpool_monitor; rc=3D$?
>       if [ $rc !=3D $OCF_SUCCESS ]; then
>          ocf_log err "monitor returns ${rc}"
>          return $OCF_ERR_GENERIC
>       else
>          ocf_log info "zpool ${OCF_RESKEY_zpoolname} imported"
> .....
>
>
> Andreas
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org



More information about the Pacemaker mailing list