Sun Cluster Data Services Developer's Guide for Solaris OS

xfnts_monitor_start Method

The RGM calls the Monitor_start method on a node to start the fault monitor after a resource is started on the node. The xfnts_monitor_start method uses scds_pmf_start() to start the monitor daemon under PMF.

Note –

The first call in xfnts_monitor_start is to scds_initialize(), which performs some necessary house-keeping functions (the scds_initialize() Function and the scds_initialize(3HA) man page contain more detail.

The xfnts_monitor_start method calls the mon_start method, which is defined in xfnts.c as follows.

      "Calling Monitor_start method for resource <%s>.",

    /* Call scds_pmf_start and pass the name of the probe. */
   err = scds_pmf_start(scds_handle, SCDS_PMF_TYPE_MON,
       SCDS_PMF_SINGLE_INSTANCE, "xfnts_probe", 0);

   if (err != SCHA_ERR_NOERR) {
          "Failed to start fault monitor.");
      return (1);

       "Started the fault monitor.");

   return (SCHA_ERR_NOERR); /* Successfully started Monitor */

Note the following about the call in svc_mon_start() to the scds_pmf_start() function.

Note –

Before it exits, the xfnts_monitor_start method calls scds_close() to reclaim resources allocated by scds_initialize(). See scds_initialize() Function and the scds_close(3HA) man page for details.