--_000_D86C48DF8800164BBE50B87623F7AC9585F500F2ln2wio001devtra_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
If I create a preallocated disk for a VM, I see the disk image file listing=
as the size I requested (100G):
cd /rhev/data-center/mnt/storage_host1:_vol_pa1__nas__01b__oVirt__prod__01/=
53560d43-874a-49c5-9c5a-8b90487c79f8/images/d97f7706-3662-40bf-9358-80e0dc5=
1bff4
root@ovirt_host> ls -l
total 105064644
-rw-rw---- 1 vdsm kvm 107374182400 Aug 5 10:57 75c14559-e18f-4cc8-a3fe-bc0=
de507720b
-rw-rw---- 1 vdsm kvm 1048576 Aug 5 10:57 75c14559-e18f-4cc8-a3fe-bc0=
de507720b.lease
-rw-r--r-- 1 vdsm kvm 313 Aug 5 10:57 75c14559-e18f-4cc8-a3fe-bc0=
de507720b.meta
and the corresponding space used on disk matches
root@ ovirt_host > du -sh *
101G 75c14559-e18f-4cc8-a3fe-bc0de507720b
1.1M 75c14559-e18f-4cc8-a3fe-bc0de507720b.lease
4.0K 75c14559-e18f-4cc8-a3fe-bc0de507720b.meta
If I then migrate that storage (while the VM is shutdown) to a new storage =
domain, the size on disk does not match the allocated size. In this case th=
ere is nothing in the disk yet so it shows as 0.
cd /rhev/data-center/mnt/storage_host2:_vol_pa1__ovirt__uatprod/1f2c2b48-1e=
77-4c98-a6da-5dc09b78cead/images/d97f7706-3662-40bf-9358-80e0dc51bff4
root@ ovirt_host> ls -l
total 1032
-rw-rw---- 1 vdsm kvm 107374182400 Aug 5 11:06 75c14559-e18f-4cc8-a3fe-bc0=
de507720b
-rw-rw---- 1 vdsm kvm 1048576 Aug 5 11:06 75c14559-e18f-4cc8-a3fe-bc0=
de507720b.lease
-rw-r--r-- 1 vdsm kvm 313 Aug 5 11:06 75c14559-e18f-4cc8-a3fe-bc0=
de507720b.meta
root@ ovirt_host > du -sh *
0 75c14559-e18f-4cc8-a3fe-bc0de507720b
1.1M 75c14559-e18f-4cc8-a3fe-bc0de507720b.lease
4.0K 75c14559-e18f-4cc8-a3fe-bc0de507720b.meta
oVirt still lists the disk as preallocated in the GUI but it is in fact thi=
n provisioned.
I see the same issue if I clone a preallocated VM. The size on disk ends up=
being the equivalent of a thin-provisioned disk. I also had the issue when=
importing VM's from an export domain when I had selected preallocated in t=
he import dialog box.
Is this a known issue? Should preallocated not mean preallocated on physica=
l disk?
Ovirt Engine is running 3.6.4.1-1.el6
The ovirt nodes are running:
OS Version: RHEL - 7 - 2.1511.el7.centos.2.10
Kernel Version: 3.10.0 - 327.4.5.el7.x86_64
KVM Version: 2.3.0 - 31.el7_2.7.1
LIBVIRT Version: libvirt-1.2.17-13.el7_2.2
VDSM Version: vdsm-4.17.23.2-0.el7.centos
SPICE Version: 0.12.4 - 15.el7
GlusterFS Version: [N/A]
CEPH Version: librbd1-0.80.7-3.el7
Many thanks,
Simon
--_000_D86C48DF8800164BBE50B87623F7AC9585F500F2ln2wio001devtra_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml"
xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word"
=
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"
xmlns=3D"http:=
//www.w3.org/TR/REC-html40"
<head
<meta http-equiv=3D"Content-Type"
content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"Microsoft
Word 15 (filtered medium)"
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.gdol3hyccnd
{mso-style-name:gdol3hyccnd;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /
</xml><![endif]--><!--[if gte mso
9]><xml
<o:shapelayout
v:ext=3D"edit"
<o:idmap v:ext=3D"edit"
data=3D"1" /
</o:shapelayout></xml><![endif]--
</head
<body lang=3D"EN-US"
link=3D"#0563C1" vlink=3D"#954F72"
<div
class=3D"WordSection1"
<p
class=3D"MsoNormal">If I create a preallocated disk for a VM, I see the =
disk image file listing as the size I requested (100G):<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">cd /rhev/data-center/mnt/storage_host1:_vol_pa1__nas=
__01b__oVirt__prod__01/53560d43-874a-49c5-9c5a-8b90487c79f8/images/d97f7706=
-3662-40bf-9358-80e0dc51bff4<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">root@ovirt_host> ls
-l<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">total
105064644<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">-rw-rw---- 1 vdsm kvm 107374182400 Aug 5
10:57=
75c14559-e18f-4cc8-a3fe-bc0de507720b<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">-rw-rw---- 1 vdsm
kvm =
1048576 Aug 5 10:57 75c14559-e18f-4cc8-a3fe-bc0de507720b.lease<o:p></=
o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">-rw-r--r-- 1 vdsm
kvm &=
nbsp; 313 Aug 5 10:57
75c14559-e18f-4cc8-a3fe-bc0de=
507720b.meta<o:p></o:p></span></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">and the corresponding
space used on disk matches<o:p=
></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">root@ ovirt_host > du -sh
*<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">101G
75c14559-e18f-4cc8-a3fe-bc0de=
507720b<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">1.1M
75c14559-e18f-4cc8-a3fe-bc0de=
507720b.lease<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">4.0K
75c14559-e18f-4cc8-a3fe-bc0de=
507720b.meta<o:p></o:p></span></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">If I then migrate that
storage (while the VM is shut=
down) to a new storage domain, the size on disk does not match the allocate=
d size. In this case there is nothing in the disk yet so it shows as 0.<o:p=
></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">cd /rhev/data-center/mnt/storage_host2:_vol_pa1__ovi=
rt__uatprod/1f2c2b48-1e77-4c98-a6da-5dc09b78cead/images/d97f7706-3662-40bf-=
9358-80e0dc51bff4<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">root@ ovirt_host> ls
-l<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">total
1032<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">-rw-rw---- 1 vdsm kvm 107374182400 Aug 5
11:06=
75c14559-e18f-4cc8-a3fe-bc0de507720b<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">-rw-rw---- 1 vdsm
kvm =
1048576 Aug 5 11:06 75c14559-e18f-4cc8-a3fe-bc0de507720b.lease<o:p></=
o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">-rw-r--r-- 1 vdsm
kvm &=
nbsp; 313 Aug 5 11:06
75c14559-e18f-4cc8-a3fe-bc0de=
507720b.meta<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier
New",serif"><o:p> </o:p></span></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">root@ ovirt_host > du -sh
*<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier
New",serif">0
75c14559-e18f-=
4cc8-a3fe-bc0de507720b<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">1.1M
75c14559-e18f-4cc8-a3fe-bc0de=
507720b.lease<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Co=
urier New",serif">4.0K
75c14559-e18f-4cc8-a3fe-bc0de=
507720b.meta<o:p></o:p></span></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">oVirt still lists the
disk as preallocated in the GU=
I but it is in fact thin provisioned.<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">I see the same issue if
I clone a preallocated VM. T=
he size on disk ends up being the equivalent of a thin-provisioned disk. I =
also had the issue when importing VM’s from an export domain when I h=
ad selected preallocated in the import dialog
box.<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">Is this a known issue?
Should preallocated not mean =
preallocated on physical disk?<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">Ovirt Engine is running
3.6.4.1-1.el6<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">The ovirt nodes are
running: <o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">OS
Version:  =
;
&=
nbsp; RHEL - 7 -
2.1511.el7.centos.2.10<o:p></o:p></p
<p
class=3D"MsoNormal">Kernel Version:
=
3.10.0 - 327.4.5.el7=
.x86_64<o:p></o:p></p
<p
class=3D"MsoNormal">KVM Version:
&nb=
sp;
2.3.0=
- 31.el7_2.7.1<o:p></o:p></p
<p
class=3D"MsoNormal">LIBVIRT
Version: =
libvirt-1.2.17-13.el7_2.2<=
o:p></o:p></p
<p
class=3D"MsoNormal">VDSM Version:
&n=
bsp;
vdsm-4.17.23.2-0.el7.c=
entos<o:p></o:p></p
<p
class=3D"MsoNormal">SPICE Version:
&=
nbsp;
0.12.4 - 15.el7=
<o:p></o:p></p
<p
class=3D"MsoNormal">GlusterFS
Version: &nbs=
p; [N/A]<o:p></o:p></p
<p class=3D"MsoNormal">CEPH
Version: &n=
bsp;
librbd1-0.=
80.7-3.el7<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p class=3D"MsoNormal">Many
thanks,<o:p></o:p></p
<p
class=3D"MsoNormal"><o:p> </o:p></p
<p
class=3D"MsoNormal">Simon<o:p></o:p></p
</div
</body
</html
--_000_D86C48DF8800164BBE50B87623F7AC9585F500F2ln2wio001devtra_--