CRSCTL Commands in Oracle RAC
CRSCTL Commands in Oracle RAC
CRSCTL Commands in Oracle RAC
$
-- to get help
$crsctl query crs activeversion
$crsctl query crs softwareversion [node_name]
#crsctl start crs
#crsctl stop crs
(or)
#/etc/init.d/init.crs start
#/etc/init.d/init.crs stop
#crsctl enable crs
#crsctl disable crs
(or)
#/etc/init.d/init.crs enable
#/etc/init.d/init.crs disable
$crsctl check crs
$crsctl check cluster [-node node_name] -viability of CSS across nodes
#crsctl start cluster -n HostName -- 11g R2
#crsctl stop cluster -n HostName -- 11g R2
#crsctl stop cluster -all -- 11g R2
$crsctl
$crsctl
$crsctl
$crsctl
$crsctl
check
check
check
check
check
cssd
crsd
evmd
oprocd
ctss
#/etc/init.d/init.cssd stop
#/etc/init.d/init.cssd start
#/etc/rc.d/init.d/init.evmd
#/etc/rc.d/init.d/init.cssd
#/etc/rc.d/init.d/init.crsd
#mv /etc/rc3.d/S96init.cssd /etc/rc3.d/_S96init.cssd -- to stop cssd from autostarting after reboot
#crsctl check css votedisk
#crsctl query css votedisk -- lists the voting disks used by CSS
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl
#crsctl debug statedump evm -- dumps state info for evm objects
#crsctl debug log crs [module:level]{,module:level} ...
-- Turns on debugging for CRS
#crsctl debug log crs CRSEVT:5,CRSAPP:5,CRSTIMER:5,CRSRES:5,CRSRTI:1,CRSCOMM:2
#crsctl debug log css [module:level]{,module:level} ...
-- Turns on debugging for CSS
#crsctl debug log css CSSD:1
#crsctl debug log evm [module:level]{,module:level} ...
-- Turns on debugging for EVM
#crsctl debug log evm EVMCOMM:1
#crsctl debug trace crs -- dumps CRS in-memory tracing cache
#crsctl debug trace css -- dumps CSS in-memory tracing cache
#crsctl debug trace evm -- dumps EVM in-memory tracing cache
#crsctl debug log res resource_name:level -- turns on debugging for resources
#crsctl debug log res "ora.lnx04.vip:1"
#crsctl trace all_the_above_commands -- tracing by adding a "trace" argument.
#crsctl trace check css
#crsctl backup -h
#crsctl backup css votedisk
Here is the list of the options for CRSCTL in 11gR2:
crsctl add
- add a resource, type or other entity
crsctl backup - back up voting disk for CSS
crsctl check
- check a service, resource or other entity
crsctl config - output autostart configuration
crsctl debug
- obtain or modify debug state
crsctl delete - delete a resource, type or other entity
crsctl disable - disable autostart
crsctl discover - discover DHCP server
crsctl enable - enable autostart
crsctl get
- get an entity value
crsctl getperm - get entity permissions
crsctl lsmodules - list debug modules
crsctl modify - modify a resource, type or other entity
crsctl query
- query service state
crsctl pin
- Pin the nodes in the nodelist
crsctl relocate - relocate a resource, server or other entity
crsctl replace - replaces the location of voting files
crsctl release - release a DHCP lease
crsctl request - request a DHCP lease
crsctl setperm - set entity permissions
crsctl set
- set an entity value
crsctl start
- start a resource, server or other entity
crsctl status - get status of a resource or other entity
crsctl stop
- stop a resource, server or other entity
crsctl unpin
- unpin the nodes in the nodelist
crsctl unset
- unset a entity value, restoring its default
crsctl add resource resource_name -type resource_type [-file file_path | -attr
"attribute_name=attribute_value,attribute_name=attribute_value,..."] [-i] [-f]
crsctl add resource r1 -type test_type1 -attr "PATH_NAME=/tmp/r1.txt"
crsctl add resource app.appvip -type app.appvip.type -attr "RESTART_ATTEMPTS=2,
START_TIMEOUT=100,STOP_TIMEOUT=100,CHECK_INTERVAL=10,USR_ORA_VIP=172.16.0.0,START_DE
PENDENCIES=hard(ora.net1.network)pullup(ora.net1.network),
STOP_DEPENDENCIES=hard(ora.net1.network)"
crsctl add type type_name -basetype base_type_name {-attr "ATTRIBUTE=attribute_name | -file
file_path,TYPE={string | int} [,DEFAULT_VALUE=default_value][,FLAGS=[READONLY][|REQUIRED]]"}
crsctl add type test_type1 -basetype cluster_resource -attr
"ATTRIBUTE=FOO,TYPE=integer,DEFAULT_VALUE=0"
crsctl add crs administrator -u user_name [-f]
crsctl add crs administrator -u scott
crsctl add css votedisk path_to_voting_disk [path_to_voting_disk ...] [-purge]
crsctl add css votedisk /stor/grid/ -purge
crsctl add serverpool server_pool_name {-file file_path | -attr
"attr_name=attr_value[,attr_name=attr_value[,...]]"} [-i] [-f]
crsctl add serverpool testsp -attr "MAX_SIZE=5"
crsctl add serverpool sp1 -file /tmp/sp1_attr
crsctl check cluster [-all | [-n server_name [...]]
crsctl check cluster -all
crsctl check crs
crsctl check css
crsctl check ctss -- Cluster Time Synchronization services
crsctl check evm
crsctl check resource {resource_name [...] | -w "filter" } [-n node_name] [-k cardinality_id] [-d
degree_id] }
crsctl check resource appsvip
crsctl config crs
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
delete
delete
delete
delete
delete
delete
delete
delete
delete
delete
delete
delete
get hostname
get clientid dhcp -cluname cluster_name -viptype vip_type [-vip vip_res_name] [-n node_name]
get clientid dhcp -cluname dsmjk252clr -viptype HOSTVIP -n tmjk01
get css parameter
get css disktimeout
get css ipmiaddr
get nodename
getperm resource resource_name [ {-u user_name | -g group_name} ]
getperm resource app.appvip
getperm resource app.appvip -u oracle
getperm resource app.appvip -g dba
getperm type resource_type [-u user_name] | [-g group_name]
getperm type app.appvip.type
getperm serverpool server_pool_name [-u user_name | -g group_name]
getperm serverpool sp1
crsctl lsmodules {mdns | gpnp | css | crf | crs | ctss | evm | gipc}
crsctl lsmodules evm
mdns: Multicast domain name server
gpnp: Grid Plug and Play service
css: Cluster Synchronization Services
crf: Cluster Health Monitor
crs: Cluster Ready Services
ctss: Cluster Time Synchronization Service
replace
replace
replace
replace
replace
discoverystring 'absolute_path[,...]'
discoverystring "/oracle/css1/*,/oracle/css2/*"
votedisk [+asm_disk_group | path_to_voting_disk [...]]
votedisk +diskgroup1
votedisk /mnt/nfs/disk1 /mnt/nfs/disk2
set
set
set
set
set
css
css
css
css
css
parameter value
ipmiaddr ip_address
ipmiaddr 192.0.2.244
ipmiadmin ipmi_administrator_name
ipmiadmin scott
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
crsctl
set
set
set
set
set
set
set
set
set
set
set
set
set
set
crsctl setperm
crsctl setperm
crsctl setperm
crsctl setperm
group_name}
crsctl setperm
check has
config has
disable has
enable has
query has releaseversion
query has softwareversion
start has
stop has [-f]
CLUVFY:
comp
comp
comp
comp