.. _drivegroups:
-===========
-DriveGroups
-===========
+=========================
+OSD Service Specification
+=========================
-DriveGroups are a way to describe a cluster layout using the properties of disks.
+:ref:`orchestrator-cli-service-spec` of type ``osd`` are a way to describe a cluster layout using the properties of disks.
It gives the user an abstract way tell ceph which disks should turn into an OSD
with which configuration without knowing the specifics of device names and paths.
for each device and each host, we can define a yaml|json file that allows us to describe
the layout. Here's the most basic example.
-Create a file called i.e. drivegroups.yml
+Create a file called i.e. osd_spec.yml
.. code-block:: yaml
and pass it to `osd create` like so::
- [monitor 1] # ceph orch apply osd -i /path/to/drivegroup.yml
+ [monitor 1] # ceph orch apply osd -i /path/to/osd_spec.yml
This will go out on all the matching hosts and deploy these OSDs.
.. code-block:: yaml
service_type: osd
- service_id: example_drive_group
+ service_id: example_osd_spec
placement:
host_pattern: '*'
data_devices:
.. code-block:: yaml
service_type: osd
- service_id: drive_group_default
+ service_id: osd_spec_default
placement:
host_pattern: '*'
data_devices:
.. code-block:: yaml
service_type: osd
- service_id: drive_group_default
+ service_id: osd_spec_default
placement:
host_pattern: '*'
data_devices:
.. code-block:: yaml
service_type: osd
- service_id: drive_group_default
+ service_id: osd_spec_default
placement:
host_pattern: '*'
data_devices:
.. code-block:: yaml
service_type: osd
- service_id: drive_group_hdd
+ service_id: osd_spec_hdd
placement:
host_pattern: '*'
data_devices:
limit: 2 (db_slots is actually to be favoured here, but it's not implemented yet)
service_type: osd
- service_id: drive_group_ssd
+ service_id: osd_spec_ssd
placement:
host_pattern: '*'
data_devices:
.. code-block:: yaml
service_type: osd
- service_id: drive_group_node_one_to_five
+ service_id: osd_spec_node_one_to_five
placement:
host_pattern: 'node[1-5]'
data_devices:
service_type: osd
- service_id: drive_group_six_to_ten
+ service_id: osd_spec_six_to_ten
placement:
host_pattern: 'node[6-10]'
data_devices:
db_devices:
model: SSD-123-foo
-This will apply different drive groups to different hosts depending on the `host_pattern` key.
+This applies different OSD specs to different hosts depending on the `host_pattern` key.
Dedicated wal + db
------------------
Size: 256GB
-The drivegroup for this case would look like this (using the `model` filter)
+The OSD spec for this case would look like the following (using the `model` filter):
.. code-block:: yaml
service_type: osd
- service_id: drive_group_default
+ service_id: osd_spec_default
placement:
host_pattern: '*'
data_devices: