All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wido den Hollander <wido@widodh.nl>
To: Denis Fondras <ceph@ledeuns.net>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Is Ceph recovery able to handle massive crash
Date: Tue, 08 Jan 2013 14:36:48 +0100	[thread overview]
Message-ID: <50EC20F0.1060502@widodh.nl> (raw)
In-Reply-To: <50EC1AC2.2060001@widodh.nl>

On 01/08/2013 02:10 PM, Wido den Hollander wrote:
> On 01/08/2013 01:57 PM, Denis Fondras wrote:
>> 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 ?
>>
>
> Yes, that is doable. The problem only is that RBD is sparse. So you'd
> have to fill up the empty spaces with 4MB of zeroes.
>
> But yes, it's doable if you gather all the objects and will the rest up
> with zeroes.
>
>> 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 ?
>>
>
> There was a quick perl command for this to generate all the suffixes,
> but I can't seem to find it right now.
>

You could do something like this to generate all the blocks you should 
need, the non-existing ones you should fill them with nothing, aka 4MB 
of nothing.

perl -e 'while ($s < (SIZE_IN_MB / 4)) { printf "BLOCK_PREFIX.%012x\n", 
$s; $s++}'

Size is the block-device in MB en BLOCK_PREFIX can be something like 
"rb.0.1016.238e1f29"

Wido

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


  reply	other threads:[~2013-01-08 13:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-05 12:19 Is Ceph recovery able to handle massive crash Denis Fondras
2013-01-05 15:24 ` Gregory Farnum
2013-01-07 17:25 ` Denis Fondras
2013-01-07 21:30   ` Gregory Farnum
2013-01-08  8:44     ` Denis Fondras
2013-01-08 12:57       ` Denis Fondras
2013-01-08 13:10         ` Wido den Hollander
2013-01-08 13:36           ` Wido den Hollander [this message]
2013-01-08 13:51         ` Moore, Shawn M
2013-01-08 14:53           ` Denis Fondras
2013-01-08 17:09       ` Gregory Farnum
2013-01-08 19:44         ` Denis Fondras
2013-01-08 23:36           ` Gregory Farnum
2013-01-09  8:30             ` Denis Fondras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50EC20F0.1060502@widodh.nl \
    --to=wido@widodh.nl \
    --cc=ceph-devel@vger.kernel.org \
    --cc=ceph@ledeuns.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.