MC/ServiceGuard
取消
顯示結果 
搜尋替代 
您的意思是: 

mc service guard "Service"怎樣用阿

mc service guard "Service"怎樣用阿

我再config package 時候裡面的範例有寫到

SERVICE_NAME

SERVICE_CMD

SERVICE_RESTART

請問我要怎樣才能create 一個service
6 回覆

mc service guard "Service"怎樣用阿

你會需要Enterprise Cluster Master Toolkit, 這套件

是要向HP購買的.



文件的話請參考以下文章

http://docs.hp.com/en/B3936-90065/ch04s08.html

http://docs.hp.com/en/B3936-90079/ch06s02.html



至於範例, 請參考附檔, 當然不是說每套的設定都一定這樣,

在做規劃的時候還必須考量到AP的屬性, 及種種其他因素.

mc service guard "Service"怎樣用阿

你是指要裝Enterprise Cluster Master Toolkit

才能使用service 功能嗎

mc service guard "Service"怎樣用阿

no. 你也可自己寫monitor script.

mc service guard "Service"怎樣用阿

我已經有monitor script了

但是執行package後卻出現下列的狀況

我用手動執行/etc/cmcluster/pkgscm/orcl.sh monitor是正常的

請問該怎樣建立service

因為log說sevice not exist



May 12 21:57:54 - Node "rac1": Starting service oracle_mon using

"/etc/cmcluster/pkgscm/orcl.sh monitor"

cmrunserv : Service name oracle_mon does not exist.

ERROR: Function start_services

ERROR: Failed to start service oracle_mon

mc service guard "Service"怎樣用阿

suggest better contact with your account support.

mc service guard "Service"怎樣用阿

first of all, you have to define SERVICE_NAME

in your pkg.conf file, example as following.



SERVICE_NAME serv_lookup

SERVICE_FAIL_FAST_ENABLED NO

SERVICE_HALT_TIMEOUT 300



then, you have to define SERVICE info in the

pkg.cntl file, example as following.



SERVICE_NAME=serv_lookup

SERVICE_CMD="/etc/cmcluster/pkg_ovo/lookup_monitor.sh >> /etc/cmcluster/pkg_ovo/lookup.log 2>&1"

SERVICE_RESTART="-r 0"



after two steps, you have to ftp pkg.conf pkg.cntl, monitor script from nodeA to nodeB,

then stop package you modify

#cmhaltpkg -n nodeA pkg_ovo



then check your conf file

# cmcheckconf -P /etc/cmcluster/pkg_ovo/pkg_ovo.conf



if pass, then next

# cmapplyconf -P /etc/cmcluster/pkg_ovo/pkg_ovo.conf



then do some failover or kill process test.



In this example, I would like to monitor a

process, then I create a service for it, in

monitor script check if process up, do nothing,

if process die, the monitor script will have

warning message, and bring it up without

failover.