O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Let's run through some example uses for the ceph-objectstore-tool:

  1. Find incomplete PGs on your Ceph cluster. Using this command, you can get the PG ID and its acting set:
        # ceph health detail | grep incomplete
  1. Using the acting set, you can locate the OSD host:
        # ceph osd find <osd_number>
  1. Log in to the OSD node and stop the OSD that you intend to work on:
         # systemctl stop ceph-osd@<id>

The following sections describe the OSD and placement group functions that you can use with the ceph-objectstore-tool:

  1. To identify the objects within an OSD, execute the following. The tool will output all objects, irrespective of their placement groups:
        # ceph-objectstore-tool --data-path </path/to/osd>  --journal-path </path/to/journal> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required