Bug 708805

Summary: [vdsm] [Storage] File preallocated raw image dose not allocate the whole space.
Product: Red Hat Enterprise Linux 6 Reporter: David Naori <dnaori>
Component: vdsmAssignee: Igor Lvovsky <ilvovsky>
Status: CLOSED ERRATA QA Contact: David Naori <dnaori>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, dnaori, hateya, iheim, jlibosva, lpeer, mgoldboi, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: vdsm-4.9-72.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:19:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
full log. none

Description David Naori 2011-05-29 17:07:06 UTC
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.

Comment 2 Igor Lvovsky 2011-05-31 12:16:16 UTC
http://gerrit.usersys.redhat.com/#change,500

Comment 6 Jakub Libosvar 2011-06-08 14:45:04 UTC
Works in vdsm-4.9-73.el6.x86_64

Comment 7 errata-xmlrpc 2011-12-06 07:19:50 UTC
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