Ceph for Windows - Unable to map

asked 2025-05-28 09:39:40 +0300

honeyw gravatar image

updated 2025-05-28 09:41:26 +0300

PS C:\Windows\system32> wnbd-client.exe -v wnbd-client.exe: 0.7.0 libwnbd.dll: 0.7.0 wnbd.sys: 0.7.0

PS C:\Windows\system32> rbd ls data_pool
OS-1-def-os-cleanwupanvm
OS-1-def-os-cleanwupanvm_snap_v0_defclone
test

PS C:\Windows\system32> rbd map data_pool/test
2025-05-28T14:21:29.903+0800 9  0 rbd-wnbd: Received control signal: 0. Exiting.
PS C:\Windows\system32> rbd info data_pool/test
rbd image 'test':
        size 10 GiB in 2560 objects
        order 22 (4 MiB objects)
        snapshot_count: 0
        id: fc2fd5454cf1
        block_name_prefix: rbd_data.fc2fd5454cf1
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        op_features:
        flags:
        create_timestamp: Wed May 28 13:12:16 2025
        access_timestamp: Wed May 28 13:12:16 2025
        modify_timestamp: Wed May 28 13:12:16 2025

PS C:\Windows\system32> rbd showmapped
id  pool  namespace  image  snap  device  disk_number  status

PS C:\Windows\system32> rbd map data_pool/test -f
2025-05-28T14:23:24.385+0800 1  0 ceph version 19.1.0 (9025b9024baf597d63005552b5ee004013630404) squid (rc), process rbd-wnbd, pid 4732
2025-05-28T14:23:24.385+0800 1  0 rbd-wnbd: Mapping RBD image: data_pool/test
2025-05-28T14:23:24.807+0800 1 -1 asok(000001B451228F30) AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen: failed to bind the UNIX domain socket to 'C:/ProgramData/ceph/client.admin.4732.asok': (17) File exists
2025-05-28T14:23:27.713+0800 1  0 libwnbd.dll!WnbdCreate INFO Mapped device. Connection id: 2. Bus: 0, target: 0, lun: 0.
2025-05-28T14:23:28.742+0800 1  0 rbd-wnbd: Successfully mapped image: data_pool/test. Windows disk path: \\.\PhysicalDrive1
2025-05-28T14:23:28.742+0800 1  0 rbd-wnbd: Successfully mapped RBD image: data_pool/test
2025-05-28T14:24:23.733+0800 1 -1 rbd-wnbd: The ceph service failed to map the image. Check the log file or pass '-f' (foreground mode) for additional information. Error: (22) Invalid argument

client:

版本  Windows 10 企业版 LTSC
版本号 21H2
安装日期    ‎2024/‎7/‎9
操作系统内部版本    19044.1288
体验  Windows Feature Experience Pack 120.2212.3920.0

ceph server:

ceph version 19.2.2 (0eceb0defba60152a8182f7bd87d164b639885b8) squid (stable)


Cannot map normally, can only mount in the foreground by adding -f parameter, please help me.


edit retag flag offensive close merge delete