Appendix J. OSD Ansible settings


These are the most common configurable OSD Ansible parameters.

osd_auto_discovery

Automatically find empty devices to use as OSDs.

Value
false
Required
No
Notes
Cannot be used with devices. Cannot be used with purge-docker-cluster.yml or purge-cluster.yml. To use those playbooks, comment out osd_auto_discovery and declare the OSD devices using devices.
devices

List of devices where Ceph’s data is stored.

Value
User-defined
Required
Yes, if specifying a list of devices.
Notes
Cannot be used when osd_auto_discovery setting is used. When using the devices option, ceph-volume lvm batch mode creates the optimized OSD configuration.
dmcrypt

To encrypt the OSDs.

Value
true
Required
No
Notes
The default value is false.
lvm_volumes

A list of FileStore or BlueStore dictionaries.

Value
User-defined
Required
Yes, if storage devices are not defined using the devices parameter.
Notes
Each dictionary must contain a data, journal and data_vg keys. Any logical volume or volume group must be the name and not the full path. The data, and journal keys can be a logical volume (LV) or partition, but do not use one journal for multiple data LVs. The data_vg key must be the volume group containing the data LV. Optionally, the journal_vg key can be used to specify the volume group containing the journal LV, if applicable.
osds_per_device

The number of OSDs to create per device.

Value
User-defined
Required
No
Notes
The default value is 1.
osd_objectstore

The Ceph object store type for the OSDs.

Value
bluestore or filestore
Required
No
Notes
The default value is bluestore. Required for upgrades.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.