- 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
推薦閱讀
- 嵌入式系統及其開發應用
- 輕輕松松自動化測試
- 人工免疫算法改進及其應用
- 樂高機器人EV3設計指南:創造者的搭建邏輯
- Visual Basic從初學到精通
- Mastering Machine Learning Algorithms
- 21天學通Visual Basic
- 變頻器、軟啟動器及PLC實用技術260問
- MATLAB/Simulink權威指南:開發環境、程序設計、系統仿真與案例實戰
- 筆記本電腦維修90個精選實例
- SQL Server數據庫應用基礎(第2版)
- Creating ELearning Games with Unity
- Xilinx FPGA高級設計及應用
- 51單片機應用程序開發與實踐
- Learning iOS 8 for Enterprise