Hello Jason, here it is: [root@vfnphav1a ceph]# rbd snap protect ssd2r/template-win2k8-20150420_@snap 2015-04-20 18:33:43.635427 7fa0344ca760 20 librbd::ImageCtx: enabling caching... 2015-04-20 18:33:43.635458 7fa0344ca760 20 librbd::ImageCtx: Initial cache settings: size=33554432 num_objects=10 max_dirty=25165824 target_dirty=16777216 max_dirty_age=1 2015-04-20 18:33:43.635497 7fa0344ca760 20 librbd: open_image: ictx = 0x4672010 name = 'template-win2k8-20150420_' id = '' snap_name = '' 2015-04-20 18:33:43.636792 7fa0344ca760 20 librbd: detect format of template-win2k8-20150420_ : new 2015-04-20 18:33:43.637901 7fa0344ca760 10 librbd::ImageCtx: cache bytes 33554432 order 22 -> about 42 objects 2015-04-20 18:33:43.637906 7fa0344ca760 10 librbd::ImageCtx: init_layout stripe_unit 4194304 stripe_count 1 object_size 4194304 prefix rbd_data.5e6236db3ab3 format rbd_data.5e6236db3ab3.%016llx 2015-04-20 18:33:43.637932 7fa0344ca760 10 librbd::ImageWatcher: registering image watcher 2015-04-20 18:33:43.643651 7fa0344ca760 20 librbd: ictx_refresh 0x4672010 2015-04-20 18:33:43.645062 7fa0344ca760 20 librbd: new snapshot id=6 name=snap size=42949672960 features=0 2015-04-20 18:33:43.645075 7fa0344ca760 20 librbd::ImageCtx: finished flushing cache 2015-04-20 18:33:43.645083 7fa0344ca760 20 librbd: snap_protect 0x4672010 snap 2015-04-20 18:33:43.645089 7fa0344ca760 20 librbd: ictx_check 0x4672010 2015-04-20 18:33:43.645090 7fa0344ca760 -1 librbd: snap_protect: image must support layering rbd: protecting snap failed: (38) Function not implemented 2015-04-20 18:33:43.645115 7fa0344ca760 20 librbd: close_image 0x4672010 2015-04-20 18:33:43.645117 7fa0344ca760 10 librbd::ImageCtx: canceling async requests: count=0 2015-04-20 18:33:43.645148 7fa0344ca760 10 librbd::ImageWatcher: unregistering image watcher In the meantime, I realised what could be the difference here.. the image I've got trouble protecting snapshot is created using python rbd binding.. here's simple script to reproduce: #!/usr/bin/python import rados import rbd rc=rados.Rados(conffile='/etc/ceph/ceph.conf') rc.connect() ioctx = rc.open_ioctx('ssd2r') rbdi=rbd.RBD() rbdi.create(ioctx, 'test', 1024**2, old_format=False) will it help? BR nik On Mon, Apr 20, 2015 at 11:35:07AM -0400, Jason Dillaman wrote: > Can you add "debug rbd = 20" your ceph.conf, re-run the command, and provide a link to the generated librbd log messages? > > Thanks, > > -- > > Jason Dillaman > Red Hat > dillaman@xxxxxxxxxx > http://www.redhat.com > > > ----- Original Message ----- > From: "Nikola Ciprich" <nikola.ciprich@xxxxxxxxxxx> > To: ceph-users@xxxxxxxxxxxxxx > Sent: Monday, April 20, 2015 10:54:17 AM > Subject: hammer (0.94.1) - "image must support layering(38) Function not implemented" on v2 image > > Hello, > > I'd like to ask about another problem I've stumbled upon.. > > I've got format 2 image + snapshot, and while trying to protect snapshot > I'm getting following error: > > [root@vfnphav1a ~]# rbd ls -l ssd2r > NAME SIZE PARENT FMT PROT LOCK > fio_test 4096M 2 > template-win2k8-20150420 40960M 2 > template-win2k8-20150420@snap 40960M 2 > > [root@vfnphav1a ~]# rbd snap protect ssd2r/template-win2k8-20150420@snap > rbd: protecting snap failed: 2015-04-20 16:47:31.587489 7f5e9e4fa760 -1 librbd: snap_protect: image must support layering(38) Function not implemented > > > am I doing something wrong? > > thanks a lot in advance for reply > > BR > > nik > > > -- > ------------------------------------- > Ing. Nikola CIPRICH > LinuxBox.cz, s.r.o. > 28.rijna 168, 709 00 Ostrava > > tel.: +420 591 166 214 > fax: +420 596 621 273 > mobil: +420 777 093 799 > www.linuxbox.cz > > mobil servis: +420 737 238 656 > email servis: servis@xxxxxxxxxxx > ------------------------------------- > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- ------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28.rijna 168, 709 00 Ostrava tel.: +420 591 166 214 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@xxxxxxxxxxx -------------------------------------
Attachment:
pgp6TacDw4wjW.pgp
Description: PGP signature
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com