From: Wido den Hollander <wido@widodh.nl>
To: Ryan Nicholson <Ryan.Nicholson@kcrg.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Clusters and pools
Date: Wed, 25 Jul 2012 17:02:24 +0200 [thread overview]
Message-ID: <50100A80.2020301@widodh.nl> (raw)
In-Reply-To: <F5955DC568F9AF4DB00BE0F7E950BE0C0E903140@BLUPRD0411MB438.namprd04.prod.outlook.com>
On 07/25/2012 06:34 AM, Ryan Nicholson wrote:
> I'm running a cluster based on 4 hosts that each have 3 fast, SCSI osd's, and 1 very large SATA osd, meaning, 12 fast osd's and 4 slow osd's total. I wish to segregate these into 2 pools, that operate independently. The goal is to use the faster disks as an area to hold rbd based VM's, and the larger area to host rbd-base large volumes (to start), and possibly have that become just a big cephfs area once, the fs side of things is considered more stable.
>
> Now, I've been thrown a couple options, and am still unsettled. Which is best?:
> - Create 2 independent clusters; one with the 12 SCSI osd's and the other with just the 4 large OSD's on the same hosts. This seems to be more complex from a scripting and boot time standpoint, but easier for my head.
> - Create a single cluster and use CRUSH rules to separate the two. This one STILL has me lost, as I'm having trouble understanding the crushmap syntax, the Crushmap import/export commands, and the other mkpool or otherwise commands from the docs in order to "make rbd's come from this faster pool", while "cephfs, you come from this slower pool". I really would like to entertain this path, however, as this allows ceph to handle the entire situation, and, it would seem more elegant.
>
> I'm also open to other options as well.
The "easiest" way to approach this:
Set up the cluster with the 12 fast OSD's first en leave the other 4 out
of the configuration.
Get everything up and running and play with it.
Then, add the 4 remaining OSD's to the cluster:
1. Add them to ceph.conf
2. Increment max_osd
3. Add them to the keyring
4. Format the OSD's
5. Start the OSD's
Now they should show up in your "ceph -s" output, but no data will go to
them.
The next step is to export your current crushmap:
$ ceph osd getcrushmap -o crushmap
$ crushtool -d crushmap -o crushmap.txt
You should now add 4 new hosts to the crushmap, something like
"hostA-slow" and add one OSD under each of them.
Now you can add a new rack called "slowrbd" for example, add a new pool
and a new rule afterwards.
Compile crushmap.txt back again to "crushmap" and load it into the cluster.
You can now create a new pool with a specific crushrule.
All the data in that pool will go onto those 4 slower OSD's.
Wido
>
> Thanks!
>
> Ryan Nicholson
>
> --
> 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-07-25 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-25 4:34 Clusters and pools Ryan Nicholson
2012-07-25 6:48 ` Thomas Mueller
2012-07-25 15:02 ` Wido den Hollander [this message]
2012-07-27 1:25 ` Ryan Nicholson
2012-07-27 6:26 ` Wido den Hollander
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=50100A80.2020301@widodh.nl \
--to=wido@widodh.nl \
--cc=Ryan.Nicholson@kcrg.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox