Unmapping a block device

You can unmap a block device image with the rbd command, by using the unmap option and providing the device name.

Prerequisites

  • A running IBM Storage Ceph cluster.

  • Root-level access to the node.

  • An image that is mapped.

Procedure

  1. Get the specification of the device.
    Example
    [root@rbd-client ~]# rbd device list
  2. Unmap the block device image:

    Syntax

    rbd device unmap /dev/rbd/POOL_NAME/IMAGE_NAME

    Example

    [root@rbd-client ~]# rbd device unmap /dev/rbd/pool1/image1