3.2、迁移OCR文件
先检查一下当前OCR文件,可知当前OCR文件存放于DATA磁盘组上
[root@srcbdb1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2936
Available space (kbytes) : 259184
ID : 894939142
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 succeeded
新增一个OCR文件到SFRA磁盘组:
[root@srcbdb1 ~]# ocrconfig -add '+SFRA'
[root@srcbdb1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2936
Available space (kbytes) : 259184
ID : 894939142
Device/File Name : +SFRA
Device/File integrity check succeeded
Device/File Name : +DATA
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
然后从DATA磁盘组中删除OCR文件
[root@srcbdb1 ~]# ocrconfig -delete '+DATA'
[root@srcbdb1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2936
Available space (kbytes) : 259184
ID : 894939142
Device/File Name : +SFRA
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 succeeded
3.3、迁移VOTE文件
查看当前votedisk的位置
[root@srcbdb2 ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 0524c6e01d244f52bf755b2d6565f576 (/dev/iscsi/11gdisk21) [DATA]
Located 3 voting disk(s).
停止节点1(其中一个即可)上的crs:
[root@srcbdb1 ~]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.crsd' on 'srcbdb1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.SFRA.dg' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.srcbdb1.vip' on 'srcbdb1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'srcbdb1'
CRS-2677: Stop of 'ora.scan1.vip' on 'srcbdb1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'srcbdb2'
CRS-2677: Stop of 'ora.srcbdb1.vip' on 'srcbdb1' succeeded
CRS-2672: Attempting to start 'ora.srcbdb1.vip' on 'srcbdb2'
CRS-2677: Stop of 'ora.registry.acfs' on 'srcbdb1' succeeded
CRS-2676: Start of 'ora.scan1.vip' on 'srcbdb2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb2'
CRS-2676: Start of 'ora.srcbdb1.vip' on 'srcbdb2' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.SFRA.dg' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'srcbdb1'
CRS-2677: Stop of 'ora.asm' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'srcbdb1'
CRS-2677: Stop of 'ora.ons' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'srcbdb1'
CRS-2677: Stop of 'ora.net1.network' on 'srcbdb1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'srcbdb1' has completed
CRS-2677: Stop of 'ora.crsd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.evmd' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.asm' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'srcbdb1'
CRS-2677: Stop of 'ora.asm' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'srcbdb1'
CRS-2677: Stop of 'ora.evmd' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'srcbdb1'
CRS-2677: Stop of 'ora.cssd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.crf' on 'srcbdb1'
CRS-2677: Stop of 'ora.crf' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'srcbdb1'
CRS-2677: Stop of 'ora.gipcd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'srcbdb1'
CRS-2677: Stop of 'ora.gpnpd' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.diskmon' on 'srcbdb1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'srcbdb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@srcbdb1 ~]#
