Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Ceph

You're reading from   Mastering Ceph Infrastructure storage solutions with the latest Ceph release

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789610703
Length 356 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Nick Fisk Nick Fisk
Author Profile Icon Nick Fisk
Nick Fisk
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Section 1: Planning And Deployment FREE CHAPTER
2. Planning for Ceph 3. Deploying Ceph with Containers 4. BlueStore 5. Ceph and Non-Native Protocols 6. Section 2: Operating and Tuning
7. RADOS Pools and Client Access 8. Developing with Librados 9. Distributed Computation with Ceph RADOS Classes 10. Monitoring Ceph 11. Tuning Ceph 12. Tiering with Ceph 13. Section 3: Troubleshooting and Recovery
14. Troubleshooting 15. Disaster Recovery 16. Assessments 17. Other Books You May Enjoy

Repairing inconsistent objects

With BlueStore, all data is checksumed by default, so the steps in this section to safely determine the correct copy of the object no longer apply.

We will now see how we can correctly repair inconsistent objects:

  1. To be able to recreate an inconsistent scenario, create an RBD, and later we'll make a filesystem on it:
  1. Check to see which objects have been created by formatting the RBD with a filesystem:
  1. Pick one object at random and use the osd map command to find out which PG the object is stored in:
  1. Find this object on the disk on one of the OSD nodes; in this case, it is OSD.0 on OSD1:

  1. Corrupt it by echoing garbage over the top of it:
  1. Tell Ceph to do a scrub on the PG that contains the object we corrupted:
  1. If you check the Ceph status, you will see that Ceph has detected the corrupted object and marked the PG as inconsistent...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image