Manage voting disks

Source: Internet
Author: User

Zookeeper manages voting disks



1. Some things that must be known about voting disk:
We can use the dd command to back up voting disk before 11g, But oracle no longer supports using dd to back up voting disk after 11g.
If the dd or cp command is used, the normal startup of the cluster component Stack may be damaged.
Voting disk is automatically backed up as part of OCR, and is automatically restored when a new voting disk is added.



* Before maintaining the voting disk, ensure that available ocr is available. You can use ocrcheck to check the ocr status. If the ocr status is unavailable, you must first restore the ocr.

* If the cluster is upgraded from version 11g ago, set asm COMpatibity (compatible. ASM) to 11.2.0.0 when you place voting on asm dg.
* In the same cluster, voting disk cannot be stored in both asm dg and non-asm dg storage.

* When voting disk is placed on asm dg, you can only use the crsctl replace votedisk management command.
* The command for managing the voting disk using non-asm dg is: add css votedisk/delete css votedisk
* For voting disks Using asm dg, the number of voting disks is determined by the redundancy of asm dg.

---- Relationship between the asm disk redundancy and the number of voting Disks
External redundancy: one dg and one voting disk
Normal redundancy: one dg with three voting Disks
High redundancy: one dg with five voting Disks


* To change the number of voting disks, you can only change the redundancy of the asm dg.


II. General steps for restoring voting disk:
1. Make sure that the ocr is normal. If it is not normal, the ocr is now repaired.

2. Enable crs in exclusive mode (root)
# Crsctl start crs-excl

3. view the definition of the current voting disk:
$ Crsctl query css votedisk
------------------------------------------
# STATE File Universal Id File Name Disk group
1. ONLINE 7c54856e98474f61bf349401e7c9fb95 (/dev/sdb1) [DATA]

4. Determine whether the asm dg used by the voting disk is another storage device based on the result information in step 3. Then restore the voting disk
--- Asm dg
Crsctl replace votedisk + asm_disk_group

--- Other storage devices
$ Crsctl delete css votedisk FUID
Add a voting disk, as follows:
$ Crsctl add css votedisk path_to_voting_disk

5. Force cluster Shutdown
# Crsctl stop crs-f

6. Restart the Cluster
# Crsctl start crs


3. migrate, add, and delete voting Disks

---- Migrate from asm dg to other storage devices
$ Crsctl replace votedisk path_to_voting_disk

---- Migrate from other storage devices to asm dg
$ Crsctl replace votedisk + asm_disk_group


----- Manage voting disks that use other storage devices
Add voting disk:
$ Crsctl add css votedisk path_to_voting_disk [...]
Delete voting disk:
$ Crsctl delete css votedisk {FUID | path_to_voting_disk [...]}


---- Replace Device a with Device B. You must first add Device B and then delete device.
Crsctl add css votedisk path_to_voting_diskB-purge
-The purge option indicates that other existing devices are deleted.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.