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

  1. 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 --refresh
  2. You 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/sdb
    • To deploy OSDs on any available and unused devices, use the --all-available-devices option.

      Example

      [ceph: root@host01 /]# ceph orch apply osd --all-available-devices

      NOTE: This command creates colocated WAL and DB daemons. If you want to create non-colocated daemons, do not use this command.