Ocr vote分离迁移磁盘组

准备工作:

准备好需要存放ocrvote的磁盘组。(测试时原来的磁盘组为DATA,新建磁盘组为OCRVOTE)

目的:

OCR VOTE 分离迁移磁盘组。

迁移过程

1. 查看OCR VOTE所在位置

root@rac01 grid]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
 1. ONLINE 6361809183ef4fefbf9913934580b53f (/dev/sdb) [DATA]
Located 1 voting disk(s).

[root@rac01 grid]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version : 3
         Total space (kbytes) : 262120
         Used space (kbytes) : 3124
         Available space (kbytes) : 258996
         ID : 1721738365
         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

2. 由于只有一份OCR,因此需要先创建一个OCR

[root@rac01 grid]# ocrconfig -add +ocrvote
[root@rac01 grid]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version : 3
         Total space (kbytes) : 262120
         Used space (kbytes) : 3124
         Available space (kbytes) : 258996
         ID : 1721738365
         Device/File Name : +DATA
                                    Device/File integrity check succeeded
         Device/File Name : +ocrvote
                                    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

3. 删除原来得OCR

[root@rac01 grid]# ocrconfig -delete +data
[root@rac01 grid]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version : 3
         Total space (kbytes) : 262120
         Used space (kbytes) : 3124
         Available space (kbytes) : 258996
         ID : 1721738365
         Device/File Name : +ocrvote
                                    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更换成功。

4. 转移OCR至OCRVOTE磁盘组

[root@rac01 grid]# crsctl replace votedisk +OCRVOTE
Successful addition of voting disk 154efc03773f4fb8bf78bbac5c18a2d5.
Successful deletion of voting disk 6361809183ef4fefbf9913934580b53f.
Successfully replaced voting disk group with +OCRVOTE.
CRS-4266: Voting file(s) successfully replaced
[root@rac01 grid]#
[root@rac01 grid]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
 1. ONLINE 154efc03773f4fb8bf78bbac5c18a2d5 (/dev/sdc) [OCRVOTE]
Located 1 voting disk(s).
posted @ 2023-07-14 10:15  寻梦99  阅读(32)  评论(0)    收藏  举报