Voting Disk - Oracle10g

来自Metalink .

Voting Disk
Note from Metalink: When the CRS stack is running and the add votedisk command or the crsctl remove votedisk command is executed, It will fail with a "Cluster is not in a ready state for online disk addition" message. This is because of internal bug 3972986. Dynamic addition and deletion of voting disk when the Clusterware is running is not possible without the fix for this bug.
 
Shutdown the Oracle Clusterware (crsctl stop crs as root) on all nodes before making any modification to the voting disk.
 
1. get the voting disk location:
crsctl query css votedisk
 
2. Backing up Voting Disks:
dd if=voting_disk_name      f=backup_file_name
 
3. Recovering Voting Disks:
dd if=backup_file_name      f=voting_disk_name
 
4. add a voting disk:
as oracle user:
srvctl stop nodeapps -n linux1
srvctl stop nodeapps -n linux2
crs_stat -t

as root user:
crsctl stop crs
crsctl check crs
crsctl add css votedisk $path -force
crsctl query css votedisk
crsctl start crs
crs_stat -t

5. remove a voting disk as root user:
as oracle user:
srvctl stop nodeapps -n linux1
srvctl stop nodeapps -n linux2
crs_stat -t

as root user:
crsctl stop crs
crsctl check crs
crsctl delete css votedisk $path -force
crsctl query css votedisk
crsctl start crs
crs_stat -t
 
6. move a Voting Disk:
as oracle user:
srvctl stop nodeapps -n linux1
srvctl stop nodeapps -n linux2
crs_stat -t

as root user:
crsctl stop crs
crsctl check crs
crsctl delete css votedisk –force
crsctl add css votedisk –force
crsctl start crs
crsctl query css votedisk
 
Example moving Voting Disk from OCFS to raw devices
The voting disk is a partition that Oracle Clusterware uses to verify cluster node membership and status.

The voting disk must be owned by the
oracle user, must be in the dba group, and must have permissions set to 644. Provide at least 20 MB disk space for the voting disk.

In this example the Voting Disks are located in the ocfs2 file system:
        /ocfs2/voting1, /ocfs2/voting2, /ocfs2/voting3

Create raw device files of at least 20 MB. In this example the new voting disks will be on the following devices:
        /dev/raw/raw3, /dev/raw/raw4, /dev/raw/raw5

Once the raw devices are created, use the dd command to zero out the device and make sure no data is written to the raw devices:
        dd if=/dev/zero   f=/dev/raw/raw3
        dd if=/dev/zero   f=/dev/raw/raw4
        dd if=/dev/zero   f=/dev/raw/raw5
 
Now you are ready to move/replace the voting disks to the new storage location.

To move a Voting Disk to new storage location:
        crsctl delete css votedisk /ocfs2/voting1 –force
        crsctl add css votedisk /dev/raw/raw3 –force
        crsctl delete css votedisk /ocfs2/voting2 –force
        crsctl add css votedisk /dev/raw/raw4 –force
        crsctl delete css votedisk /ocfs2/voting3 –force
        crsctl add css votedisk /dev/raw/raw5 –force
 
Example of adding Voting Disks
If you have upgraded your environment from a previous version, where you only had one voting disk, you can use the following steps to add additional voting disk.

In this example 2 additional Voting Disks are added:       
        crsctl add css votedisk /dev/raw/raw4 –force
        crsctl add css votedisk /dev/raw/raw5 –force
 
After modifying the voting disk, start the Oracle Clusterware stack on all nodes    
crsctl start crs

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-628773/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-628773/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值