Re: [ceph-users] Object lost

2016-09-26 Thread Fran Barrera
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

Re: [ceph-users] Object lost

2016-09-22 Thread Jason Dillaman
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

Re: [ceph-users] Object lost

2016-09-22 Thread Fran Barrera
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-

Re: [ceph-users] Object lost

2016-09-21 Thread Jason Dillaman
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