Config File Problem for new clusters?
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
Quoted 11 lines · Dyweni - Ceph-Devel
Hi,
For testing purposes, I tried to specify the default
pg_sizewhich will be used to create the defaultpg_pools(data, metadata, rbd).By default, the
pg_sizeis 2. However, regardless of where I add 'osd pool default size' to the ceph.conf file (I've tried the [mon] and [osd] sections), thepg_sizeis always 2.How does one define what the
pg_sizewill 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