每当故障监视器试图将含有资源的资源组故障切换到其它节点时,RGM 都将调用 Monitor_check 方法。 xfnts_monitor_check 方法将调用 svc_validate() 方法来检验是否已进行了适当的配置,以支持 xfs 守护程序(有关详细信息,请参阅xfnts_validate 方法)。 xfnts_monitor_check 的代码如下。
/* Process the arguments passed by RGM and initialize syslog */ if (scds_initialize(&scds_handle, argc, argv) != SCHA_ERR_NOERR) { scds_syslog(LOG_ERR, "Failed to initialize the handle."); return (1); } rc = svc_validate(scds_handle); scds_syslog_debug(DBG_LEVEL_HIGH, "monitor_check method " "was called and returned <%d>.", rc); /* Free up all the memory allocated by scds_initialize */ scds_close(&scds_handle); /* Return the result of validate method run as part of monitor check */ return (rc); }