0% found this document useful (0 votes)
40 views3 pages

Cluster Commands

The document provides commands to manage the Oracle Clusterware and check the status of its components. It includes commands to enable or disable auto-restart of CRS, stop and start CRS, find the cluster name, OCR and voting disk locations, cluster interconnect details, and check component statuses. It also provides commands to backup and restore OCR, replace the voting disk, and get node and interface information.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

Cluster Commands

The document provides commands to manage the Oracle Clusterware and check the status of its components. It includes commands to enable or disable auto-restart of CRS, stop and start CRS, find the cluster name, OCR and voting disk locations, cluster interconnect details, and check component statuses. It also provides commands to backup and restore OCR, replace the voting disk, and get node and interface information.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Enable/Disable autorestart of CRS

---------------------------------

-- Run as root user(

$GRID_HOME/bin/crsctl enable crs

CRS-4622: Oracle High Availability Services autostart is enabled.

$GRID_HOME/bin/crsctl disable crs

CRS-4621: Oracle High Availability Services autostart is disabled.

Find the cluster name in RAC


----------------------------

$GRID_HOME/bin/cemutlo -n
or
$GRID_HOME/bin/olsnodes-c

Stop and start CRS


-------------------

-- stop crs ( run from root)

$GRID_HOME/bin/crsctl stop crs

-- start crs( run from root)

$GRID_HOME/bin/crsctl start crs

Find OCR and VD location


------------------------

-- Find voting disk location

$GRID_HOME/bin/crsctl query css votedisk

-- Find OCR location.

$GRID_HOME/bin/ocrcheck

Find the grid version


---------------------

SYNTAX - $GRID_HOME/bin/crsctl query crs softwareversion

$GRID_HOME/bin/crsctl query crs softwareversion host-dbaclass1

Check cluster component status


------------------------------

$GRID_HOME/bin/crsctl stat res -t


$GRID_HOME/bin/crsctl check crs
$GRID_HOME/bin/crsctl check cssd
$GRID_HOME/bin/crsctl check crsd
$GRID_HOME/bin/crsctl check evmd
Get cluster_interconnect details
--------------------------------

$GRID_HOME/bin/oifcfg getif
app-ipmp0 172.21.39.128 global public
loypredbib0 172.16.3.192 global cluster_interconnect
loypredbib1 172.16.4.0 global cluster_interconnect

select NAME,IP_ADDRESS from v$cluster_interconnects;

NAME IP_ADDRESS
--------------- ----------------
loypredbib0 172.16.3.193
Loypredbib1 172.16.4.1

Manual backup of OCR and list backups


-------------------------------------

-- List down the backups of OCR

$GRID_HOME/bin/ocrconfig -showbackup

-- Take manual OCR backup

$GRID_HOME/bin/ocrconfig -manualbackup

Move voting disk to new diskgroup


---------------------------------

$GRID_HOME/bin/crsctl replace votedisk +NEW_DG

Check the status using below command.


-------------------------------------

$GRID_HOME/bin/crsctl query css votedisk

Get disk timeout values


------------------------

-- Disk timeout from node to voting disk(disktimeout)

crsctl get css disktimeout

CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services.

-- Network latency in the node interconnect (Misscount)

crsctl get css misscount

CRS-4678: Successful get misscount 30 for Cluster Synchronization Services.

Get node info using olsnodes


----------------------------

-- List of nodes in the cluster

olsnodes
-- Nodes with node number

olsnodes -n

-- Node with vip

olsnodes -i
olsnodes -s -t

-- Leaf or Hub

olsnodes -a

-- Getting private ip details of the local node

olsnodes -l -p

-- Get cluster name

olsnodes -c

Get interface info in RAC

oifcfg iflist -p -n

backup0 172.21.56.0 PRIVATE 255.255.254.0


cdnet0 162.168.1.0 PRIVATE 255.255.255.0
cdnet0 169.254.0.0 PUBLIC 255.255.128.0
cdnet1 162.168.2.0 PRIVATE 255.255.255.0
cdnet1 169.254.128.0 PUBLIC 255.255.128.0
pap-ipmp0 172.20.179.128 PUBLIC 255.255.255.128
tan-ipmp0 172.20.128.0 PRIVATE 255.255.252.0
dppp0 162.168.224.0 PRIVATE 255.255.255.0

Get OLR info in RAC

-- OLR(ORACLE LOCAL REGISTRY)


-- Get current OLR location:(run from root only)

$GRID_HOME/bin/ocrcheck -local

-- List the OLR backups:

$GRID_HOME/bin/ocrconfig -local -showbackup

-- Take manual OLR backup:

$GRID_HOME/bin/ocrconfig -local -manualbackup

You might also like