您的位置:首页 > 其它

OCR和VD的转移

2016-01-12 18:18 148 查看
添加磁盘组TMP:
[root@rac1 bin]# ./ocrconfig -add +TMP

检查:
[root@rac1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2760
         Available space (kbytes) :     259360
         ID                       :  729466762
         Device/File Name         :    +OCRNEW
                                    Device/File integrity check succeeded
         Device/File Name         :       +TMP
                                    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

直接删掉原有磁盘组:OCRNEW
[root@rac1 bin]# ./ocrconfig -delete +OCRNEW

 检查:
[root@rac1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2760
         Available space (kbytes) :     259360
         ID                       :  729466762
         Device/File Name         :       +TMP
                                    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

检查vd:
[root@rac1 bin]# ./crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   9165379e7a5b4f6fbf83e3142e81b59e (/dev/raw/raw2) [OCRNEW]
 2. ONLINE   a672291e1df44f31bf1bdd39df0f2858 (/dev/raw/raw3) [OCRNEW]
 3. ONLINE   0b752643e4df4fc7bf580538d82e713c (/dev/raw/raw4) [OCRNEW]
Located 3 voting disk(s).

转移vd到新的磁盘组TMP:
[root@rac1 bin]# ./crsctl replace votedisk +TMP
Successful addition of voting disk 25a12cfab1d14f98bfc14d7214baed6f.
Successful deletion of voting disk 9165379e7a5b4f6fbf83e3142e81b59e.
Successful deletion of voting disk a672291e1df44f31bf1bdd39df0f2858.
Successful deletion of voting disk 0b752643e4df4fc7bf580538d82e713c.
Successfully replaced voting disk group with +TMP.
CRS-4266: Voting file(s) successfully replaced
检查vd:
[root@rac1 bin]# ./crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   25a12cfab1d14f98bfc14d7214baed6f (/dev/raw/raw7) [TMP]
Located 1 voting disk(s).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: