Released in the last day or so comparing qcow2 vs. raw images in glance. https://youtu.be/GJCNWeZE7rk?t=635 On Fri, Oct 28, 2016 at 1:48 AM, Eugen Block <eblock@xxxxxx> wrote: > Hi, > > from my little experience (it's really not much) you should not store the > images as qcow, but I'm not sure if it depends on your purpose. > I have an Openstack environment and when I tried to get it running with Ceph > I uploaded my images as qcow2. But then I had problems getting VMs started > in Openstack. After I realised that the images were not raw I had to convert > them and upload them again into the cloud, and then they worked perfectly > fine. > > Regards, > Eugen > > Zitat von Ahmed Mostafa <ahmedmostafadev@xxxxxxxxx>: > > >> Hello, >> >> Going through the documentation I am aware that I should be using RAW >> images instead of Qcow2 when storing my images in ceph. >> >> I have carried a small test to understand how this is going. >> >> [root@ ~]# qemu-img create -f qcow2 test.qcow2 100G >> Formatting 'test.qcow2', fmt=qcow2 size=107374182400 encryption=off >> cluster_size=65536 lazy_refcounts=off >> [root@ ~]# qemu-img info test.qcow2 >> image: test.qcow2 >> file format: qcow2 >> virtual size: 100G (107374182400 bytes) >> disk size: 196K >> cluster_size: 65536 >> Format specific information: >> compat: 1.1 >> lazy refcounts: false >> >> >> After that i havce imported the image to my ceph cluster: >> >> [root@ ~]# rbd import test.qcow2 --pool openstack_images >> rbd: --pool is deprecated for import, use --dest-pool >> Importing image: 100% complete...done. >> >> >> Now, watching the size of the image and it's information : >> >> [root@ ~]# rbd info openstack_images/test.qcow2 >> rbd image 'test.qcow2': >> size 194 kB in 1 objects >> order 22 (4096 kB objects) >> block_name_prefix: rbd_data.123ca2ae8944a >> format: 2 >> features: layering, exclusive-lock, object-map, fast-diff, >> deep-flatten >> flags: >> >> So, what does this exactly mean ? am i able to store qcow2 ? Is it safe to >> store qcow2? in the backend, how did that happen , were the image >> converted >> somehow to raw ? have the other part of the image that did not have any >> information stored trimmed ? >> >> Thank you > > > > > -- > Eugen Block voice : +49-40-559 51 75 > NDE Netzdesign und -entwicklung AG fax : +49-40-559 51 77 > Postfach 61 03 15 > D-22423 Hamburg e-mail : eblock@xxxxxx > > Vorsitzende des Aufsichtsrates: Angelika Mozdzen > Sitz und Registergericht: Hamburg, HRB 90934 > Vorstand: Jens-U. Mozdzen > USt-IdNr. DE 814 013 983 > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- Cheers, Brad _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com