<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Gilberto,<br>
      <br>
      Do not perform a qemu-img resize on a RAW file that is in use.
      First stop the VM, then shrink the RAW image.<br>
      <br>
      I don't know whether the qemu storage command can shrink a raw
      storage online, you can check the docs...<br>
      <br>
      Cheers<br>
      Eneko<br>
      <br>
      El 22/06/15 a las 13:50, Gilberto Nunes escribió:<br>
    </div>
    <blockquote
cite="mid:CAOKSTBstp_bkQRXrt1Mxe_ww+QkzKQzE4ceNkjzXsrSttBjPHQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>Hi guys<br>
                        <br>
                      </div>
                      I was able to reduce LVM and root/home partition
                      inside a certain VM, runnning on Proxmox.<br>
                    </div>
                    The VM has raw image.<br>
                  </div>
                  <div>This image was 4 TB of size..<br>
                  </div>
                  But, when I try using command:<br>
                  <br>
                  qemu-img resize vm.raw -XXXXG<br>
                  <br>
                </div>
                The VM get crash! No partition remain....<br>
                <br>
              </div>
              So I thought use virt-resize to make this operation....<br>
            </div>
            I can use perhaps, other host, with virt-manager and other
            virt tools installed, shrink the raw image with virt-resize
            and get use the resulting image to new VM on Proxmox...<br>
            <br>
          </div>
          Or, maybe you guys, has another solution...??<br>
          <br>
        </div>
        Thanks<br clear="all">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div><br>
                            -- <br>
                            <div class="gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div>
                                          <div dir="ltr">
                                            <div>
                                              <div dir="ltr">
                                                <div>
                                                  <div dir="ltr">
                                                    <div>
                                                      <div dir="ltr">
                                                        <div><br>
                                                        </div>
                                                        <div>Gilberto
                                                          Ferreira<br>
                                                          +55 (47)
                                                          9676-7530<br>
                                                          Skype:
                                                          gilberto.nunes36<br>
                                                        </div>
                                                        <br>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </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>