root@lab8107:~/ceph# man rbd ··· --image-feature feature-name Specifies which RBD format 2 feature should be enabled when creating an image. Multiple features can be enabled by repeating this option multiple times. The following features are supported:
· layering: layering support · striping: striping v2 support · exclusive-lock: exclusive locking support · object-map: object map support (requires exclusive-lock) · fast-diff: fast diff calculations (requires object-map) · deep-flatten: snapshot flatten support
root@lab8107:~/ceph# rbd feature enable test exclusive-lock root@lab8107:~/ceph# rbd feature enable test object-map root@lab8107:~/ceph# rbd feature enable test fast-diff 2016-03-24 21:17:23.822720 7f241a5447c0 -1 librbd::ObjectMap: error refreshing object map: (2) No such file or directory 2016-03-24 21:17:23.823191 7f241a5447c0 -1 librbd::ObjectMap: error refreshing object map: (2) No such file or directory
来查看下 rbd info
1 2 3 4 5 6 7 8 9 10 11
root@lab8107:~/ceph# rbd info test 2016-03-24 21:18:37.972235 7f9918a7d7c0 -1 librbd::ObjectMap: error refreshing object map: (2) No such file or directory rbd image 'test': size 4000 MB in 2016-03-24 21:18:37.972900 7f9918a7d7c0 -1 1000librbd::ObjectMap: error refreshing object map: (2) No such file or directory objects