Re: How to recover from corrupted RocksDb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--op list-pgs)

good luck.


Paul

-- 
Paul Emmerich

Looking for help with your Ceph cluster? Contact us at https://croit.io

croit GmbH
Freseniusstr. 31h
81247 München
www.croit.io
Tel: +49 89 1896585 90

Am Do., 29. Nov. 2018 um 15:36 Uhr schrieb Davide Accetturi
<davide@xxxxxxxxxxxx>:
>
> 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
> Davide
>
> Sent from my iPhone
>
> > On 29 Nov 2018, at 15:15, Igor Fedotov <ifedotov@xxxxxxx> 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
> >>
> >>
> >
>
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux