环境:redhat6.5 oracle11.2.0.3两节点RAC
本实验将ocr/votedisk/asm spfile所在磁盘组迁移到另外一个磁盘组
[grid@hp580-5 ~]$ asmcmd
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED NORMAL N 512 4096 1048576 1536000 1418049 512000 453024 0 Y DATA/
MOUNTED EXTERN N 512 4096 1048576 512000 504395 0 504395 0 N FRA/
MOUNTED EXTERN N 512 4096 1048576 512000 511901 0 511901 0 N SYS/
ASMCMD> exit
[grid@hp580-5 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 2994b1890e944fc7bf13744a8c98f5ea (/dev/asm-diskc) [DATA]
2. ONLINE 0e8b5764cd5a4fb6bf74fe7058745670 (/dev/asm-diskd) [DATA]
3. ONLINE 62a1876953964f16bff300704a04717a (/dev/asm-diske) [DATA]
Located 3 voting disk(s).
[grid@hp580-5 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2972
Available space (kbytes) : 259148
ID : 1794026097
Device/File Name : +DATA
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged user
[grid@hp580-5 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Mon Mar 9 15:52:41 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> connect / as sysdba
Connected.
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string +DATA/hp580-cluster/asmparamet
erfile/registry.253.854119569
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@hp580-5 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE hp580-4
ONLINE ONLINE hp580-5
ora.FRA.dg
ONLINE ONLINE hp580-4
ONLINE ONLINE hp580-5
ora.LISTENER.lsnr
ONLINE ONLINE hp580-4
ONLINE ONLINE hp580-5
ora.SYS.dg
ONLINE ONLINE hp580-4
ONLINE ONLINE hp580-5
ora.asm
ONLINE ONLINE hp580-4 Started
ONLINE ONLINE hp580-5 Started
ora.gsd
OFFLINE OFFLINE hp580-4
OFFLINE OFFLINE hp580-5
ora.net1.network
ONLINE ONLINE hp580-4
ONLINE ONLINE hp580-5
ora.ons
ONLINE ONLINE hp580-4
ONLINE ONLINE hp580-5
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE hp580-5
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE hp580-4
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE hp580-4
ora.cvu
1 ONLINE ONLINE hp580-4
ora.hp580-4.vip
1 ONLINE ONLINE hp580-4
ora.hp580-5.vip
1 ONLINE ONLINE hp580-5
ora.oc4j
1 ONLINE ONLINE hp580-4
ora.orcl.db
1 ONLINE ONLINE hp580-4 Open
2 ONLINE ONLINE hp580-5 Open
ora.scan1.vip
1 ONLINE ONLINE hp580-5
ora.scan2.vip
1 ONLINE ONLINE hp580-4
ora.scan3.vip
1 ONLINE ONLINE hp580-4
[grid@hp580-5 ~]$ ocrconfig -add +sys
PROT-20: Insufficient permission to proceed. Require privileged user
[grid@hp580-5 ~]$ echo $ORACLE_HOME
/g01/app/11.2.0/grid
[grid@hp580-5 ~]$ exit
logout
[root@hp580-5 dev]# cd /g01/app/11.2.0/grid/bin
[root@hp580-5 bin]# ./ocrconfig -add +sys
[root@hp580-5 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2972
Available space (kbytes) : 259148
ID : 1794026097
Device/File Name : +DATA
Device/File integrity check succeeded
Device/File Name : +sys
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@hp580-5 bin]# ./crsctl replace votedisk +sys
Successful addition of voting disk 1600c0ff5c084fa9bf2bb00d1381d589.
Successful deletion of voting disk 2994b1890e944fc7bf13744a8c98f5ea.
Successful deletion of voting disk 0e8b5764cd5a4fb6bf74fe7058745670.
Successful deletion of voting disk 62a1876953964f16bff300704a04717a.
Successfully replaced voting disk group with +sys.
CRS-4266: Voting file(s) successfully replaced
[root@hp580-5 bin]# ./ocrconfig -delete +data
[root@hp580-5 bin]# su - grid
[grid@hp580-5 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2972
Available space (kbytes) : 259148
ID : 1794026097
Device/File Name : +sys
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged user
[grid@hp580-5 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1600c0ff5c084fa9bf2bb00d1381d589 (/dev/asm-diskg) [SYS]
Located 1 voting disk(s).
SQL> connect / as sysdba
Connected.
SQL> create pfile='/tmp/pfile.ora' from spfile;
SQL> create spfile='+SYS' from pfile='/tmp/pfile.ora';
File created.
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string +DATA/hp580-cluster/asmparamet
erfile/registry.253.854119569
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[root@hp580-5 bin]# ./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hp580-5'
CRS-2673: Attempting to stop 'ora.crsd' on 'hp580-5'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'hp580-5'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.SYS.dg' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.orcl.db' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'hp580-5'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.hp580-5.vip' on 'hp580-5'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'hp580-5'
CRS-2677: Stop of 'ora.hp580-5.vip' on 'hp580-5' succeeded
CRS-2672: Attempting to start 'ora.hp580-5.vip' on 'hp580-4'
CRS-2677: Stop of 'ora.scan1.vip' on 'hp580-5' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'hp580-4'
CRS-2677: Stop of 'ora.orcl.db' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'hp580-5'
CRS-2676: Start of 'ora.hp580-5.vip' on 'hp580-4' succeeded
CRS-2676: Start of 'ora.scan1.vip' on 'hp580-4' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'hp580-4'
CRS-2677: Stop of 'ora.FRA.dg' on 'hp580-5' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'hp580-4' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.SYS.dg' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hp580-5'
CRS-2677: Stop of 'ora.asm' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'hp580-5'
CRS-2677: Stop of 'ora.ons' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'hp580-5'
CRS-2677: Stop of 'ora.net1.network' on 'hp580-5' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'hp580-5' has completed
CRS-2677: Stop of 'ora.crsd' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.ctssd' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.evmd' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.asm' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hp580-5'
CRS-2677: Stop of 'ora.crf' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.evmd' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.asm' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hp580-5'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hp580-5'
CRS-2677: Stop of 'ora.cssd' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hp580-5'
CRS-2677: Stop of 'ora.gipcd' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hp580-5'
CRS-2677: Stop of 'ora.gpnpd' on 'hp580-5' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hp580-5' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@hp580-5 bin]#
[root@hp580-5 bin]# ./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[root@hp580-5 bin]# su - grid
[grid@hp580-5 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Mon Mar 9 16:26:53 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> connect / as sysdba
Connected.
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string +SYS/hp580-cluster/asmparamete
rfile/registry.253.873908213
SQL>
重起另一个节点的crs即OK
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26870952/viewspace-1453727/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26870952/viewspace-1453727/