Skip to contentSkip to conversation

replicas in ceph storage

DISCUSSION udit agarwal 2 participants 2 messages Jun 6, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi,

Quoted 5 lines · udit agarwal

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

Quoted 8 lines

Thanks in advance.

--Udit Agarwal

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html