Hi<br><br>I read from an article that said use preallocation can improve disk I/O performance in kvm, when I add it to openstack, suck error come to me<br><br>(nova.rpc.amqp): TRACE: Stderr: <span style="color:rgb(255,0,0)">'Backing file and preallocation cannot be used at the same time</span>\nqemu-img: /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/instances/instance-0000000e/disk: error while creating qcow2: Invalid argument\n'<br>
<br>I was added it to utils.py in virt/libvirt directory (line 77)<br><br>def create_cow_image(backing_file, path):<br> """Create COW image<br><br> Creates a COW image with the given backing file<br><br>
:param backing_file: Existing image on which to base the COW image<br> :param path: Desired location of the COW image<br> """<br> execute(FLAGS.qemu_img, 'create', '-f', 'qcow2', '-o',<br>
'preallocation=metadata,cluster_size=2M,backing_file=%s' %<br> backing_file, path)<br><br>here is the article: <a href="http://itscblog.tamu.edu/improve-disk-io-performance-in-kvm/">http://itscblog.tamu.edu/improve-disk-io-performance-in-kvm/</a><br clear="all">
<br>so what is Backing file for, can I disable it for use preallocation cause I can't got both<br><br>Thanks<br><br>-- <br><font><span style="font-family:courier new,monospace;color:rgb(51,51,255)"><br>===========================</span><span style="font-family:courier new,monospace;color:rgb(51,51,255)"></span><br>
William Herry<br><br style="font-family:courier new,monospace;color:rgb(51,51,255)"><span style="font-family:courier new,monospace;color:rgb(0,0,0)">WilliamHerryChina@Gmail.com</span></font><font><span style="font-family:courier new,monospace;color:rgb(0,0,0)"></span><br>
</font><br>