I ran virt-sparsify. So before running virt-sparsify it was 6.0GB and after it is 1.3GB.
Thanks Paras. On Tue, Aug 1, 2017 at 2:53 AM, Tomáš Vondra <von...@homeatcloud.cz> wrote: > Hi! > > How big are the actual image files? Because qcow2 is a sparse format, it > does not store zeroes. If the free space in one image is zeroed out, it > will convert much faster. If that is the problem, use „dd if=/dev/zero > of=temp;sync;rm temp“ or zerofree. > > Tomas > > > > *From:* Paras pradhan [mailto:pradhanpa...@gmail.com] > *Sent:* Monday, July 31, 2017 11:54 PM > *To:* openstack-operators@lists.openstack.org > *Subject:* [Openstack-operators] custom build image is slow > > > > Hello > > > > I have two qcow2 images uploaded to glance. One is CentOS 7 cloud image > downloaded from centos.org. The other one is custom built using CentOS > 7.DVD. When I create cinder volumes from them, volume creation from the > custom built image it is very very slow. > > > > > > CenOS qcow2: > > > > 2017-07-31 21:42:44.287 881609 INFO cinder.image.image_utils > [req-ea2d7b12-ae9e-45b2-8b4b-ea8465497d5a e090e605170a778610438bfabad7aa > 7764d0a77ef520ae392e2b59074c9f88cf 490910c1d4e1486d8e3a62d7c0ae698e - > d67a18e70dd9467db25b74d33feaad6d default] *Converted 8192.00 MB image at > 253.19 MB/s* > > > > Custom built qcow2: > > INFO cinder.image.image_utils [req-032292d8-1500-474d-95c7-2e8424e2b864 > e090e605170a778610438bfabad7aa7764d0a77ef520ae392e2b59074c9f88cf > 490910c1d4e1486d8e3a62d7c0ae698e - d67a18e70dd9467db25b74d33feaad6d > default] *Converted 10240.00 MB image at 32.22 MB/s* > > > > I used the following command to create the qcow2 file > > qemu-img create -f qcow2 custom.qcow2 10G > > > > What am I missing ? > > > > Thanks > Paras. > > > > >
_______________________________________________ OpenStack-operators mailing list OpenStack-operators@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators