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
crsctl query css votedisk
2. Backing up Voting Disks:
dd if=voting_disk_name f=backup_file_name
dd if=voting_disk_name f=backup_file_name
3. Recovering Voting Disks:
dd if=backup_file_name f=voting_disk_name
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 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 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
crsctl add css votedisk
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:
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
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:
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
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:
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
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10g OCR及Voting Disk的Oracle
- Oracle10g OCR及Voting Disk的備份Oracle
- Oracle10g RAC voting disk及OCR 的映象,備份恢復[final]Oracle
- 管理OCR,OLR,Voting Disk(筆記)筆記
- 關於oracle orc和voting diskOracle
- The Oracle Clusterware Voting Disk and Oracle Cluster RegistryOracle
- Oracle RAC 重建 OCR 和 Voting diskOracle
- voting disk 損壞解決方法---重建crs
- How to Restore a Lost Voting Disk in 10g [ID 279793.1]REST
- 11g RAC OCR,VOTING DISK儲存全部損壞,利用自動備份,恢復OCR,VOTING DISK到新儲存。
- 11g RAC 中 OCR 及Voting Disk 相關操作
- Oracle 10g RAC下Voting disk和OCR的管理Oracle 10g
- Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- oracle crs voting disk損壞一例(asm+rac)OracleASM
- 轉 Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- 【轉載】Oracle 10G RAC下OCR和Voting disk的管理Oracle 10g
- OCR And Voting Disk In Oracle 10gR2 Clusterware (RAC) [ID 1092293.1]Oracle 10g
- Can you create a second voting disk in a different ASM diskgroup when using External Redundancy in 1ASM
- zt_oracle10g rac real application cluster ocr and voting disk備份恢復OracleAPP
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]Oracle
- Oracle10g TEMP 檔案Disk Space Allocation 問題Oracle
- Oracle RAC: Member votingOracle
- 手工建立ASM Disk Groups、為 ASM Disk Groups 新增 diskASM
- drop asm disk、撤銷drop asm diskASM
- 關於Oracle10g中tempfile 空間分配的問題:temp file will not actually allocate disk spaceOracle
- NTFS Disk by Omi NTFS Mac;NTFS Disk by Omi NTFSMac
- move linux os from disk A to disk B with 0 lossLinux
- Oracle 21C管理Voting FilesOracle
- Asm disk managerASM
- Oracle RAC CRS、OCR、Voting破壞重建Oracle
- Azure Managed Disk操作
- Oracle ASM Disk DirectoryOracleASM
- Oracle ASM Disk PartnerOracleASM
- disk_repair_timeAI
- ASM Disk Group TemplateASM
- RAC關鍵資訊(OCR/VOTE DISK/ASM DISK HEADER)備份ASMHeader
- 【OH】3 Managing Oracle Cluster Registry and Voting DisksOracle
- Oracle ASM Disk HeaderOracleASMHeader