龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 数据库类 > Oracle 技术 >

解析OCR与Voting Disk以及其管理(1)(2)

时间:2011-04-12 23:18来源:未知 作者:admin 点击:
分享到:
添加OCR镜像: [root@rhel1bin]#touch/u01/ocfs2fs/ocr2 [root@rhel1bin]#./ocrconfig-replaceocrmirror/u01/ocfs2fs/ocr2 [root@rhel1bin]#./ocrcheck StatusofOracleClusterRegistryisasfollows: Version:2 Tot

添加OCR镜像:

  1. [root@rhel1 bin]# touch /u01/ocfs2fs/ocr2  
  2.  
  3. [root@rhel1 bin]#./ocrconfig -replace ocrmirror /u01/ocfs2fs/ocr2   
  4.  
  5. [root@rhel1 bin]#./ocrcheck   
  6.  
  7. Status of Oracle Cluster Registry is as follows :   
  8.  
  9. Version : 2  
  10.  
  11. Total space (kbytes) : 262120   
  12.  
  13. Used space (kbytes) : 2756   
  14.  
  15. Available space (kbytes) : 259364   
  16.  
  17. ID : 2062708016   
  18.  
  19. Device/File Name : /u01/ocfs2fs/ocr   
  20.  
  21. Device/File integrity check succeeded   
  22.  
  23. Device/File Name : /u01/ocfs2fs/ocr2   
  24.  
  25. Device/File integrity check succeeded   
  26.  
  27. Cluster registry integrity check succeeded  

注意:add ocr可以是在线完成。

删除OCR镜像:

  1. [root@rhel1 bin]#./ocrconfig -replace ocrmirror   
  2.  
  3. [root@rhel1 bin]#./ocrcheck   
  4.  
  5. Status of Oracle Cluster Registry is as follows :   
  6.  
  7. Version : 2   
  8.  
  9. Total space (kbytes) : 262120   
  10.  
  11. Used space (kbytes) : 2756   
  12.  
  13. Available space (kbytes) : 259364   
  14.  
  15. ID : 2062708016   
  16.  
  17. Device/File Name : /u01/ocfs2fs/ocr   
  18.  
  19. Device/File integrity check succeeded   
  20.  
  21. Device/File not configured   
  22.  
  23. Cluster registry integrity check succeeded   
  24.  
  25. [root@rhel1 bin]#cat /etc/oracle/ocr.loc   
  26.  
  27. #Device/file /u01/ocfs2fs/ocr2 being deleted   
  28.  
  29. ocrconfig_loc=/u01/ocfs2fs/ocr 

删除Voting Disk:

  1. [root@rhel1 bin]#./crsctl delete css votedisk /u01/ocfs2fs/vdisk2   
  2.  
  3. Cluster is not in a ready state for online disk removal   
  4.  
  5. [root@rhel1 bin]#./crsctl stop crs   
  6.  
  7. Stopping resources. This could take several minutes.   
  8.  
  9. Successfully stopped CRS resources.   
  10.  
  11. Stopping CSSD.   
  12.  
  13. Shutting down CSS daemon.   
  14.  
  15. Shutdown request successfully issued.   
  16.  
  17. [root@rhel1 bin]# ./crsctl delete css votedisk /u01/ocfs2fs/vdisk2  
  18.  
  19. Cluster is not in a ready state for online disk removal   
  20.  
  21. [root@rhel1 bin]#./crsctl delete css votedisk /u01/ocfs2fs/vdisk2-force  
  22.  
  23. successful deletion of votedisk /u01/ocfs2fs/vdisk2.  
  24.  
  25. [root@rhel1 bin]#./crsctl query css votedisk   
  26.  
  27. 0. 0 /u01/ocfs2fs/vdisk   
  28.  
  29. located 1 votedisk(s). 

精彩图集

赞助商链接