If you know the prefix (which is seems you do) and the original size of the rbd 
you should be able to use my utility.

https://github.com/smmoore/ceph/blob/master/rbd_restore.sh

You will need all the rados files in the current working directory you execute 
the script from.  We have used it many times so far and works for us.  I have 
not had any outside feedback on it's usage.  But if you are truly missing any 
files, it will seek over them and your rbd might be corrupt.  Likewise if a 
file itself is damaged, it will write what is in that file to the rebuild.

HTH,
Shawn


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Denis Fondras
Sent: Tuesday, January 08, 2013 7:57 AM
To: [email protected]
Subject: Re: Is Ceph recovery able to handle massive crash

Hello,

I'm wondering if I can get every "rb.0.8e10.3e2219d7.*" from the OSD 
drive and cat them together and get back a usable raw volume from which 
I could get back my data ?

Everything seems to be there but I don't know the order of the rbd 
objects. Are the last bytes of the file name the offset of the block ?

Regards,
Denis
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to