Mapping Ceph Block Device
Now that we have created a block device on a Ceph cluster, in order to use this block device, we need to map it to the client machine. To do this, execute the following commands from the client-node1 machine.
How to do it...
- Map the block device to the
client-node1:
# rbd map --image rbd1 --name client.rbd
Note
Notice the mapping of the images has failed due to a feature set mismatch!
- With Ceph Jewel the new default format for RBD images is 2 and Ceph Jewel default configuration includes the following default Ceph Block Device features:
layering: layering supportexclusive-lock: exclusive locking supportobject-map: object map support (requiresexclusive-lock)deep-flatten: snapshot flatten supportfast-diff: fast diff calculations (requiresobject-map) Using the krbd (kernel rbd) client onclient-node1we will be unable to map the block device image on CentOS kernel 3.10 as this kernel does not supportobject-map,deep-flattenandfast-diff(support was introduced...