- 论坛徽章:
- 0
|
MC/SG脚本问题
Hi,
The general steps to setup MC/SG are as following:
1. Install MC/SG on all nodes.
2. Setup cluster :
Use "cmquery" to create an ascii configuration file, then vi this file; then use "cmcheckconf" to see if there is any error; then use "cmapplyconf" to distribute the binary.
3. Setup package:
Use "cmmakepkg -p" to create a package ascii configuration file, edit, cmcheckconf, cmapplyconf; then use "cmmakepkg -s" to create a package control file, this is a shell script.
Inside this shell script, there are two functions: "customer_defined_run_cmds" and "customer_defined_halt_cmds".
The customer_defined_run_cmds can let you put any commands/scripts, same thing with the customer_defined_halt_cmds.
The sequence when a package starts:
1) activate_volume_group
2) check_and_mount
3) add_ip_address
4) customer_defined_run_cmds
5) start_services
6) start_resources
The sequence when a package stops:
1) stop_resources
2) halt_services
3) customer_defined_halt_cmds
4) remove_ip_address
5) umount_fs
6) deactivate_volume_group
I suggest you to download the "Managing MC/ServiceGuard" from HP, here is the URL: http://docs.hp.com/hpux/pdf/B3936-90065.pdf
Good luck. |
|