Hi Jason,
I've been able to rebuild some of images but all are corrupted at this
time, but your procedure appears ok.
Thanks!
2016-09-22 15:07 GMT+02:00 Jason Dillaman :
> You can do something like the following:
>
> # create a sparse file the size of your image
> $ dd if=/dev/zero of=rbd_expor
You can do something like the following:
# create a sparse file the size of your image
$ dd if=/dev/zero of=rbd_export bs=1 count=0 seek=
# import the data blocks
$ POOL=images
$ PREFIX=rbd_data.1014109cf92e
$ BLOCK_SIZE=512
$ for x in $(rados --pool ${POOL} ls | grep ${PREFIX} | sort) ; do
rm
Hi Jason,
I've followed your steps and now I can list all available data blocks of my
image, but I don't know how rebuild a sparse image, I found this script (
https://raw.githubusercontent.com/smmoore/ceph/master/rbd_restore.sh) and
https://www.sebastien-han.fr/blog/2015/01/29/ceph-recover-a-rbd-
Unfortunately, it sounds like the image's header object was lost
during your corruption event. While you can manually retrieve the
image data blocks from the cluster, undoubtedly many might be lost
and/or corrupted as well.
You'll first need to determine the internal id of your image:
$ rados --po