HP-UX Mc serviceguard configuration file

Source: Internet
Author: User

1./etc/cmcluster. ASCII

Cluster_name fs_cluster # Cluster name. The default value can be used.
First_cluster_lock_vg/dev/vglock # Lock disk, which must be used by two node clusters.
The heartbeat address of node_name hpdb1 # node1, which is automatically obtained by the MC software.
Network_interface lan0
Heartbeat_ip 192.168.11.1
Network_interface lan2
Heartbeat_ip 10.150.192.105
First_cluster_lock_pv/dev/Disk/disk28
Node_name hpdb2 # The heartbeat address of node2, which is automatically obtained by the MC software.
Network_interface lan0
Heartbeat_ip 192.168.11.2
Network_interface lan2
Heartbeat_ip 10.150.192.106
First_cluster_lock_pv/dev/Disk/disk28
Heartbeat_interval 1000000 # default value: 1 s. The interval at which heartbeat signals are sent from one node to another.
Node_timeout 6000000 # The default value is 2 s, which is 6 s. The interval at which one node determines that another node is unavailable and starts reconfiguration.
Auto_start_timeout 600000000 # The default value is 10 minutes. When the cluster is automatically started, the waiting time before the node tries to join the cluster.
Network_polling_interval 2000000 # The default value is 2 s. The cluster polls the NIC to ensure that it can also send and receive information.
Network_failure_detection inout # The default value is that Mc monitors the number of packets received and sent by the NIC. inout means that the number of received and sent packets stops increasing, and MC determines that the NIC is damaged.
Max_configured_packages 12 # This is more than the number of services to be started.
Volume_group/dev/vglock # shared VG.
Volume_group/dev/vgoradata1 # shared VG.
Volume_group/dev/vgoradata2 # shared VG.
**************************************** ************
Ops_volume_group/dev/vgdata # RAC mode. volume_group does not need to be listed. **************************************** ************

2./etc/cmcluster/pkg_ora1/pkg_ora1.conf


Package_name pkg_ora1 # package name.
Package_type failover # default value.
Failover_policy configured_node # default value: the behavior that fails to switch the package to the next package.
Failback_policy manual # default value. When the package runs on a non-original node, it must be manually switched to the original node.
Node_name hpdb1 # list the nodes in the cluster, which is in front of the master node.
Node_name hpdb2
Auto_run yes # default value.
Local_lan_failover_allowed yes # default value: allow the IP address of the package to switch to the slave LAN.
Node_fail_fast_enabled no # default value: whether to wait for the soft signal of the host.
Run_script/etc/cmcluster/pkg_ora1/pkg_ora1.cntl # Start the service script.
Run_script_timeout no_timeout
Halt_script/etc/cmcluster/pkg_ora1/pkg_ora1.cntl # Close the service script, which is generally the same as the startup script.
Halt_script_timeout no_timeout
Subnet 10.150.192.0 # CIDR Block of the virtual IP address.

3./etc/cmcluster/pkg_ora1/pkg_ora1.cntl

. $ {Sgconffile: =/etc/cmcluster. conf}
Path = $ sgsbin:/usr/bin:/usr/sbin:/etc:/bin
Vgchange = "vgchange-a e" # Set in dual-Host Mode
****************************************
Vgchange = "vgchange-a s" # Set in RAC Mode
****************************************
Cvm_activation_cmd = "vxdg-g/$ diskgroup set activation = exclusivewrite"
VG [0] = "vgoradata1" # VG to be started for this package.
Vxvm_dg_retry = "no"
Deactivation_retry_count = 0 # Number of times the volume group (LVM) or disk group (ZFS, CVM) must be repeatedly disabled before the script is closed when the package fails.
Kill_processes_accessing_raw_devices = "no" # specify whether to forcibly terminate the process using the original device when the package is disabled. The default value is no.
LV [0] = "/dev/vgoradata1/lvoradata1"; # share the configuration information of the file system.
FS [0] = "/oradata1 ";
Fs_mount_opt [0] = "";
Fs_umount_opt [0] = "";
Fs_fsck_opt [0] = "";
Fs_type [0] = "vxfs"
Vxvol = "vxvol-g/$ diskgroup startall" # default
Fs_umount_count = 1 # Number of umount retries for each file system.
Fs_mount_retry_count = 0 # Number of Retries on mounting each file system.
Concurrent_vgchange_operations = 1 # specify the number of concurrent volume groups that can be activated or disabled when the package starts or stops.
Concurrent_fsck_operations = 1 # number of concurrent fsck operations allowed on the file system mounted during the startup of the package.
Concurrent_mount_and_umount_operations = 1 # number of concurrent mount and umount operations allowed during the startup or shutdown of the package.
IP [0] = "10.150.192.107" # IP address not used in RAC Mode
Subnet [0] = "10.150.192.0"
LOG_FILE =$ {sg_script_log_file:-$ 0.log}

Function customer_defined_run_cmds
{
/Etc/cmcluster/Oracle/dbstart1.sh # Start the script of the Oracle database.
Test_return 51
}

Function customer_defined_halt_cmds
{
/Etc/cmcluster/Oracle/dbstop1.sh # Shut down the script of the Oracle database.
Test_return 52
}
# The following script is retained but does not need to be modified (omitted ).
# Mc configuration complete!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.