Adding OSDs
Cephadm will not provision an OSD on a device that is not available. A storage device is considered available if it meets all of the following conditions:
The device must have no partitions.
The device must not be mounted.
The device must not contain a file system.
The device must not contain a Ceph BlueStore OSD.
The device must be larger than 5 GB.
IMPORTANT: By default, the osd_memory_target_autotune parameter is
set to true in IBM Storage Ceph 5.3.
Prerequisites
A running IBM Storage Ceph cluster.
Procedure
List the available devices to deploy OSDs:
Syntax
ceph orch device ls [--hostname=HOSTNAME1 HOSTNAME2] [--wide] [--refresh]Example
[ceph: root@host01 /]# ceph orch device ls --wide --refreshYou can either deploy the OSDs on specific hosts or on all the available devices:
To create an OSD from a specific device on a specific host:
Syntax
ceph orch daemon add osd HOSTNAME:_DEVICE_PATH_Example
[ceph: root@host01 /]# ceph orch daemon add osd host02:/dev/sdbTo deploy OSDs on any available and unused devices, use the
--all-available-devicesoption.Example
[ceph: root@host01 /]# ceph orch apply osd --all-available-devicesNOTE: This command creates colocated WAL and DB daemons. If you want to create non-colocated daemons, do not use this command.
Reference
For more information about drive specifications for OSDs, see Advanced service specifications and filters for deploying OSDs
For more information about zapping devices to clear data on devices, see Zapping devices for Ceph OSD deployment