Bug 708805 - [vdsm] [Storage] File preallocated raw image dose not allocate the whole space.
Summary: [vdsm] [Storage] File preallocated raw image dose not allocate the whole space.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Igor Lvovsky
QA Contact: David Naori
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-29 17:07 UTC by David Naori
Modified: 2013-03-01 04:53 UTC (History)
9 users (show)

Fixed In Version: vdsm-4.9-72.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:19:50 UTC
Target Upstream Version:


Attachments (Terms of Use)
full log. (1.08 MB, application/binary)
2011-05-29 17:07 UTC, David Naori
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.