From: Wido den Hollander <wido@widodh.nl>
To: udit agarwal <fzdudit@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: replicas in ceph storage
Date: Wed, 06 Jun 2012 12:34:04 +0200 [thread overview]
Message-ID: <4FCF321C.1090507@widodh.nl> (raw)
In-Reply-To: <loom.20120606T122126-155@post.gmane.org>
Hi,
On 06/06/2012 12:24 PM, udit agarwal wrote:
> Hi,
> I have a query regarding the way to determine the no. of replicas that are
> created for each object in the ceph storage system. I couldn't find a way to
> determine this. please help me with this.
>
The number of replicas is set by the "rep size" attribute of the pool
you are storing the object in.
$ ceph osd dump -o -|grep "rep size"
That will show something like:
pool 0 'data' rep size 3 crush_ruleset 0 object_hash rjenkins pg_num
2560 pgp_num 2560 lpg_num 2 lpgp_num 2 last_change 91 owner 0
crash_replay_interval 45
pool 1 'metadata' rep size 3 crush_ruleset 1 object_hash rjenkins pg_num
2560 pgp_num 2560 lpg_num 2 lpgp_num 2 last_change 90 owner 0
pool 2 'rbd' rep size 3 crush_ruleset 2 object_hash rjenkins pg_num 2560
pgp_num 2560 lpg_num 2 lpgp_num 2 last_change 630 owner 0
removed_snaps [1~1]
In this case all the pools have a "size" of 3, which means all objects
stored in these pools will be replicated three times.
You can change this parameter with:
$ ceph osd pool set <pool> size <size>
Wido
> Thanks in advance.
>
> --Udit Agarwal
>
> --
> 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
prev parent reply other threads:[~2012-06-06 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 10:24 replicas in ceph storage udit agarwal
2012-06-06 10:34 ` Wido den Hollander [this message]
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=4FCF321C.1090507@widodh.nl \
--to=wido@widodh.nl \
--cc=ceph-devel@vger.kernel.org \
--cc=fzdudit@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