diff --git a/pkg/daemon/ceph/client/pool.go b/pkg/daemon/ceph/client/pool.go index 98bf9fd88..4379b275d 100644 --- a/pkg/daemon/ceph/client/pool.go +++ b/pkg/daemon/ceph/client/pool.go @@ -282,7 +282,7 @@ func CreateReplicatedPoolForApp(context *clusterd.Context, namespace, poolName s return err } - args := []string{"osd", "pool", "create", poolName, pgCount, "replicated", poolName} + args := []string{"osd", "pool", "create", poolName, pgCount, "replicated", poolName, "--size", strconv.FormatUint(uint64(pool.Replicated.Size), 10)} output, err := NewCephCommand(context, namespace, args).Run() if err != nil { return errors.Wrapf(err, "failed to create replicated pool %s. %s", poolName, string(output)) diff --git a/pkg/daemon/ceph/client/pool_test.go b/pkg/daemon/ceph/client/pool_test.go index 950971337..8d0937a07 100644 --- a/pkg/daemon/ceph/client/pool_test.go +++ b/pkg/daemon/ceph/client/pool_test.go @@ -120,6 +120,8 @@ func testCreateReplicaPool(t *testing.T, failureDomain, crushRoot, deviceClass, if args[2] == "create" { assert.Equal(t, "mypool", args[3]) assert.Equal(t, "replicated", args[5]) + assert.Equal(t, "--size", args[7]) + assert.Equal(t, "12345", args[8]) return "", nil } if args[2] == "set" {