All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jimmy Tang <jtang@tchpc.tcd.ie>
To: Gregory Farnum <greg@inktank.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: issues with adjusting the crushmap in 0.51
Date: Thu, 6 Sep 2012 19:51:04 +0100	[thread overview]
Message-ID: <20120906185104.GA6518@tchpc.tcd.ie> (raw)
In-Reply-To: <CAPYLRzggLqcgvMJWFDYOsHvQNK2oOvHmmTEnufK60R4=mdEQNw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]

Hi Greg

On Thu, Sep 06, 2012 at 11:19:12AM -0700, Gregory Farnum wrote:
> You always need to end up with "devices" (the OSDs, generally) and
> then emit those from your CRUSH rule. You can do so hierarchically:
> rule data {
>         ruleset 0
>         type replicated
>         min_size 1
>         max_size 10
>         step take default
>         step choose firstn 0 type host
>         step choose firstn 1 osd
>         step emit
> }
> In this case, (with n being your replication count) this rule chooses
> n hosts, and then chooses 1 OSD from each chosen host.
> 
> You can also use "chooseleaf", which is a bit more robust in the
> presence of failed OSDs:
> rule data {
>         ruleset 0
>         type replicated
>         min_size 1
>         max_size 10
>         step take default
>         step chooseleaf firstn 0 type host
>         step emit
> }
> This rule will choose n hosts and an OSD from each chosen host, and if
> it fails on any host then it will restart with a different host (the
> previous rule would stick with the chosen hosts and so it can't handle
> if eg an entire host's OSDs are down).
> -Greg
> 

That explaination certainly has cleared things up for me, I had not
realised that I needed to end with a "device" at the end of a rule
based on the documentation that I could find on the website and the
old ceph wiki.

Also, the "ceph osd setcrushmap..." command doesn't up when a ceph
--help is run in the 0.51 release, however it is documented on the
wiki as far as I recall. It'd be real nice if the applications emitted
all the available commands, it would make experimenting much nicer and
fun.

Thanks,
Jimmy,

-- 
Jimmy Tang
Trinity Centre for High Performance Computing,
Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
http://www.tchpc.tcd.ie/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2012-09-06 18:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 17:58 issues with adjusting the crushmap in 0.51 Jimmy Tang
2012-09-06 18:19 ` Gregory Farnum
2012-09-06 18:51   ` Jimmy Tang [this message]
2012-09-06 20:31     ` Tommi Virtanen
2012-09-08  8:08       ` Jimmy Tang
2012-09-12 11:13       ` Jimmy Tang

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=20120906185104.GA6518@tchpc.tcd.ie \
    --to=jtang@tchpc.tcd.ie \
    --cc=ceph-devel@vger.kernel.org \
    --cc=greg@inktank.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.