Skip to contentSkip to conversation

Config File Problem for new clusters?

DISCUSSION Dyweni - Ceph-Devel 2 participants 2 messages May 27, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

For testing purposes, I tried to specify the default pg_size which will be used to create the default pg_pools (data, metadata, rbd).

By default, the pg_size is 2. However, regardless of where I add 'osd pool default size' to the ceph.conf file (I've tried the [mon] and [osd] sections), the pg_size is always 2.

How does one define what the pg_size will be before calling '/usr/bin/mkcephfs -c /etc/ceph/ceph.conf -a --mkbtrfs'?

Thanks,
Dyweni

#1 lore raw
Quoted 11 lines · Dyweni - Ceph-Devel

Hi,

For testing purposes, I tried to specify the default pg_size which will be used to create the default pg_pools (data, metadata, rbd).

By default, the pg_size is 2. However, regardless of where I add 'osd pool default size' to the ceph.conf file (I've tried the [mon] and [osd] sections), the pg_size is always 2.

How does one define what the pg_size will be before calling '/usr/bin/mkcephfs -c /etc/ceph/ceph.conf -a --mkbtrfs'?

I pushed a fix to the master branch. The initial pool sizes were hard-coded to 2. You can adjust things after the cluster is up and running with

ceph osd pool set data size 3
ceph osd pool set metadata size 3
ceph osd pool set rbd size 3

sage