Support #9249
closedunable map stripe rbd
0%
Description
Hi
I have create stripe rbd,but i can't map this rbd.when i create normal rbd,it can be mapped.
this is info when i map the rbd:
root@gf-client-209 ~]# rbd map myimage --pool rbd
rbd: add failed: (22) Invalid argument
rbd info:
[root@gf-client-209 ~]# rbd info myimage
rbd image 'myimage':
size 20480 MB in 5120 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.12282ae8944a
format: 2
features: layering, striping
stripe unit: 16384 bytes
stripe count: 4
when i use command strace to trace the command “rbd map myimage --pool rbd”?i can see info
.......
write(3, "10.10.200.66:6789 name=admin,key"..., 59) = -1 EINVAL (Invalid argument)
.......
There is a normal rbd device name rbd1, when i use strace to trace the command "rbd map rbd1 --pool rbd"
......
write(3, "10.10.200.66:6789 name=admin,key"..., 54) = 54
......
[root@gf-client-209 ~]# rbd showmapped
id pool image snap device
0 rbd rbd1 - /dev/rbd0
[root@gf-client-209 ~]# rbd info rbd1
rbd image 'rbd1':
size 20480 MB in 5120 objects
order 22 (4096 kB objects)
block_name_prefix: rb.0.103a.2ae8944a
format: 1
Ceph Version:
ceph version 0.80.5 (38b73c67d375a2552d8ed67843c8a65c2c0feba6)