Re: rbd_inst.create

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

 



Ok thank you Jason.

[@@ THALES GROUP INTERNAL @@]

-----Message d'origine-----
De : Jason Dillaman [mailto:dillaman@xxxxxxxxxx] 
Envoyé : lundi 30 novembre 2015 15:38
À : NEVEU Stephane
Cc : Ceph Users; Gregory Farnum
Objet : Re:  rbd_inst.create

... and once you create a pool-level snapshot on a pool, there is no way to convert that pool back to being compatible with RBD self-managed snapshots.

As for the RBD image feature bits, they are defined within rbd.py.  On master, they currently are as follows:

RBD_FEATURE_LAYERING = 1
RBD_FEATURE_STRIPINGV2 = 2
RBD_FEATURE_EXCLUSIVE_LOCK = 4
RBD_FEATURE_OBJECT_MAP = 8
RBD_FEATURE_FAST_DIFF = 16
RBD_FEATURE_DEEP_FLATTEN = 32
RBD_FEATURE_JOURNALING = 64

-- 

Jason Dillaman 


----- Original Message ----- 

> From: "Gregory Farnum" <gfarnum@xxxxxxxxxx>
> To: "NEVEU Stephane" <stephane.neveu@xxxxxxxxxxxxxxx>
> Cc: "Ceph Users" <ceph-users@xxxxxxxxxxxxxx>
> Sent: Monday, November 30, 2015 8:17:17 AM
> Subject: Re:  rbd_inst.create

> On Nov 27, 2015 3:34 AM, "NEVEU Stephane" < 
> stephane.neveu@xxxxxxxxxxxxxxx >
> wrote:
> >
> > 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 ?
> Pool snapshots and the "self-managed" snapshots used by rbd are incompatible.
> You have to pick one or the other on each pool.
> >
> >
> >
> >
> >
> >
> >
> > 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
> >

> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux