- Ceph Cookbook(Second Edition)
- Vikhyat Umrao Michael Hackett Karan Singh
- 235字
- 2021-07-02 23:19:12
How to do it...
- How to properly failover after an orderly shutdown:
- Stop all client's that are writing to the primary image
- Demote the primary image located on the ceph cluster:
# rbd mirror image demote data/image-1
-
- Promote the non-primary image located on the backup cluster:
# rbd-mirror image promote data/image-1
-
- Validate image has become primary on the backup cluster:
# rbd mirror image status data/image-1
-
- Resume client access to the image:


- How to properly failover after a non-orderly shutdown:
- Validate that the primary cluster is in a down state
- Stop all client access to the ceph cluster that accesses the primary image
- Promote the non-primary image using the FORCE option on the backup cluster, as the demotion cannot be propagated to the down ceph cluster:
# rbd-mirror image promote data/image-1
-
- Resume client access to the peer image
- How to failback from a disaster:
- If there was a non-orderly shutdown on the ceph cluster then demote the old primary image on the ceph cluster once it returns:
# rbd mirror image demote data/image-1
-
- Resynchronize the image only if there was a non-orderly shutdown:
# rbd mirror image resync data/image-1
-
- Validate that the re-synchronization has completed and image is in up+replaying state:
# rbd mirror image status data/image-1
-
- Demote the secondary image on the backup cluster:
# rbd mirror image demote data/image-1
-
- Promote the formerly primary image on ceph cluster:
# rbd mirror image promotion data/image-1
推薦閱讀
- Circos Data Visualization How-to
- Ansible Quick Start Guide
- 基于LabWindows/CVI的虛擬儀器設(shè)計(jì)與應(yīng)用
- R Machine Learning By Example
- 程序設(shè)計(jì)語言與編譯
- Zabbix Network Monitoring(Second Edition)
- 機(jī)器自動(dòng)化控制器原理與應(yīng)用
- 系統(tǒng)安裝與重裝
- 基于32位ColdFire構(gòu)建嵌入式系統(tǒng)
- 精通數(shù)據(jù)科學(xué):從線性回歸到深度學(xué)習(xí)
- 機(jī)床電氣控制與PLC
- 西門子S7-1200/1500 PLC從入門到精通
- 傳感技術(shù)基礎(chǔ)與技能實(shí)訓(xùn)
- 微計(jì)算機(jī)原理及應(yīng)用
- PVCBOT零基礎(chǔ)機(jī)器人制作(第2版)