mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
11 lines
269 B
Perl
11 lines
269 B
Perl
|
|
||
|
$ sudo modprobe -r rbd
|
||
|
$ sudo modprobe -r libceph
|
||
|
$ lsmod | grep libceph
|
||
|
[1]
|
||
|
$ rbd create --size 1 img
|
||
|
$ DEV=$(sudo rbd map img)
|
||
|
$ sudo grep -q ',key=' /sys/bus/rbd/devices/${DEV#/dev/rbd}/config_info
|
||
|
$ sudo rbd unmap $DEV
|
||
|
$ rbd rm --no-progress img
|