Hide Forgot
Created attachment 501628 [details] full log. Description of problem: Creation of a file RAW preallocated volume dose not allocate the hole space: created 50G volume- (the volume consume only 23G = the actual used space): [root@camel-vdsb d9189ad5-b940-4957-a95e-89fdb1030897]# pwd /rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/d9189ad5-b940-4957-a95e-89fdb1030897 [root@camel-vdsb d9189ad5-b940-4957-a95e-89fdb1030897]# du -h 23G . the problem is that on creation dd is followed by qemu-img create: cdd10b15-3faa-497b-b6a1-a373d12a1577::DEBUG::2011-05-29 12:57:07,678::fileVolume::113::Storage.Misc.excCmd::(create) '/usr/bin/sudo -n /usr/bin/ionice -c2 -n7 /bin/su vdsm -s /bin/sh -c "/bin/dd if=/dev/zero of=/rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/d9189ad5-b940-4957-a95e-89fdb1030897/31916bcc-9853-4879-9f9e-f03ec48fa964 bs=1048576 seek=0 skip=0 conv=notrunc count=51200 oflag=direct"' (cwd None) cdd10b15-3faa-497b-b6a1-a373d12a1577::DEBUG::2011-05-29 13:11:46,178::volume::875::Storage.Misc.excCmd::(createVolume) '/usr/bin/qemu-img create -f raw /rhev/data-center/a5f6327 d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/d9189ad5-b940-4957-a95e-89fdb1030897/31916bcc-9853-4879-9f9e-f03ec48fa964 52428800K' (cwd None) Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1.create vm with raw preallocated volume on nfs or local storage. Actual results: Expected results: Additional info: full vdsm log attached.
http://gerrit.usersys.redhat.com/#change,500
Works in vdsm-4.9-73.el6.x86_64
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2011-1782.html