Project

General

Profile

Bug #8966

ceph.conf "osd pool default size = 2" not working

Added by Christoph Pedro over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Version
ceph-deploy: 1.5.9
ceph 0.80.5

Ceph.config:

[global]
fsid = a21efc10-b735-457e-a6db-52a88286d757
mon_initial_members = cephnode1
mon_host = 10.0.0.155
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true

[default]
osd pool default size = 2

The config file was created with "ceph-deploy new {monitor-mode}", but the [default] and osd pool default size was written by me.

The Problem:
The command "osd pool default size = 2" has no effect on ubuntu 14.04. Whatever you take for a number 2,3,4,.... it has no effect.

History

#1 Updated by Christoph Pedro over 6 years ago

Recognized the failure with the command "ceph osd dump". There the pools had always the size 3 (default).

#2 Updated by Sage Weil over 6 years ago

  • Status changed from New to Closed

the config option needs to go in the [global] section, not [default] (which is never used for anything)

#3 Updated by Christoph Pedro over 6 years ago

Then the documentation (http://ceph.com/docs/master/start/quick-ceph-deploy/) on point 2 should be updated.

Change the default number of replicas in the Ceph configuration file from 3 to 2 so that Ceph can achieve an active + clean state with just two Ceph OSDs. Add the following line under the [default] section:

it should be [global]

For a newbie in Ceph it is hard with such a documentation

Thanks for checking

Also available in: Atom PDF