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
- Get the specification of the
device.Example
[root@rbd-client ~]# rbd device list -
Unmap the block device image:
Syntax
rbd device unmap /dev/rbd/POOL_NAME/IMAGE_NAMEExample
[root@rbd-client ~]# rbd device unmap /dev/rbd/pool1/image1