Modifying the VCS Configuration on the Primary Site

The following are the procedural highlights required to modify the existing VCS configuration on the primary site:

To modify VCS on the primary site

  1. Log into one of the nodes on the primary cluster.

  2. Use the following command to save the existing configuration to disk, and make the configuration read-only while you make changes:

      # haconf -dump -makero
    					
  3. Use the following command to make a backup copy of the main.cf file:

    # cd /etc/VRTSvcs/conf/config
     # cp main.cf main.orig
    					
  4. Use vi or another text editor to edit the main.cf file. Review the sample configuration file after the SF Oracle RAC installation.

    Add a failover service group using the appropriate values for your cluster and nodes. Include the following resources:

    • RVGLogowner resource. The node on which the group is online functions as the log owner (node connected to the second cluster for the purpose of replicating data).

    • IP resource

    • NIC resources

    The following are examples of RVGLogowner service group for the different platforms.

    group rlogowner ( 
        SystemList = { galaxy = 0, nebula = 1 } 
        AutoStartList = { galaxy,nebula } 
        ) 
    
        IP logowner_ip (
            Device = bge0
            Address = "10.10.9.101"  
            NetMask = "255.255.255.0"  
            )
        NIC nic (
            Device = bge0
            NetworkType = ether
            NetworkHosts = "10.10.8.1"  
            )
    RVGLogowner logowner (  
         RVG = rac1_rvg  
         DiskGroup = oradatadg  
         )
    requires group RVGgroup online local firm
    logowner requires logowner_ip
    logowner_ip requires nic
  5. Add the RVG service group using the appropriate values for your cluster and nodes.

    Example RVGgroup service group:

    group RVGgroup ( 
         SystemList = { galaxy = 0, nebula = 1 } 
         Parallel = 1 
         AutoStartList = { galaxy,nebula } 
         )
    
    RVGShared racdata_rvg ( 
         RVG = rac1_rvg 
         DiskGroup = oradatadg 
         ) 
         CVMVolDg racdata_voldg (  
             CVMDiskGroup = oradatadg  
             CVMActivation = sw  
             )
    requires group cvm online local firm
    racdata_rvg requires racdata_voldg
  6. Modify the Oracle RAC service group using the appropriate values for your cluster and nodes:

    • Define the Oracle RAC service group as a global group by specifying the clusters on the primary and secondary sites as values for the ClusterList group attribute. See the bolded attribute in the example that follows.

    • Add the ClusterFailOverPolicy cluster attribute. Symantec recommends using the Manual value. See the bolded attribute in the example.

    • Add the RVGSharedPri resource to the group configuration.

    • Remove the CVMVolDg resource, if it has been configured in your previous configuration. This resource is now part of the RVG service group.

    • Specify the service group (online, local, firm) to depend on the RVG service group.

    • Remove the existing dependency of the Database service group on the CVM service group. Remove the line:

      requires group CVM online local firm
    • Remove the existing dependency between the CFSMount for the database and the CVMVoldg for the Oracle RAC database. Remove the line:

      oradata_mnt requires oradata_voldg

    The following is an example of an Oracle RAC database service group configured for replication:

    group database_grp ( 
        SystemList = { galaxy = 0, nebula = 1 } 
        ClusterList = { rac_cluster101 = 0, rac_cluster102 = 1 } 
        Parallel = 1 
        ClusterFailOverPolicy = Manual 
        Authority = 1 
        AutoStartList = { galaxy,nebula } 
        ) 
    
        CFSMount oradata_mnt (  
            MountPoint = "/oradata"  
            BlockDevice = "/dev/vx/dsk/oradatadg/racdb_vol"  
            ) 
    
        RVGSharedPri ora_vvr_shpri (  
           RvgResourceName = racdata_rvg  
           OnlineRetryLimit = 0  
           )
    
    Oracle rac_db (  
        Sid @galaxy = vrts1  
        Sid @nebula = vrts2  
        Owner = Oracle  
        Home = "/oracle/orahome"
        StartUpOpt = SRVCTLSTART
        ShutDownOpt = SRVCTLSTOP
        )
    requires group RVGgroup online local firm
    oradata_mnt requires ora_vvr_shpri
    rac_db requires oradata_mnt
  7. Save and close the main.cf file.

  8. Use the following command to verify the syntax of the /etc/VRTSvcs/conf/config/main.cf file:

      # hacf -verify /etc/VRTSvcs/conf/config
    					
  9. Stop and restart VCS.

    # hastop -all -force

    Wait for port h to stop on all nodes, and then restart VCS with the new configuration on all primary nodes:

    # hastart