Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
2a8de868
Commit
2a8de868
authored
6 years ago
by
Zuul
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Doc: update ceph-guide in kolla-ansible"
parents
949f1c2c
0c545217
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/source/reference/ceph-guide.rst
+81
-2
81 additions, 2 deletions
doc/source/reference/ceph-guide.rst
with
81 additions
and
2 deletions
doc/source/reference/ceph-guide.rst
+
81
−
2
View file @
2a8de868
...
@@ -24,7 +24,8 @@ special partition label to the disk. This partition label is how Kolla detects
...
@@ -24,7 +24,8 @@ special partition label to the disk. This partition label is how Kolla detects
the disks to format and bootstrap. Any disk with a matching partition label
the disks to format and bootstrap. Any disk with a matching partition label
will be reformatted so use caution.
will be reformatted so use caution.
To prepare an OSD as a storage drive, execute the following operations:
To prepare a filestore OSD as a storage drive, execute the following
operations:
.. warning::
.. warning::
...
@@ -52,9 +53,69 @@ usage with Kolla.
...
@@ -52,9 +53,69 @@ usage with Kolla.
.. end
.. end
To prepare a bluestore OSD partition, execute the following operations:
.. code-block:: console
parted $DISK -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS 1 -1
.. end
If only one device is offered, Kolla Ceph will create the bluestore OSD on the
device. Kolla Ceph will create two partitions for OSD and block separately.
If more than one devices are offered for one bluestore OSD, Kolla Ceph will
create partitions for block, block.wal and block.db according to the partition
labels.
To prepare a bluestore OSD block partition, execute the following operations:
.. code-block:: console
parted $DISK -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_B 1 -1
.. end
To prepare a bluestore OSD block.wal partition, execute the following
operations:
.. code-block:: console
parted $DISK -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_W 1 -1
.. end
To prepare a bluestore OSD block.db partition, execute the following
operations:
.. code-block:: console
parted $DISK -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_D 1 -1
.. end
Kolla Ceph will handle the bluestore OSD according to the above up to four
partition labels. In Ceph bluestore OSD, the block.wal and block.db partitions
are not mandatory.
.. note::
In the case there are more than one devices in one bluestore OSD and there
are more than one bluestore OSD in one node, it is required to use suffixes
(``_42``, ``_FOO``, ``_FOO42``, ..). Kolla Ceph will gather all the
partition labels and deploy bluestore OSD on top of the devices which have
the same suffix in the partition label.
Using an external journal drive
Using an external journal drive
-------------------------------
-------------------------------
.. note::
The section is only meaningful for Ceph filestore OSD.
.. end
The steps documented above created a journal partition of 5 GByte
The steps documented above created a journal partition of 5 GByte
and a data partition with the remaining storage capacity on the same tagged
and a data partition with the remaining storage capacity on the same tagged
drive.
drive.
...
@@ -126,6 +187,15 @@ RadosGW is optional, enable it in ``/etc/kolla/globals.yml``:
...
@@ -126,6 +187,15 @@ RadosGW is optional, enable it in ``/etc/kolla/globals.yml``:
.. end
.. end
Configure the Ceph store type in ``ansible/group_vars/all.yml``, the default
value is ``bluestore`` in Rocky:
.. code-block:: yaml
ceph_osd_store_type: "bluestore"
.. end
.. note::
.. note::
Regarding number of placement groups (PGs)
Regarding number of placement groups (PGs)
...
@@ -187,7 +257,8 @@ An optional `cache tiering <http://docs.ceph.com/docs/jewel/rados/operations/cac
...
@@ -187,7 +257,8 @@ An optional `cache tiering <http://docs.ceph.com/docs/jewel/rados/operations/cac
can be deployed by formatting at least one cache device and enabling cache.
can be deployed by formatting at least one cache device and enabling cache.
tiering in the globals.yml configuration file.
tiering in the globals.yml configuration file.
To prepare an OSD as a cache device, execute the following operations:
To prepare a filestore OSD as a cache device, execute the following
operations:
.. code-block:: console
.. code-block:: console
...
@@ -195,6 +266,14 @@ To prepare an OSD as a cache device, execute the following operations:
...
@@ -195,6 +266,14 @@ To prepare an OSD as a cache device, execute the following operations:
.. end
.. end
.. note::
To prepare a bluestore OSD as a cache device, change the partition name in
the above command to "KOLLA_CEPH_OSD_CACHE_BOOTSTRAP_BS". The deployment of
bluestore cache OSD is the same as bluestore OSD.
.. end
Enable the Ceph cache tier in ``/etc/kolla/globals.yml``:
Enable the Ceph cache tier in ``/etc/kolla/globals.yml``:
.. code-block:: yaml
.. code-block:: yaml
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment