[ceph-users] How to recover from corrupted RocksDb
paul.emmerich at croit.io
Thu Nov 29 06:45:30 PST 2018
If this is really the last copy of important data: consider making a
full raw clone of the disk before running any ceph-objectstore-tool
commands on it and consider getting some professional help if you are
not too familiar with the inner workings of Ceph.
That being said, it's basically just:
ceph-objectstore-tool --bluestore --op export --pg <pgid> --data-path
/var/lib/ceph/osd/ceph-XX --file <pgid>
and --op import into the new OSD. I don't think there's a command for
all PGs at once, so you'll have to iterate over the broken PGs (or
Looking for help with your Ceph cluster? Contact us at https://croit.io
Tel: +49 89 1896585 90
Am Do., 29. Nov. 2018 um 15:36 Uhr schrieb Davide Accetturi
<davide at accetturi.it>:
> Hi guys
> Thanks for your replies,
> What’s the right syntax of Ceph-objectstore-tool in order to export all of the PGs??
> Thanks you so much
> Sent from my iPhone
> > On 29 Nov 2018, at 15:15, Igor Fedotov <ifedotov at suse.de> wrote:
> > Yeah, that may be the way.
> > Preferably to disable compaction during this procedure though.
> > To do that please set
> > bluestore rocksdb options = "disable_auto_compactions=true"
> > in [osd] section in ceph.conf
> > Thanks,
> > Igor
> >> On 11/29/2018 4:54 PM, Paul Emmerich wrote:
> >> does objectstore-tool still work? If yes:
> >> export all the PGs on the OSD with objectstore-tool and important them
> >> into a new OSD.
> >> Paul
More information about the ceph-users