oracle 10g 中如何新增與刪除votedisk映象盤

paulyibinyi發表於2010-05-17

       The Oracle Clusterware includes two important components: the voting disk and the
Oracle Cluster Registry (OCR). The voting disk is a file that manages information
about node membership and the OCR is a file that manages cluster and Oracle Real
Application Clusters (Oracle RAC) database configuration information

     我們可以看出votedisk盤起的是管理節點成員作用,即仲裁盤,ocr盤記錄的是每個節點成員上的資訊,即資源

比如gsd,ons,vip,listener,asm,database等

    以下實驗為新增與刪除votedisk映象盤的步驟:

第一:新增votedisk映象盤,建議至少三個

1.查votedisk盤

[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl query css votedisk
 0.     0    /dev/rvotelv
located 1 votedisk(s).

2.從共享vg上建立共享lv vote2_lv

   chown oracle:dba /dev/rvote2_lv

   chmod 660 /dev/rvote2_lv

3.停止crs(兩邊節點)

   crsctl stop crs

4.crsctl add 命令增加vote盤

 [root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl add css votedisk '/dev/rvote2_lv' -force
Now formatting voting disk: /dev/rvote2_lv

一定要加 -force選項,要不然新增不成功,報以下錯誤

[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl add css votedisk '/dev/rvote2_lv'
Cluster is not in a ready state for online disk addition

5.檢查新增是否成功

[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl query css votedisk
 0.     0    /dev/rvotelv
 1.     0    /dev/rvote2_lv

located 2 votedisk(s).

 

   第二:刪除votedisk映象盤

1.停止crs(兩邊節點)

   crsctl stop crs

2.crsctl del 命令刪除vote盤

    [root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl delete css votedisk   '/dev/rvote2_lv'

3.檢查刪除是否成功

 [root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl query css votedisk
 0.     0    /dev/rvotelv
located 1 votedisk(s).


  

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-662881/,如需轉載,請註明出處,否則將追究法律責任。

相關文章