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: Tue, 25 Sep 2012 11:56:58 +0200 [thread overview]
Message-ID: <50617FEA.9010700@widodh.nl> (raw)
In-Reply-To: <CAGfy=6mGaH_MP+3ROUqhLGYHikPUvFHZwR3H=9za6qmnn=ZZuA@mail.gmail.com>
On 09/25/2012 11:32 AM, hemant surale wrote:
> I have created to different types "host (osd0,osd1 in it) , ghost
> (osd2 in it ) " and used two separate crushrules to use them.
>
>
Could you sent your crushmap? Attachment or pastebin?
> so can i create two different pools utilizing two different
> crush_ruleset for data placement . Right now I am using Ceph v 0.36
> with it , when i do so it goes unresponsive.
>
>
I still recommend upgrading to at least version 0.48.2
Wido
>
> Regards,
> Hemant Surale.
>
>
>
> On Mon, Sep 17, 2012 at 8:34 PM, Wido den Hollander <wido@widodh.nl> wrote:
>> 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
>>>
>>
next prev parent reply other threads:[~2012-09-25 9:57 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
2012-09-25 9:32 ` hemant surale
2012-09-25 9:56 ` Wido den Hollander [this message]
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=50617FEA.9010700@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 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.