[one-users] qcow2: empty datablock image creation with preallocation

Jaime Melis jmelis at c12g.com
Tue Dec 3 04:09:10 PST 2013


Hi Lorenzo,

not out of the box. You will need to manually modify the DS drivers. You
will need to modify:
https://github.com/OpenNebula/one/blob/release-4.4/src/datastore_mad/remotes/fs/mkfs

And replace the 'dd' command with your own.

I would probably do something like: https://gist.github.com/jmelis/7768171
(I haven't tested it, so it probably has bugs. You also need to write the
actual command)

Let me know if you need any further advice.

Cheers,
Jaime


On Mon, Dec 2, 2013 at 6:29 PM, Lorenzo Faleschini <
lorenzo.faleschini at nordestsystems.com> wrote:

> Hi
>
> is it possible to create in sunstone (or via CLI) an empty-datablock qcow2
> with preallocation (-o preallocation=metadata).
>
> I need it to avoid the auto-grow overhead.
>
> for now I create the prealloc qcow2 image then I import it in one.
>
> is it posible to avoid this step?
> any suggestions or alternatives?
>
> thanks
>
> Lorenzo
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Jaime Melis
C12G Labs - Flexible Enterprise Cloud Made Simple
http://www.c12g.com | jmelis at c12g.com

--

Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at abuse at c12g.com and delete the e-mail and
attachments and any copy from your system. C12G's thanks you for your
cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131203/a880f336/attachment-0002.htm>


More information about the Users mailing list