ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Voting Disk - Oracle10g

Voting Disk - Oracle10g

原创 Linux操作系统 作者:tolywang 时间:2010-03-06 11:06:17 0 删除 编辑

来自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博客 ” ,链接:https://blog.itpub.net/35489/viewspace-628773/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695722