All of lore.kernel.org
 help / color / mirror / Atom feed
* replicas in ceph storage
@ 2012-06-06 10:24 udit agarwal
  2012-06-06 10:34 ` Wido den Hollander
  0 siblings, 1 reply; 2+ messages in thread
From: udit agarwal @ 2012-06-06 10:24 UTC (permalink / raw)
  To: ceph-devel

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.

 Thanks in advance.

--Udit Agarwal


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: replicas in ceph storage
  2012-06-06 10:24 replicas in ceph storage udit agarwal
@ 2012-06-06 10:34 ` Wido den Hollander
  0 siblings, 0 replies; 2+ messages in thread
From: Wido den Hollander @ 2012-06-06 10:34 UTC (permalink / raw)
  To: udit agarwal; +Cc: ceph-devel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-06 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06 10:24 replicas in ceph storage udit agarwal
2012-06-06 10:34 ` Wido den Hollander

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.