Re: rbd_inst.create

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

 



Ok, I think I got it. It seems to come from here :

tracker.ceph.com/issues/6047

 

I’m trying to snapshot an image while I previously made a snapshot of my pool… whereas it just works fine when using a brand new pool. I’m using ceph v0.80.10 on Ubuntu 14.04. As I see, it has been patched since dumpling. Could it be a regression ?

 

 

 

De : ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] De la part de NEVEU Stephane
Envoyé : jeudi 26 novembre 2015 15:49
À : ceph-users@xxxxxxxxxxxxxx
Objet : rbd_inst.create

 

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