mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +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
|