Adding OSDs
Use this information to deploy OSDs on a specific device or host.
Cephadm does 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.
true in IBM Storage
Ceph.For information about tuning OSD memory automatically, see Automatically tuning OSD memory.
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 --refresh -
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_PATHExample
[ceph: root@host01 /]# ceph orch daemon add osd host02:/dev/sdb -
To 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