<div dir="ltr"><div><div><div><div>Hi.. Thanks for quickly response...<br><br></div>And of course, I always down the vm... Indeed, I also work on a copy of raw image...<br></div>Because the VM is already in production... But the use of this vm is very rare...<br></div>So doesn't matter if one or two register was lost during the procedure, because we can insert the lost register again...<br><br></div>Thanks anyway<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-22 9:04 GMT-03:00 Eneko Lacunza <span dir="ltr"><<a href="mailto:elacunza@binovo.es" target="_blank">elacunza@binovo.es</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>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 type="cite"><div><div class="h5">
      <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>
                              <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></fieldset>
      <br>
      </div></div><pre>_______________________________________________
pve-user mailing list
<a href="mailto:pve-user@pve.proxmox.com" target="_blank">pve-user@pve.proxmox.com</a>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <br>
    <pre 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 href="http://www.binovo.es" target="_blank">www.binovo.es</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
pve-user mailing list<br>
<a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" rel="noreferrer" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
<br></blockquote></div><br><br clear="all"><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>