[oracle@oraracn1 bin]$ ./crsctl check crs -all
Parse error:
'-all' is an invalid argument
Brief usage:
crsctl check crs
Check status of OHAS and CRS stack
crsctl check cluster [[-all]|[-n <server>[...]]]
Check status of CRS stack
crsctl check ctss
Check status of Cluster Time Synchronization Services
crsctl check resource {<resName> [...]|-w <filter>} [-n <server>] [-k <cid>] [-d <did>]
Check status of resources
crsctl check css
Check status of Cluster Synchronization Services
crsctl check evm
Check status of Event Manager
For complete usage, use:
crsctl [-h | --help]
For detailed help on each command and object and its options use:
crsctl <command> <object> -h For example, crsctl relocate resource -h
================================================================================
[oracle@oraracn1 bin]$ ./crsctl relocate resource -h
Usage:
crsctl relocate resource {<resName> [-k <cid>]| {resName|-all} -s <server>|-w <filter>} [-n <server>] [-env "env1=val1,env2=val2,..."] [-f] [-i]
Relocate designated resources
where
resName Resource named resource
-all Relocate all resources
-s Source server
-w Resource filter
-n Destination server
-k Cardinality ID
-env Attribute overrides for this command
-f Force option
-i Fail if request cannot be processed immediately
[oracle@oraracn1 bin]$ .
=============================================================================================
[oracle@oraracn1 bin]$ ./crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[oracle@oraracn1 bin]$
=========================================================================
[oracle@oraracn1 bin]$ crsctl check cluster
-bash: crsctl: command not found
[oracle@oraracn1 bin]$ ./crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
=========================================================================
[oracle@oraracn1 bin]$ ./crsctl check cluster -all
**************************************************************
oraracn1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
oraracn2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
[oracle@oraracn1 bin]$
==============================================================================
[oracle@oraracn1 bin]$ ./crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
[oracle@oraracn1 bin]$ ./crsctl check css
CRS-4529: Cluster Synchronization Services is online
[oracle@oraracn1 bin]$ ./crsctl check evm
CRS-4533: Event Manager is online
[oracle@oraracn1 bin]$
==================================================
Doubts to be asked in RAC.
What is resource ? how to get list of resources?
[oracle@oraracn1 bin]$ ./crsctl check resource
Parse error:
Missing additional arguments
Usage:
crsctl check resource {<resName> [...]|-w <filter>} [-n <server>] [-k <cid>] [-d <did>]
Check status of resources
where
resName [...] One or more blank-separated resource names
-w Resource filter
-n Server name
-k Resource cardinality ID
-d Resource degree ID
[oracle@oraracn1 bin]$
[oracle@oraracn1 bin]$ ./crsctl check cluster -n oraracn1,oraracn2
CRS-4037: The name 'oraracn1,oraracn2' contains the following invalid characters: ','
CRS-4000: Command Check failed, or completed with errors.
[oracle@oraracn1 bin]$ ./crsctl check cluster -n oraracn1 oraracn2
**************************************************************
oraracn1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
oraracn2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
[oracle@oraracn1 bin]$
[oracle@oraracn1 bin]$ ./crsctl check cluster -n oraracn2
**************************************************************
oraracn2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
[oracle@oraracn1 bin]$
===========================================================
[oracle@oraracn1 bin]$ ./crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
ora.LISTENER.lsnr
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
ora.asm
ONLINE ONLINE oraracn1 Started
ONLINE ONLINE oraracn2 Started
ora.gsd
OFFLINE OFFLINE oraracn1
OFFLINE OFFLINE oraracn2
ora.net1.network
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
ora.ons
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE oraracn1
ora.cvu
1 ONLINE ONLINE oraracn1
ora.oc4j
1 ONLINE ONLINE oraracn1
ora.oraracn1.vip
1 ONLINE ONLINE oraracn1
ora.oraracn2.vip
1 ONLINE ONLINE oraracn2
ora.scan1.vip
1 ONLINE ONLINE oraracn1
[oracle@oraracn1 bin]$
[oracle@oraracn1 bin]$ ./crsctl status server -f
NAME=oraracn1
STATE=ONLINE
ACTIVE_POOLS=Free
STATE_DETAILS=
NAME=oraracn2
STATE=ONLINE
ACTIVE_POOLS=Free
STATE_DETAILS=
[oracle@oraracn1 bin]$
to be remembered , U cant stop has (high availability services) unless u are root user.
[oracle@oraracn1 bin]$ olsnodes -n
-bash: olsnodes: command not found
[oracle@oraracn1 bin]$ ./crsctl stop has
CRS-4563: Insufficient user privileges.
CRS-4000: Command Stop failed, or completed with errors.
[oracle@oraracn1 bin]$ su - root
Password:
[root@oraracn1 ~]# cd /u01/app/11.2.0/grid/
[root@oraracn1 grid]# cd bin/
[root@oraracn1 bin]# ls -ltr crsctl
-rwxr-xr-x 1 root oinstall 8578 Aug 1 06:41 crsctl
[root@oraracn1 bin]#
[root@oraracn1 bin]# ./crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oraracn1'
CRS-2673: Attempting to stop 'ora.crsd' on 'oraracn1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'oraracn1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.cvu' on 'oraracn1'
CRS-2677: Stop of 'ora.cvu' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'oraracn2'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'oraracn1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.oraracn1.vip' on 'oraracn1'
CRS-2676: Start of 'ora.cvu' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.scan1.vip' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'oraracn2'
CRS-2677: Stop of 'ora.oraracn1.vip' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.oraracn1.vip' on 'oraracn2'
CRS-2676: Start of 'ora.scan1.vip' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'oraracn2'
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'oraracn2' succeeded
CRS-2676: Start of 'ora.oraracn1.vip' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.CRS.dg' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'oraracn1'
CRS-2677: Stop of 'ora.oc4j' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'oraracn2'
CRS-2677: Stop of 'ora.asm' on 'oraracn1' succeeded
CRS-2676: Start of 'ora.oc4j' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'oraracn1'
CRS-2677: Stop of 'ora.ons' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'oraracn1'
CRS-2677: Stop of 'ora.net1.network' on 'oraracn1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'oraracn1' has completed
CRS-2677: Stop of 'ora.crsd' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.evmd' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.asm' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'oraracn1'
CRS-2677: Stop of 'ora.crf' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.asm' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'oraracn1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'oraracn1'
CRS-2677: Stop of 'ora.cssd' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'oraracn1'
CRS-2677: Stop of 'ora.gipcd' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'oraracn1'
CRS-2677: Stop of 'ora.gpnpd' on 'oraracn1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oraracn1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@oraracn1 bin]#
if cluster is down on the node where u are firing commands , even though cluster is running on other node it doesnt output of other node cluster details becuase cluster itself down
[root@oraracn1 bin]# ./crsctl status resource -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
[root@oraracn1 bin]#
[oracle@oraracn2 bin]$ ./crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE oraracn2
ora.LISTENER.lsnr
ONLINE ONLINE oraracn2
ora.asm
ONLINE ONLINE oraracn2 Started
ora.gsd
OFFLINE OFFLINE oraracn2
ora.net1.network
ONLINE ONLINE oraracn2
ora.ons
ONLINE ONLINE oraracn2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE oraracn2
ora.cvu
1 ONLINE ONLINE oraracn2
ora.oc4j
1 ONLINE ONLINE oraracn2
ora.oraracn1.vip
1 ONLINE INTERMEDIATE oraracn2 FAILED OVER
ora.oraracn2.vip
1 ONLINE ONLINE oraracn2
ora.scan1.vip
1 ONLINE ONLINE oraracn2
[oracle@oraracn2 bin]$
[oracle@oraracn2 bin]$ ./crsctl status server -f
NAME=oraracn2
STATE=ONLINE
ACTIVE_POOLS=Free
STATE_DETAILS=
[oracle@oraracn2 bin]$
[root@oraracn2 bin]# ./crsctl stop cluster
CRS-2673: Attempting to stop 'ora.crsd' on 'oraracn2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'oraracn2'
CRS-2673: Attempting to stop 'ora.cvu' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.oc4j' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.oraracn2.vip' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'oraracn2'
CRS-2677: Stop of 'ora.cvu' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'oraracn2'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.oraracn2.vip' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.oraracn1.vip' on 'oraracn2'
CRS-2677: Stop of 'ora.scan1.vip' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.oraracn1.vip' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.CRS.dg' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'oraracn2'
CRS-2677: Stop of 'ora.asm' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'oraracn2'
CRS-2677: Stop of 'ora.ons' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'oraracn2'
CRS-2677: Stop of 'ora.net1.network' on 'oraracn2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'oraracn2' has completed
CRS-2677: Stop of 'ora.crsd' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.evmd' on 'oraracn2'
CRS-2673: Attempting to stop 'ora.asm' on 'oraracn2'
CRS-2677: Stop of 'ora.evmd' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.asm' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'oraracn2'
CRS-2677: Stop of 'ora.ctssd' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'oraracn2'
CRS-2677: Stop of 'ora.cssd' on 'oraracn2' succeeded
[root@oraracn2 bin]#
in the node we had entered "./crsctl stop cluster" , aftering following command I get message as below
[root@oraracn2 bin]# ./crsctl start has
CRS-4640: Oracle High Availability Services is already active
CRS-4000: Command Start failed, or completed with errors.
[root@oraracn2 bin]#
=========================================
[root@oraracn1 bin]# ./crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oraracn1'
CRS-2673: Attempting to stop 'ora.crsd' on 'oraracn1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'oraracn1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.cvu' on 'oraracn1'
CRS-2677: Stop of 'ora.cvu' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'oraracn2'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'oraracn1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.oraracn1.vip' on 'oraracn1'
CRS-2676: Start of 'ora.cvu' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.scan1.vip' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'oraracn2'
CRS-2677: Stop of 'ora.oraracn1.vip' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.oraracn1.vip' on 'oraracn2'
CRS-2676: Start of 'ora.scan1.vip' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'oraracn2'
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'oraracn2' succeeded
CRS-2676: Start of 'ora.oraracn1.vip' on 'oraracn2' succeeded
CRS-2677: Stop of 'ora.CRS.dg' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'oraracn1'
CRS-2677: Stop of 'ora.oc4j' on 'oraracn1' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'oraracn2'
CRS-2677: Stop of 'ora.asm' on 'oraracn1' succeeded
CRS-2676: Start of 'ora.oc4j' on 'oraracn2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'oraracn1'
CRS-2677: Stop of 'ora.ons' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'oraracn1'
CRS-2677: Stop of 'ora.net1.network' on 'oraracn1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'oraracn1' has completed
CRS-2677: Stop of 'ora.crsd' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.evmd' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.asm' on 'oraracn1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'oraracn1'
CRS-2677: Stop of 'ora.crf' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'oraracn1' succeeded
CRS-2677: Stop of 'ora.asm' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'oraracn1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'oraracn1'
CRS-2677: Stop of 'ora.cssd' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'oraracn1'
CRS-2677: Stop of 'ora.gipcd' on 'oraracn1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'oraracn1'
CRS-2677: Stop of 'ora.gpnpd' on 'oraracn1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oraracn1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@oraracn1 bin]# ./crsctl status resource -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
I had entered , ./crsctl stop has after entering following command I got message as below.
[root@oraracn1 bin]# ./crsctl start has
CRS-4123: Oracle High Availability Services has been started.
[root@oraracn1 bin]#
=====================================================
[root@oraracn1 bin]# ./crsctl status server
NAME=oraracn1
STATE=ONLINE
[root@oraracn1 bin]# ./crsctl status server -f
NAME=oraracn1
STATE=ONLINE
ACTIVE_POOLS=Free
STATE_DETAILS=
[root@oraracn1 bin]# ./crsctl resource -t
Usage: crsctl <command> <object> [<options>]
command: enable|disable|config|start|stop|relocate|replace|status|add|delete|modify|getperm|setperm|check|set|get|unset|debug|lsmodules|query|pin|unpin|discover|release|request
For complete usage, use:
crsctl [-h | --help]
For detailed help on each command and object and its options use:
crsctl <command> <object> -h e.g. crsctl relocate resource -h
[root@oraracn1 bin]# ./crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE oraracn1
ora.LISTENER.lsnr
ONLINE ONLINE oraracn1
ora.asm
ONLINE ONLINE oraracn1 Started
ora.gsd
OFFLINE OFFLINE oraracn1
ora.net1.network
ONLINE ONLINE oraracn1
ora.ons
ONLINE ONLINE oraracn1
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE oraracn1
ora.cvu
1 ONLINE ONLINE oraracn1
ora.oc4j
1 ONLINE ONLINE oraracn1
ora.oraracn1.vip
1 ONLINE ONLINE oraracn1
ora.oraracn2.vip
1 ONLINE INTERMEDIATE oraracn1 FAILED OVER
ora.scan1.vip
===================================================================================
[root@oraracn2 bin]# ./crsctl start cluster
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'oraracn2'
CRS-2676: Start of 'ora.cssdmonitor' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'oraracn2'
CRS-2672: Attempting to start 'ora.diskmon' on 'oraracn2'
CRS-2676: Start of 'ora.diskmon' on 'oraracn2' succeeded
CRS-2676: Start of 'ora.cssd' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'oraracn2'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'oraracn2'
CRS-2676: Start of 'ora.ctssd' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'oraracn2'
CRS-2676: Start of 'ora.evmd' on 'oraracn2' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'oraracn2'
CRS-2676: Start of 'ora.asm' on 'oraracn2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'oraracn2'
CRS-2676: Start of 'ora.crsd' on 'oraracn2' succeeded
[root@oraracn2 bin]# ./crsctl start has
CRS-4640: Oracle High Availability Services is already active
CRS-4000: Command Start failed, or completed with errors.
[root@oraracn2 bin]#
[root@oraracn2 bin]# ./crsctl status server -f
NAME=oraracn1
STATE=ONLINE
ACTIVE_POOLS=Free
STATE_DETAILS=
NAME=oraracn2
STATE=ONLINE
ACTIVE_POOLS=Free
STATE_DETAILS=
[root@oraracn2 bin]#
[root@oraracn2 bin]# ./crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
ora.LISTENER.lsnr
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
ora.asm
ONLINE ONLINE oraracn1 Started
ONLINE ONLINE oraracn2 Started
ora.gsd
OFFLINE OFFLINE oraracn1
OFFLINE OFFLINE oraracn2
ora.net1.network
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
ora.ons
ONLINE ONLINE oraracn1
ONLINE ONLINE oraracn2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE oraracn1
ora.cvu
1 ONLINE ONLINE oraracn1
ora.oc4j
1 ONLINE ONLINE oraracn1
ora.oraracn1.vip
1 ONLINE ONLINE oraracn1
ora.oraracn2.vip
1 ONLINE ONLINE oraracn2
ora.scan1.vip
1 ONLINE ONLINE oraracn1
[root@oraracn2 bin]#
oracleasm createdisk RMANVOL1 /dev/sdb4
oracleasm createdisk RMANVOL2 /dev/sdb5
oracleasm createdisk RMANVOL1 /dev/sdb8
oracleasm createdisk RMANVOL2 /dev/sdb9
oracleasm scandisks
oracleasm listdisks
oracleasm should be executed as root
[oracle@oraracn2 ~]$ oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
/usr/lib/oracleasm/oracleasm-Xshlib: line 182: /var/log/oracleasm: Permission denied
[oracle@oraracn2 ~]$ su - root
Password:
[root@oraracn2 ~]#
========
[root@oraracn1 ~]# oracleasm createdisk RMANVOL1 /dev/sdb4
Unable to query file "/dev/sdb4": No such file or directory
[root@oraracn1 ~]# oracleasm createdisk RMANVOL1 /dev/sdb5
Device "/dev/sdb5" is already labeled for ASM disk "CRS1"
[root@oraracn1 ~]# oracleasm createdisk RMANVOL1 /dev/sdb6
Device "/dev/sdb6" is already labeled for ASM disk "DATA1"
[root@oraracn1 ~]# oracleasm createdisk RMANVOL1 /dev/sdb7
Device "/dev/sdb7" is already labeled for ASM disk "FRA1"
[root@oraracn1 ~]# oracleasm createdisk RMANVOL1 /dev/sdb8
Writing disk header: done
Instantiating disk: done
[root@oraracn1 ~]# oracleasm createdisk RMANVOL2 /dev/sdb9
Writing disk header: done
Instantiating disk: done
[root@oraracn1 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@oraracn1 ~]# oracleasm listdisks
CRS1
DATA1
FRA1
RMANVOL1
RMANVOL2
[root@oraracn1 ~]#
[root@oraracn1 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@oraracn1 ~]#
[root@oraracn2 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "RMANVOL1"
Instantiating disk "RMANVOL2"
[root@oraracn2 ~]#
[root@oraracn1 ~]# oracleasm listdisks
CRS1
DATA1
FRA1
RMANVOL1
RMANVOL2
[root@oraracn1 ~]#
/dev/sdb8 1963 2616 5253223+ 83 Linux
/dev/sdb9 2617 3270 5253223+ 83 Linux
SQL>
CREATE DISKGROUP RMANVOL NORMAL REDUNDANCY FAILGROUP failgrp1 DISK '/dev/sdb8' FAILGROUP failgrp2 DISK '/dev/sdb9';
CREATE DISKGROUP RMANVOL NORMAL REDUNDANCY FAILGROUP failgrp1 DISK '/dev/sdb8' NAME RMANVOL1 FAILGROUP failgrp2 DISK '/dev/sdb9' NAME RMANVOL2;
CREATE DISKGROUP TEST NORMAL REDUNDANCY
FAILGROUP controller1 DISK
'/dev/rhdiskpower8'
FAILGROUP controller2 DISK
'/dev/rhdiskpower9' ;
SQL> CREATE DISKGROUP RMANVOL NORMAL REDUNDANCY FAILGROUP failgrp1 DISK '/dev/sdb8' FAILGROUP failgrp2 DISK '/dev/sdb9';
CREATE DISKGROUP RMANVOL NORMAL REDUNDANCY FAILGROUP failgrp1 DISK '/dev/sdb8' FAILGROUP failgrp2 DISK '/dev/sdb9'
*
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/sdb9' matches no disks
ORA-15025: could not open disk "/dev/sdb9"
ORA-15056: additional error message
Linux-x86_64 Error: 13: Permission denied
Additional information: 42
Additional information: -1961632800
ORA-15031: disk specification '/dev/sdb8' matches no disks
ORA-15025: could not open disk "/dev/sdb8"
ORA-15056: additional error message
Linux-x86_64 Error: 13: Permission denied
Additional information: 42
Additional information: -1961632800
No comments:
Post a Comment