Understand & configure of Oracle Extended Clusters

Understand & configure of Oracle Extended Clusters

You can extend the Oracle RAC environment into two or more sites which each site have own storage. If one site fail then next site will take control.
It may be configured in different geographical area to act as standby site. This feature is introduced in 12.2 version of grid software.

Check the Cluster is Extended Cluster

$ crsctl get cluster extended
CRS-6579: The cluster is 'NOT EXTENDED'

Check cluster site information

crsctl query cluster site –all
Site 'crsclus' identified by '7b7b3bef4c1f5ff9ff8765bceb45433a' in state 'ENABLED',
and contains nodes 'node1,node2,node3,node4', and disks 'datadg'.

Steps to change the cluster to Extended cluster

1. Stop all the cluster service

crsctl stop cluster -all

2. On first node run the following command:

rootcrs.sh -converttoextended -firstnode -sites site_list -site site_name

3. Check the CSS(cluster synchronization service) is not running on any remote node.

crsctl check css

4. Generate the site names and the site GUIDs,

crsctl query cluster site –all

OUTPUT:
Site 'SiteA' identified by GUID '7b7b3bef4c1f5ff9ff8765bceb45433a' in state
'ONLINE' contains nodes 'node1,node2,node3', and disks 'disk1, disk2, disk3'.
Site 'SiteB' identified by GUID '23453bef4c1f5ff9ff8765bceb45433a' in state
'QUARANTINED' contains nodes 'node4, node5, node6', and disks 'disk4, disk5, disk6'.

5. Update the checkpoint with this information, and copy it to the rest of the nodes in the cluster.

6. Update the Grid Plug and Play profile and set ext_mode to TRUE:

$ cd $Grid_home/gpnp/host_name/profiles/peer
$ gpnptool getpval -p=profile.xml -prf_sq -o=temp_file // run_gpnptool_getpval()
$ gpnptool edit -p=profile.xml -asm_ext="" prf_sq=seq+1 -o=profile_ext.xml
$ gpnptool sign -p=profile_ext.xml -o=profile_ext_sign.xml
$ mv profile_ext_sign.xml profile.xml
$ gpnptool put -p=profile.xml

7. Add sites to the local configuration:

crsctl add crs site site_name -guid site_guid -local

8. Add sites to the global configuration

crsctl add crs site site_name -guid site_guid

9. Update the to-site mapping in the local configuration for this node

crsctl modify cluster site site_name –n local_host -local

10. Update the node-to-site mapping.

crsctl modify cluster site site_name –n host1, host2

11. Stop and start the Oracle High Availability Services

-- Stop the CRS service
crsctl stop crs

-- start the CRS service
crsctl start crs

12. Do the following steps on rest of all nodes in cluster.
suppose having node2 then run following step on node2 with root user.

-- node2
rootcrs.sh -converttoextended -site site_name

--node2 Check the CSS(cluster synchronization service) is not running on any remote node.
crsctl check css

--Check the information and site point * site GUIDs from previous information

--Add sites to the local configuration
crsctl add crs site site_name -guid site_guid -local

--Update the to-site mapping in the local configuration for this node
crsctl modify cluster site site_name –n local_host -local

--stop and then start the Oracle High Availability Services
crsctl stop crs
crsctl start crs

13. Finish on all nodes check the cluster

$ crsctl get cluster extended
CRS-XXXX: The cluster is 'EXTENDED'

$ crsctl query cluster site –all
Site 'crsclus' identified by '7b7b3bef4c1f5ff9ff8765bceb45433a' is 'ONLINE', and
contains nodes '', and disks ''.
Site 'ny' identified by '888b3bef4c1f5ff9ff8765bceb45433a' is 'ONLINE', and \
contains nodes 'node1,node2', and disks ''.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.