rbd map w/ cephx
"rbd map" with "auth supported = cephx" doesn't work (using ceph at commit c8721b956):
# rbd create test1 --size 10248 --format 1 # grep auth /etc/ceph/ceph.conf auth supported = cephx # rbd map test1 add failed: (2) No such file or directory # rbd showmapped # perl -pi -e 's/cephx/none/' /etc/ceph/ceph.conf # service ceph restart # rbd map test1 # rbd showmapped id pool image snap device 1 rbd test1 - /dev/rbd1
#10 Updated by Chris Dunlop almost 11 years ago
Aha! That did it, thanks.
After installing cbc.ko (already had aes):
# grep auth /etc/ceph/ceph.conf auth supported = cephx # modprobe rbd # lsmod | egrep 'aes|cbc|rbd' rbd 19378 0 libceph 122328 1 rbd # rbd map test1 # rbd showmapped id pool image snap device 1 rbd test1 - /dev/rbd1 # lsmod | egrep 'aes|cbc|rbd' aes_x86_64 7920 0 aes_generic 27295 1 aes_x86_64 cbc 2814 0 rbd 19378 1 libceph 122328 1 rbd
Interesting, no google hits on the 2nd "error -2 building auth" message. Perhaps the kernel message and/or docs could be enhanced to suggest a solution? (Not that it would have helped me until you prompted me to check!). Of course, if/when Google indexes this page the point becomes moot!