rbd_inst.create

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

 

I’m using python scripts to create rbd images like described here http://docs.ceph.com/docs/giant/rbd/librbdpy/

rbd_inst.create(ioctx, 'myimage', size, old_format=False, features=1) seems to create a layering image

rbd_inst.create(ioctx, 'myimage', size, old_format=False, features=2) seems to create a stripped image

 

Setting up “rbd default format =2” in ceph.conf and just using the following (without feature=x)

rbd_inst.create(ioctx, 'myimage', size) seems to create a layered + stripped image

 

If someone could point me to the documentation about those bitmasks (features), that would be great J I cannot find it.

 

Moreover, when my images are created this way (using rbd_inst.create with python), no way to snapshot an image !

#rbd snap create rbd/myimage@snap1

…. -1 librbd: failed to create snap id: (22) Invalid argument

 

Same thing with img.create_snap(snap) in python, snapshots are not created.

 

 

 

 

[@@ THALES GROUP INTERNAL @@]

 

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux