All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Farnum <gregory.farnum@dreamhost.com>
To: Eric_YH_Chen@wistron.com
Cc: ceph-devel@vger.kernel.org, Chris_YT_Huang@wistron.com
Subject: Re: Do not understand some terms about cluster health
Date: Thu, 22 Dec 2011 12:40:09 -0800	[thread overview]
Message-ID: <CAF3hT9DR0bHZfMZpidvDcF9+0pnNUHt8VnCq_+tOA8xgEqemyQ@mail.gmail.com> (raw)
In-Reply-To: <8512670932FB654F81AF0FEF1BE6D49DA7E3E2@WHQBEMAIL1.whq.wistron>

On Wed, Dec 21, 2011 at 7:47 PM,  <Eric_YH_Chen@wistron.com> wrote:
> Hi, All
>
>   When I type 'ceph health' to get the status of cluster, it will show
> some information.
>
>   Would you please to explain the term?
>
>   Ex: HEALTH_WARN 3/54 degraded (5.556%)
>
>         What does "degraded" mean ?  Is it a serious error and how to
> fix it ?
>
>   Ex: HEALTH_WARN 264 pgs degraded, 6/60 degraded (10.000%); 3/27
> unfound (11.111%)
There are two meanings of degraded here. The degraded PGs are those
which don't yet have the number of active OSDs as they should (ie, the
PG wants 3 OSDs to be holding it and only 2 are). The number of
degraded objects is the number of missing replicas of objects. The
difference here is that an OSD can be an active member of a PG without
holding all the objects yet; the general sequence is that you lose an
OSD so a bunch of PGs go degraded, and then the OSDs peer and bring in
a new replica so the PG is no longer degraded but most of the objects
are until they get copied over.
Unfound objects are those which the cluster believes should exist but
can't find anywhere, either because the only copy is on a down OSD or
because there's a bug which caused them to believe in non-existent
objects.
Are you using the RADOS gateway? If you are, that's probably where
your unfound objects came from; there was a long-standing accounting
bug which had a fix merged earlier this week.

>         What does "unfound" mean?  Could we recover the data?
>         Would it cause the whole data in rbd image corrupted and never
> access ?
Nope; unfound objects will only block access to that specific object.
I'll have to look into whether rbd could trigger the same bug that RGW
was or not.

>
>   When I type 'ceph pg dump', it would show like this.  Would you
> please explain what is "hb in" and "hb out" ?
Those are the lists of OSDs which are heartbeating the given OSD, in
and out. The first group is OSDs which the one in question is keeping
track of; the second are OSDs which the one in question should be
reporting to.

>  And from the latest document, I know we can do the cluster snapshot by
> " ceph osd cluster_snap <name>"
>  Is that means we can rollback the data from the snapshot? Do you have
> any related document to show how to operate it?
That's the intention, but it's not a well-tested or complete solution
at this time. You shouldn't use it yet.
-Greg
--
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:[~2011-12-22 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22  3:47 Do not understand some terms about cluster health Eric_YH_Chen
2011-12-22 20:40 ` Gregory Farnum [this message]
2011-12-23 19:46   ` Gregory Farnum

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=CAF3hT9DR0bHZfMZpidvDcF9+0pnNUHt8VnCq_+tOA8xgEqemyQ@mail.gmail.com \
    --to=gregory.farnum@dreamhost.com \
    --cc=Chris_YT_Huang@wistron.com \
    --cc=Eric_YH_Chen@wistron.com \
    --cc=ceph-devel@vger.kernel.org \
    /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.