Sun Cluster データサービス開発ガイド (Solaris OS 版)

xfnts_update メソッド

RGM は Update メソッドを呼び出して、実行中のリソースのプロパティーが変更されたことをそのリソースに通知します。xfnts データサービスにおいて変更可能なプロパティーは、障害モニターに関連したものだけです。したがって、プロパティーが更新されたとき、常に xfnts_update メソッドは scds_pmf_restart_fm() を呼び出して、障害モニターを再起動します。

  /* check if the Fault monitor is already running and if so stop
   * and restart it. The second parameter to scds_pmf_restart_fm()
   * uniquely identifies the instance of the fault monitor that needs
   * to be restarted.
   */

   scds_syslog(LOG_INFO, "Restarting the fault monitor.");
   result = scds_pmf_restart_fm(scds_handle, 0);
   if (result != SCHA_ERR_NOERR) {
      scds_syslog(LOG_ERR,
          "Failed to restart fault monitor.");
      /* Free up all the memory allocated by scds_initialize */
      scds_close(&scds_handle);
      return (1);
   }

   scds_syslog(LOG_INFO,
   "Completed successfully.");

注 –

scds_pmf_restart_fm() への 2 番目の引数は、複数のインスタンスが存在する場合に、再起動する障害モニターのインスタンスを一意に識別します。例にある値 0 は障害モニターのインスタンスが 1 つしか存在しないことを示します。