Bug 1370934 - Thin provisioned block disk exceed its thin provisioned size once a dd operation is being executed on the guest VM
Summary: Thin provisioned block disk exceed its thin provisioned size once a dd operat...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.18.15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ovirt-4.0.4
: ---
Assignee: Maor
QA Contact: Aharon Canan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-28 15:32 UTC by Maor
Modified: 2016-08-28 16:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Problem: A thin provisioned block disk might exceed its thin provisioned size. Solution: The true size of the disk might exceed the thin provisioned size since qcow header's overhead is being allocated on a minimize block size which is 1 GB
Clone Of:
Environment:
Last Closed: 2016-08-28 16:02:51 UTC
oVirt Team: Storage
amureini: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
output of getVmDevice (127.74 KB, image/png)
2016-08-28 15:32 UTC, Maor
no flags Details
The guest dd operation (25.25 KB, image/png)
2016-08-28 15:33 UTC, Maor
no flags Details
vdsm log (9.92 MB, text/plain)
2016-08-28 15:43 UTC, Maor
no flags Details

Description Maor 2016-08-28 15:32:13 UTC
Created attachment 1195054 [details]
output of getVmDevice

Description of problem:
A VM's disk declare 6GB space although its virtual size is only 5 GB (The disk does not contain any snapshots).

Creating a new VM with disk based on iSCSI with size of 5GB.
Run the VM and install a RHEL 7.2 OS on it.
Once the installation was finished use fdisk /dev/vda to find out which partitions are available and execute dd on the biggest partition.

Version-Release number of selected component (if applicable):
4.0

How reproducible:
100%

Steps to Reproduce:
1. Create a VM
2. Create a thin provision disk on iSCSI SD with 5 GB
3. Add a nic to the VM and edit the VM that the boot order will be first from network
4. Run the VM and install OS from network
5. log into the VM and execute dd with if=/dev/urandom and of is the VM device (/dev/vda2)

Actual results:
Once the dd operation is finished the true size of the VM reports 6GB although the virtual size is 5 GB

Expected results:
The true size should not exceed the virtual size of the disk which is 5 GB

Additional info:

Comment 1 Maor 2016-08-28 15:33:02 UTC
Created attachment 1195055 [details]
The guest dd operation

Comment 2 Maor 2016-08-28 15:43:17 UTC
Created attachment 1195056 [details]
vdsm log

Comment 3 Allon Mureinik 2016-08-28 15:50:11 UTC
Isn't this just the qcow header's overhead, coupled with the fact that we extend in 1GB chunks?

Comment 4 Maor 2016-08-28 16:02:51 UTC
(In reply to Allon Mureinik from comment #3)
> Isn't this just the qcow header's overhead, coupled with the fact that we
> extend in 1GB chunks?

Yep, that is indeed the issue (although a bit misleading for customers) closing it as not a bug.


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