mirror of
https://github.com/ceph/ceph
synced 2024-12-25 12:54:16 +00:00
286bdbfe24
Otherwise add_key() in set_kernel_secret() fails as if running against an ancient kernel and we fall back to secret= in options for the first image being mapped on the machine. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
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
|