Hide Forgot
Created attachment 500339 [details] full vdsm log Description of problem: Corrupted template is created when- copyImage from RAW-Preallocated to RAW-Preallocated (dd is used) Steps: 1)Installed rhel6 on vm and created a template from it 2)Created vm from this template > boot fails. Version-Release number of selected component (if applicable): vdsm-4.9-68.el6.x86_64 c2c65859-37c0-401a-96ba-1ffc74ca1252::INFO::2011-05-22 19:06:08,347::image::657::Storage.Image::(copy) sdUUID=da26e8a5-40d3-4f78-84be-8f74db85a8b1 vmUUID=8d42fa12-bf6d-4223-8a1c -0267a716eafa srcImgUUID=dd0a3653-9794-4cee-984c-c2be9ae3d1a6 srcVolUUID=6151ba00-ca92-4d3c-a212-1608783a446a dstImgUUID=207796ec-09ba-43af-8ff6-6d98d5b8da7c dstVolUUID=7bd88b25 -0551-4480-90f7-ae8c758232be dstSdUUID=da26e8a5-40d3-4f78-84be-8f74db85a8b1 volType=6 volFormat=RAW preallocate=PREALLOCATED force=False postZero=False c2c65859-37c0-401a-96ba-1ffc74ca1252::DEBUG::2011-05-22 19:06:08,381::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/207796ec-09ba-43af-8ff6-6d98d5b8da7c/7bd88b25-0551-4480-90f7-ae8c758232be bs=1048576 seek=0 skip=0 conv=notrunc count=10 oflag=direct"' (cwd None) -tested copyImage with qemu-img convert and it works well. How reproducible: 100% *full vdsm log attached.
*Copied the wrong part of the log: Here is the dd command: c2c65859-37c0-401a-96ba-1ffc74ca1252::DEBUG::2011-05-22 19:06:08,643::volume::937::Storage.Misc.excCmd::(qemuConvert) '/usr/bin/sudo -n /usr/bin/ionice -c2 -n7 /bin/su vdsm -s /bin/sh -c "/bin/dd if=/rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/dd0a3653-9794-4cee-984c-c2be9ae3d1a6/6151ba00-ca92-4d3 c-a212-1608783a446a of=/rhev/data-center/a5f6327d-bf81-47ab-b062-e1a8139ad7c1/da26e8a5-40d3-4f78-84be-8f74db85a8b1/images/207796ec-09ba-43af-8ff6-6d98d5b8da7c/7bd88b25-0551-448 0-90f7-ae8c758232be bs=1048576 seek=0 skip=0 conv=notrunc count=10 oflag=direct"' (cwd None)
http://gerrit.usersys.redhat.com/#change,499
*** Bug 709360 has been marked as a duplicate of this bug. ***
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