| United States-English |
|
|
|
![]() |
Configuring OPS Clusters with MC/LockManager: > Chapter 5 Building an OPS Cluster ConfigurationConfiguring the Cluster |
|
This section describes how to define the basic cluster configuration. To do this in SAM, read the next section. If you want to use MC/LockManager commands, skip ahead to the section entitled "Using MC/LockManager Commands to Configure the Cluster." To configure a high availability cluster, use the following steps on the configuration node (ftsys9):
Skip ahead to the section "Configuring the Distributed Lock Manager." Use the cmquerycl command to specify a set of nodes to be and to generate a template for the cluster configuration file. Here is an example of the command as issued from node ftsys9:
The example creates an ASCII template file in the default cluster configuration directory, /etc/cmcluster. The ASCII file is partially filled in with the names and characteristics of cluster components on the two nodes ftsys9 and ftsys10. Edit the filled-in cluster characteristics as needed to define the desired cluster. It is strongly recommended that you edit the file to send heartbeat over all possible networks, as shown in the following example.
The man page for the cmquerycl command lists the definitions of all the parameters that appear in this file. Many are also described in the "Planning" chapter. Modify the /etc/cmcluster/cmclconf.ascii file to your requirements, using the data on the cluster configuration worksheet. In the file, keywords are separated from definitions by white space. Comments are permitted, and must be preceded by a pound sign (#) in the far left column. See the man page for the cmquerycl command for more details. The file will include entries for all package volume groups that are to be defined as cluster-aware, that is, those which can be accessed by packages running on different nodes in the cluster at different times. A separate VOLUME_GROUP line should appear for each volume group that will be activated by any package running in the cluster. To leave a volume group unmarked, remove the volume group name from the ASCII file.
The template file will also include entries for all volume groups used by the Oracle Parallel Server that are accessed concurrently by the different nodes in the cluster. These volume groups are activated by the vgchange -a s command in the control script that activates each OPS instance. A separate OPS_VOLUME_GROUP line should appear for each volume group that will be activated in shared mode. Volume groups that will be used by Oracle Parallel Server must be labelled OPS_VOLUME_GROUP.
In configuring a new cluster, if you are using volume groups that were used in a previous cluster configuration, you should ensure that they are not currently cluster aware (marked with a cluster id). You can use the following command to remove the cluster id if necessary:
A cluster lock disk is required for two node clusters like the one in this example. The disk must be accessible to all nodes and must be powered separately from the nodes. Refer to the section "Use of the Cluster Lock" in Chapter 3 for additional information. The default FIRST_CLUSTER_LOCK_VG and FIRST_CLUSTER_LOCK_PV supplied in the ASCII template created with cmquerycl are the volume group and physical volume name of a disk chosen based on minimum failover time calculations. You should ensure that this disk meets your power wiring requirements. If necessary, choose a disk powered by a circuit which powers fewer than half the nodes in the cluster. If necessary, you can configure a second cluster lock. Enter the following parameters in the cluster configuration file:
where the /dev/volume-group is the name of the second volume group and block-special-file is the physical volume name of a lock disk in the chosen volume group. These lines should be added to the information for each node. To display the failover times of disks, use the cmquerycl command, specifying all the nodes in the cluster:
The output of the command lists the disks connected to each node together with the re-formation time associated with each. MC/LockManager preallocates memory and threads at cluster startup time. It calculates these values based on the number of packages specified in the MAX_CONFIGURED_PACKAGES parameter in the cluster configuration file. This value must be equal to or greater than the number of packages currently configured in the cluster. The default is 0, which means that you must enter a value if you wish to use packages. The absolute maximum number of packages per cluster is 30. If you are using a serial (RS232) line as a heartbeat connection, use the SERIAL_DEVICE_FILE parameter and enter the device file name that corresponds to the serial port you are using on each node. Be sure that the serial cable is securely attached during and after configuration. When the DLM_ENABLED parameter is set to YES, the DLM is started in the cluster when the cluster starts or reboots. If DLM has not yet been configured, and this parameter is set to YES, the cluster will not start successfully. If you set DLM_ENABLED to YES, you must set GMS_ENABLED to NO. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||