Activating OSDs

The activation process for a Ceph OSD enables a systemd unit at boot time, which allows the correct OSD identifier and its UUID to be enabled and mounted.

Before you begin

  • A running IBM Storage Ceph cluster.
  • Root-level access to the Ceph OSD node.
  • Ceph OSDs prepared by the ceph-volume utility.

Procedure

  1. Get the OSD ID and OSD FSID from an OSD node.

    Example

    [ceph: root@host01 /]# ceph-volume lvm list
  2. Activate the OSD.

    ceph-volume lvm activate --bluestore OSD_ID OSD_FSID

    Example

    [ceph: root@host01 /]# ceph-volume lvm activate --bluestore 10 7ce687d9-07e7-4f8f-a34e-d1b0efb89920

    To activate all OSDs that are prepared for activation, use the --all option.

    Example

    [ceph: root@host01 /]# ceph-volume lvm activate --all
  3. Optionally, you can use the trigger subcommand. This command cannot be used directly, and it is used by systemd so that it proxies input to ceph-volume lvm activate. This parses the metadata coming from systemd and startup, detecting the UUID and ID associated with an OSD.

    ceph-volume lvm trigger SYSTEMD_DATA

    Here the SYSTEMD_DATA is in OSD_ID-OSD_FSID format.

    Example

    [ceph: root@host01 /]# ceph-volume lvm trigger 10 7ce687d9-07e7-4f8f-a34e-d1b0efb89920