只要故障监视器尝试将包含该资源的资源组故障转移到其他节点,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); }