mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
doc: Added sudo and cleaner instruction for unmap.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
This commit is contained in:
parent
f16a9c46ea
commit
b91becadf8
@ -81,18 +81,17 @@ devices mapped to kernel objects, execute the following::
|
||||
|
||||
ls /sys/bus/rbd/devices
|
||||
|
||||
|
||||
Unmapping a Block Device
|
||||
------------------------
|
||||
|
||||
To unmap an RBD image with the ``rbd`` command, specify the ``rm`` option
|
||||
and the device name (i.e., by convention the same as the RBD image name). ::
|
||||
|
||||
rbd unmap {device}
|
||||
sudo rbd unmap /dev/rbd/{poolname}/{imagename}
|
||||
|
||||
For example::
|
||||
|
||||
rbd unmap foo
|
||||
sudo rbd unmap /dev/rbd/rbd/foo
|
||||
|
||||
To unmap an RBD image from a kernel object, specify its index and use ``tee``
|
||||
to call ``remove`` as follows, but replace ``{device-number}`` with the number
|
||||
|
Loading…
Reference in New Issue
Block a user