Creating images

Before adding a block device to a node, create a Ceph Block Device image for it in the Ceph storage cluster.

Prerequisites

  • A running IBM Storage Ceph cluster.

  • Root-level access to the client node.

Procedure

  1. To create a block device image, run the following command:

    Syntax

    rbd create IMAGE_NAME --size MEGABYTES --pool POOL_NAME

    Example

    [root@rbd-client ~]# rbd create image1 --size 1024 --pool pool1
    This example creates a 1 GB image named image1 that stores information in a pool named pool1.
    Note: Ensure the pool exists before creating an image.