Creating Ceph pools for OpenStack

Create Ceph storage pools to store images, volumes, virtual machine disks, and backup data for OpenStack services.

Before you begin

Before you begin, make sure that you have the prerequisites defined in Installing and configuring Ceph for OpenStack and access to a Ceph Monitor node.

About this task

Ceph pools are used by OpenStack services to store different types of data such as images, volumes, guest virtual machine disks, and backups. Creating separate pools helps isolate workloads and allows tuning based on usage patterns.

Procedure

  1. Verify that the Ceph cluster is running and in a healthy state.

    Run the following command on a Ceph monitor node:

    ceph -s

    Ensure that the cluster reports a HEALTH_OK status.

  2. Create Ceph pools for OpenStack workloads.

    The following example creates pools used by OpenStack services, where 128 represents the number of placement groups (PGs) configured for each pool.

    [root@rbd-client ~]# ceph osd pool create volumes 128
    [root@rbd-client ~]# ceph osd pool create backups 128
    [root@rbd-client ~]# ceph osd pool create images 128
    [root@rbd-client ~]# ceph osd pool create vms 128

Results

Ceph storage pools required for OpenStack services are created and available. These pools can now be configured as backends for Glance, Cinder, and Nova.

What to do next

IBMrecommends calculating an appropriate number of placement groups based on the size, number of OSDs, and workload characteristics of the Ceph cluster.