Skip to contentSkip to conversation

rbd map error with new rbd format

DISCUSSION Martin Mailand 2 participants 2 messages Sep 12, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

whilst testing the new rbd layering feature I found a problem with rbd map. It seems rbd map doesn't support the new format.

-martin

ceph -v
ceph version 0.51-265-gc7d11cd (commit:c7d11cd7b813a47167108c160358f70ec1aab7d6)

rbd create --size 100000 --new-format new
rbd map new
add failed: (2) No such file or directory

rbd create --size 100000 old
rbd map old
rbd showmapped

id      pool    image   snap    device
1       rbd     old     -       /dev/rbd1

rbd info new
rbd image 'new':

        size 100000 MB in 25000 objects
        order 22 (4096 KB objects)
        block_name_prefix: rbd_data.101e1a89b511
        old format: False
        features: layering
rbd info old
rbd image 'old':
        size 100000 MB in 25000 objects
        order 22 (4096 KB objects)
        block_name_prefix: rb.0.1021.23697452
        old format: True
        features:
#1 lore raw
Quoted 4 lines · Martin Mailand

Hi,

whilst testing the new rbd layering feature I found a problem with rbd map. It seems rbd map doesn't support the new format.

Yeah, format 2 and layering support is in progress for kernel rbd, but not ready yet. The userspace side is all ready in the master branch, but it takes more time to implement in the kernel.

Btw, instead of --new-format you should use --format 2. It's in the man page in the master branch.

Josh

Quoted 35 lines

-martin

ceph -v
ceph version 0.51-265-gc7d11cd
(commit:c7d11cd7b813a47167108c160358f70ec1aab7d6)

rbd create --size 100000 --new-format new
rbd map new
add failed: (2) No such file or directory

rbd create --size 100000 old
rbd map old
rbd showmapped

id      pool    image   snap    device
1       rbd     old     -       /dev/rbd1

rbd info new
rbd image 'new':

         size 100000 MB in 25000 objects
         order 22 (4096 KB objects)
         block_name_prefix: rbd_data.101e1a89b511
         old format: False
         features: layering
rbd info old
rbd image 'old':
         size 100000 MB in 25000 objects
         order 22 (4096 KB objects)
         block_name_prefix: rb.0.1021.23697452
         old format: True
         features: