Support #20183
Ceph RBD image-feature
0%
Description
How can I run an image with all the features?
I am running:
cephuser@ceph01u:~$ ceph -v
ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
cephuser@ceph01u:~$ uname -r
4.12.0-041200rc4-generic
I can only set layering and exclusive-lock.
When I try to map them, I get:
cephuser@ceph01u:~$ sudo rbd map satapool/sataimg
rbd: sysfs write failed
RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable".
In some cases useful info is found in syslog - try "dmesg | tail" or so.
rbd: map failed: (6) No such device or address
what do I need to make all the rest work?
History
#1 Updated by Jason Dillaman almost 7 years ago
- Project changed from Ceph to rbd
#2 Updated by roshni chatterjee over 6 years ago
Hi ,
rbd image can be mapped to a block device only if "--image-feature=layering" is set on the image.
This can be done by using the following command -
rbd create --size <imagesize> <poolname>/<image-name> --image-feature=layering
Now if we try to map the image with a block device it can be done successfully using the following -
rbd map <poolname>/<image-name>
To enable other features of image the following steps are to be done -
#rbd feature enable <poolname>/<image-name> exclusive-lock
#rbd feature enable <poolname>/<image-name> object-map
#rbd feature enable <poolname>/<image-name> journaling
#rbd feature enable <poolname>/<image-name> fast-diff