crsctl command line

crsctl (Cluster Ready Services Control) is used to manage and troubleshoot Oracle Cluster ware in Oracle Real Application Clusters environments

oraclesqlhigh-availabilityv1.0.0
0 stars0 downloads35 views0 comments
By fathy • Created

Code

(92 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
CRSCTL Utility is used to managed oracle clusterware resources and components.
rac command line -----crs-----------
----restart RAC---------
$GRID_HOME/bin/crsctl stop crs
$GRID_HOME/bin/crsctl start crs

-------enable and disable crs-----------
$GRID_HOME/bin/crsctl config crs
$GRID_HOME/bin/crsctl disable crs
$GRID_HOME/bin/crsctl enable crs

--------get cluster name------
$GRID_HOME/bin/cemutlo -n
###or
$GRID_HOME/bin/olsnodes -c

-----------get grid version-----
SYNATX – $GRID_HOME/bin/crsctl query crs softwareversion <hostname>

--------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


-----------voting disk location------
$GRID_HOME/bin/crsctl query css votedisk

----------OCR location------
$GRID_HOME/bin/ocrcheck

--------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


----------CRS status of local node----
crsctl check crs

---------- status of all crs resourcs---------
$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -t -init

-----------active version of cluster--------
crsctl query crs activeversion

----------Stop and start high availability service ( HAS)-------
crsctl stop has

crsctl start has

------------------Check CRS status of remote nodes--------
crsctl check cluster

crsctl check cluster -all


------------Check CRS configuation---------
crsctl config crs

crsctl get cluster configuration

-------------node roles in cluster------
crsctl get node role status -all

--------crsctl has commands for standalone grid infrastrcuture-----
crsctl check has
crsctl config has
crsctl disable has
crsctl enable has
crsctl query has releaseversion
crsctl query has softwareversion
crsctl start has
crsctl stop has

Usage Instructions

Always make sure you test the changes in a non-production (DEV/UAT) environment first before implementing them in Production.

General Comments(0)

Tip: Click on a line number in the code to add a line-specific comment

No general comments yet. Be the first to comment!