Oracle RAC 添加和删除Voting Disks(10g)

Oracle RAC 备份和恢复Voting Disks 参考:http://blog.csdn.net/laoshangxyc/article/details/8670425


添加删除voting Disk示例:

环境:

[plain] view plain copy
  1. [oracle@node2 ~]$ uname -a  
  2. Linux node2 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux  
[plain] view plain copy
  1. SQL> select * from v$version;  
  2.   
  3. BANNER  
  4. ----------------------------------------------------------------  
  5. Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod  
  6. PL/SQL Release 10.2.0.1.0 - Production  
  7. CORE    10.2.0.1.0      Production  
  8. TNS for Linux: Version 10.2.0.1.0 - Production  
  9. NLSRTL Version 10.2.0.1.0 - Production 

1.查看当前的Voting Disks和关闭Oracle Clusterware

注意:添加和删除Voting Disk应先关闭所有节点Oracle  Clusterware。虽然加-force参数能在线操作,但有可能会损坏集群配置。


[plain] view plain copy
  1. [oracle@node1 ~]$ crsctl query  css votedisk  
  2.  0.     0    /dev/raw/raw2  
  3.   
  4. located 1 votedisk(s). 

[root@node1 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@node2 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.

2.增加Voting Disk

[root@node1 bin]# ./crsctl add css votedisk /dev/raw/raw5 -force
Now formatting voting disk: /dev/raw/raw5
successful addition of votedisk /dev/raw/raw5.
如果不加-force则会出现如下情况:

[root@node1 bin]# ./crsctl add css votedisk /dev/raw/raw6
Cluster is not in a ready state for online disk addition

3.查看刚添加的Voting Disk

[oracle@node1 ~]$ crsctl query  css votedisk
 0.     0    /dev/raw/raw2
 1.     0    /dev/raw/raw5

可以看到raw5已添加成功。


4.删除Voting Disk(先查看和关闭Oracle clusterware,同上)

[root@node1 bin]# ./crsctl delete css votedisk /dev/raw/raw5 -force
successful deletion of votedisk /dev/raw/raw5.
如果不加-force则会出现如下情况:

[root@node1 bin]# ./crsctl delete css votedisk /dev/raw/raw5
Cluster is not in a ready state for online disk removal

5.查看是否已删除

[root@node1 bin]# ./crsctl query  css votedisk
 0.     0    /dev/raw/raw2

located 1 votedisk(s).

只剩下raw2说明已删除


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值