45Drives Knowledge Base
KB450425 - Ceph Windows RBD Image Mapping
https://knowledgebase.45drives.com/kb/kb450425-ceph-windows-rbd-image-mapping/

KB450425 - Ceph Windows RBD Image Mapping

Posted on June 11, 2021 by Austin Axworthy


Scope/Description

Prerequisites

Steps

Installing Ceph for Windows

https://cloudbase.it/ceph-for-windows/

Creating Windows Client Ceph Conf and Keyring

cat /etc/ceph/ceph.conf


    log to stderr = true
    ; Uncomment the following in order to use the Windows Event Log
    ; log to syslog = true

    run dir = C:/ProgramData/ceph/out
    crash dir = C:/ProgramData/ceph/out

    ; Use the following to change the cephfs client log level
    ; debug client = 2

    keyring = C:/ProgramData/ceph/keyring
    ; log file = C:/ProgramData/ceph/out/$name.$pid.log
    admin socket = C:/ProgramData/ceph/out/$name.$pid.asok

    ; client_permissions = true
    ; client_mount_uid = 1000
    ; client_mount_gid = 1000

    mon host = <ceph_monitor_addresses> #Update this line to match /etc/ceph/ceph.conf on the cluster
cat /etc/ceph/ceph.client.admin.keyring

Mapping RBD image on Windows

rbd map "pool"/"rbdimage"

Verification

Troubleshooting

ceph config set mon mon_warn_on_insecure_global_id_reclaim_allowed false
ceph config set mon mon_warn_on_insecure_global_id_reclaim false