OCR和VD的转移

添加磁盘组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).

你可能感兴趣的:(表决磁盘的移动)