<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Hi Miguel,<br>
<br>
Did you check: <br>
<a class="moz-txt-link-freetext" href="https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files">https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files</a><br>
<br>
For real resizing, you must:<br>
<br>
0. Make a backup<br>
1. Reboot to a live CD<br>
2. Reduce the filesystem(s) in the disk if necessary<br>
3. Reduce and/or move the partitions, so that there isn't any on
the end of the disk.<br>
4. Reduce the disk using qemu-img<br>
<br>
Good luck!<br>
Eneko<br>
<br>
On 16/05/15 20:30, Miguel Gonzalez wrote:<br>
</div>
<blockquote
cite="mid:1184452721.437980.1431801055038.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_1_1431760588786_14948">Dear all,</div>
<div id="yui_3_16_0_1_1431760588786_14949"><br>
</div>
<div id="yui_3_16_0_1_1431760588786_14950" dir="ltr"> I have
been searching around how to resize a disk that was created
for 256 Gb but currently only has 50 Gb. Unfortunately it grew
up to 108 Gb and now I can't claim the spaces by the files I
have already deleted.</div>
<div id="yui_3_16_0_1_1431760588786_14980" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1431760588786_14966" dir="ltr"> If
possible, I would like to avoid any downtime or minimize it.
Some people claim that using qemu-img convert would do the
trick instead of converting to raw format.</div>
<div id="yui_3_16_0_1_1431760588786_14995" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1431760588786_14996" dir="ltr"> Is there
any way to avoid downtime or any configuration to avoid it in
the future? I'm running proxmox 3.3-1<br>
</div>
<div id="yui_3_16_0_1_1431760588786_14814"><br>
</div>
<div id="yui_3_16_0_1_1431760588786_14909"><br>
</div>
<div id="yui_3_16_0_1_1431760588786_14908"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1431760588786_14881"># qemu-img
info vm-102-disk-1.qcow2 <br style="" class="">
image: vm-102-disk-1.qcow2<br style="" class="">
file format: qcow2<br style="" class="">
virtual size: 256G (274877906944 bytes)<br style="" class="">
disk size: 180G<br style="" class="">
cluster_size: 65536<br style="" class="">
Snapshot list:<br style="" class="">
ID TAG VM SIZE
DATE VM CLOCK<br style="" class="">
1 snapshot_21022015 0 2015-02-21 16:24:32
00:00:00.000<br style="" class="">
Format specific information:<br style="" class="">
compat: 1.1<br style="" class="">
lazy refcounts: false<br style="" class="">
<br>
</div>
<div style="" class="" id="yui_3_16_0_1_1431760588786_14881"><br
style="" class="">
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pve-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<a class="moz-txt-link-freetext" href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
<a class="moz-txt-link-abbreviated" href="http://www.binovo.es">www.binovo.es</a></pre>
</body>
</html>