After I read otn forums. I felt curious about
"ASM resource don't start automatic after server reboot or when Oracle Cluster is started".
so, made simple testing about auto_start not equal 1
manually via srvctl.
have to change AUTO_START=1, How? (contact oracle support... Good Idea), Or... change it by manual.
- Stop asm before
AUTO_START=2 -> AUTO_START=1
- register ASM1 resource to Cluster
so, made simple testing about auto_start not equal 1
# /u01/oracle/product/crs/bin/crsctl start crs
Attempting to start Oracle Clusterware stack
The CRS stack will be started shortly
$ crs_stat -tASM1 didn't start automatic, try to manual start it:
Name Type Target State Host
------------------------------------------------------------
ora.oratest01.ASM1.asm OFFLINE OFFLINE
ora.oratest01.LISTENER_ORATEST01.lsnr ONLINE ONLINE on oratest01
ora.oratest01.gsd ONLINE ONLINE on oratest01
ora.oratest01.ons ONLINE ONLINE on oratest01
ora.oratest01.vip ONLINE ONLINE on oratest01
$ srvctl start asm -n oratest01That can start +ASM1 by manual, What's happened?
$ crs_stat -t
ora.oratest01.ASM1.asm ONLINE ONLINE on oratest01
$ /u01/oracle/product/crs/bin/crs_stat | grep NAME\= | grep asmthat showed auto_start=2: This means, after node reboot or when Oracle Clusterware is started, resources with AUTO_START=2 will need to be started
NAME=ora.oratest01.ASM1.asm
$ /u01/oracle/product/crs/bin/crs_stat -p ora.oratest01.ASM1.asm
NAME=ora.oratest01.ASM1.asm
TYPE=application
ACTION_SCRIPT=/u01/oracle/product/11.1.0/asm/bin/racgwrap
ACTIVE_PLACEMENT=0
AUTO_START=2
manually via srvctl.
have to change AUTO_START=1, How? (contact oracle support... Good Idea), Or... change it by manual.
- Stop asm before
$ srvctl stop asm -n oratest01- copy ASM1 profile, CRS_HOME/crs/public/ PATH and filename = "resource_name".cap
$ /u01/oracle/product/crs/bin/crs_stat -p ora.oratest01.ASM1.asm > /u01/oracle/product/crs/crs/public/ora.oratest01.ASM1.asm.cap- unregister ASM1 resource
$ /u01/oracle/product/crs/bin/crs_unregister ora.oratest01.ASM1.asm- Edit cap file ( AUTO_START=1)
$ /u01/oracle/product/crs/bin/crs_stat -p ora.oratest01.ASM1.asm
CRS-0210: Could not find resource 'ora.oratest01.ASM1.asm'.
$ vi /u01/oracle/product/crs/crs/public/ora.oratest01.ASM1.asm.cap
AUTO_START=2 -> AUTO_START=1
- register ASM1 resource to Cluster
$ /u01/oracle/product/crs/bin/crs_register ora.oratest01.ASM1.asm- Check and Test
$ /u01/oracle/product/crs/bin/crs_stat -p ora.oratest01.ASM1.asm
NAME=ora.oratest01.ASM1.asm
TYPE=application
ACTION_SCRIPT=/u01/oracle/product/11.1.0/asm/bin/racgwrap
ACTIVE_PLACEMENT=0
AUTO_START=1
$ su - rootSuccess... ASM automatic started after when Oracle Clusterware is started.
# /u01/oracle/product/crs/bin/crsctl stop crs
Stopping resources.
This could take several minutes.
Successfully stopped Oracle Clusterware resources
Stopping Cluster Synchronization Services.
Shutting down the Cluster Synchronization Services daemon.
Shutdown request successfully issued.
# /u01/oracle/product/crs/bin/crsctl start crs
Attempting to start Oracle Clusterware stack
The CRS stack will be started shortly
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.oratest01.ASM1.asm ONLINE ONLINE on oratest01
ora.oratest01.LISTENER_ORATEST01.lsnr ONLINE ONLINE on oratest01
ora.oratest01.gsd ONLINE ONLINE on oratest01
ora.oratest01.ons ONLINE ONLINE on oratest01
ora.oratest01.vip ONLINE ONLINE on oratest01
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21993926/viewspace-669820/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21993926/viewspace-669820/