CEPH filesystem development
 help / color / mirror / Atom feed
From: Wido den Hollander <wido@widodh.nl>
To: hemant surale <hemant.surale@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: How to use ruleset
Date: Mon, 17 Sep 2012 17:04:17 +0200	[thread overview]
Message-ID: <50573BF1.4010001@widodh.nl> (raw)
In-Reply-To: <CAGfy=6=6P1zA-0gkBqEowuuiP0qqCjnFpGCSM-R0xKBL13W7uQ@mail.gmail.com>

On 09/17/2012 11:42 AM, hemant surale wrote:
> Hi Community,
>
>           I have read the documentation to know crush map as well as
> inserting new crushmap, But I have qn that even after writing own rule
> for data placement how we can apply it for data placement? in short
> how to utilize newly specified rule when new data insertion is
> executed.
>

Every rule has a "ruleset" ID which is an integer, like:

rule data {
         ruleset 0
         ...
         ...
}

Every pool has an attribute called "crush_ruleset 0".

So if you change the ruleset in the crushmap it will re-distribute all 
the data according to the new rule. New data will be placed according to 
this new ruleset.

If you created a NEW ruleset you should create a new pool like this:

$ rados mkpool mynewpool 0 4

See --help for more information.

This should however get you going.

Wido

>          Currently I am using "rados -p <poolname> put/get Objname
> filename" cmd to put/get data into ceph.
>
> Thanks for helping me out till now.
>
>
>
> Regards,
> Hemant Surale.
> --
> 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:[~2012-09-17 15:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17  9:42 How to use ruleset hemant surale
2012-09-17 15:04 ` Wido den Hollander [this message]
2012-09-25  9:32   ` hemant surale
2012-09-25  9:56     ` Wido den Hollander
2012-09-25 10:19       ` hemant surale

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=50573BF1.4010001@widodh.nl \
    --to=wido@widodh.nl \
    --cc=ceph-devel@vger.kernel.org \
    --cc=hemant.surale@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox