From: Josh Durgin <josh.durgin@inktank.com>
To: Sylvain Munaut <s.munaut@whatever-company.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: PG stuck stale
Date: Wed, 01 Aug 2012 11:41:02 -0700 [thread overview]
Message-ID: <5019783E.4010705@inktank.com> (raw)
In-Reply-To: <50197493.1040805@inktank.com>
On 08/01/2012 11:25 AM, Josh Durgin wrote:
> On 08/01/2012 08:12 AM, Sylvain Munaut wrote:
>> Hi,
>>
>> I'm doing a few tests on ceph (radosgw more precisely).
>>
>> One of the scenario I'm testing is:
>> - A radogw bucket stored in a rados pool with size=1 (so no
>> replication)
>> - Complete/Irrecoverable failure of an OSD ( osd.0 )
>>
>> Now obviously in that situation, some of the placement groups will be
>> completely lost and there will be no way to get the data back and I'm
>> OK with that.
>>
>> But my current issue is that after rebuilding a new osd.0 from
>> scratch, the PG that were previously on it and nowhere else are "stuck
>> stale" and I can't figure out how to tell it that it's OK to loose
>> those data but come back to HEALTHY ...
>
> Those pgs shouldn't be stale. How did you rebuild osd.0? Did you just
> redo ceph-osd --mkfs?
>
> The objects should show up as unfound in ceph -s, and then you can
> deal with them as described here:
>
> http://ceph.com/docs/master/ops/manage/failures/osd/#unfound-objects
>
>> I tried doing 'ceph osd lost 0' after I shut it down and before I
>> start it up from scratch again but that didn't change anything.
>
> This is probably not working due to the stale pgs. Stale means no osd
> is reporting anything about them, so they're probably not being updated
> and marked unfound.
>
>> So how can I make the cluster HEALTHY again ?
I didn't notice before, but since you only have 1 copy of the data,
no other osds will tell the new osd.0 that it should have those pgs.
That's why they're stale. You can force osd.0 to notice the pgs it needs
by running:
ceph pg force_create_pg <pgid>
for each pg that's mapped to osd.0 in 'ceph pg dump'.
Once those are all created, and recovery has noticed that those pgs are
all out of date, the mark_unfound_lost command should work.
Josh
>>
>> Cheers,
>>
>> Sylvain
next prev parent reply other threads:[~2012-08-01 18:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 15:12 PG stuck stale Sylvain Munaut
2012-08-01 18:25 ` Josh Durgin
2012-08-01 18:41 ` Josh Durgin [this message]
2012-08-02 9:27 ` Sylvain Munaut
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=5019783E.4010705@inktank.com \
--to=josh.durgin@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=s.munaut@whatever-company.com \
/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.