Download OpenStack Deployment Manual - Support

Transcript
54
Ceph Installation
Ceph extraconfigparameters setting: The Extra config parameters property of a ceph
mode object can be used to customize the Ceph configuration file. The Ceph configuration file is typically in /etc/ceph.conf, and using extraconfiparameters settings, Ceph can be configured with
changes that CMDaemon would otherwise not manage. After the changes have been set, CMDaemon
manages them further.
Thus, the following configuration section in the Ceph configuration file:
[mds.2]
host=rabbit
could be placed in the file via cmsh with:
Example
[root@bright71 ~]# cmsh
[bright71]% ceph
[bright71->ceph[ceph]]% append extraconfigparameters "[mds.2] host=rabbit"
[bright71->ceph*[ceph*]]% commit
If a section name, enclosed in square brackets, [], is used, then the section is recognized at the start
of an appended line by CMDaemon.
If a section that is specified in the square brackets does not already exist in /etc/ceph.conf, then
it will be created. The \n is interpreted as a new line at its position. After the commit, the extra configuration parameter setting is maintained by the cluster manager.
If the section already exists in /etc/ceph.conf, then the associated key=value pair is appended.
For example, the following appends host2=bunny to an existing mds.2 section:
[bright71->ceph[ceph]]% append extraconfigparameters "[mds.2] host2=bunny"
[bright71->ceph*[ceph*]]% commit
If no section name is used, then the key=value entry is appended to the [global] section.
[bright71->ceph[ceph]]% append extraconfigparameters "osd journal size = 128"
[bright71->ceph*[ceph*]]% commit
The /etc/ceph.conf file has the changes written into it about a minute after the commit, and may
then look like (some lines removed for clarity):
[global]
auth client required = cephx
osd journal size=128
[mds.2]
host=rabbit
host2=bunny
As usual in cmsh operations (section 2.5.3 of the Administrator Manual):
• The set command clears extraconfigparameters before setting its value
• The removefrom command operates as the opposite of the append command, by removing
key=value pairs from the specified section.
There are similar extraconfigparameters for Ceph OSD filesystem associations (page 55) and
for Ceph monitoring (page 56).
© Bright Computing, Inc.