<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      Sorry, it must have GPT table so try:<br>
      sgdisk -p <your disk path><br>
      <br>
      Also:<br>
      vgs<br>
      <br>
      El 22/06/15 a las 15:18, Gilberto Nunes escribió:<br>
    </div>
    <blockquote
cite="mid:CAOKSTBtxEYz2vdDxeyiNM40YSKk1ZY7_EdkQncDcD79Pe=Zetg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>>> What about:<br>
          >> <br>
          >> vgs<br>
          >> sfdisk -l <your disk path><br>
          <br>
          This result in a empty partition table... <br>
        </div>
        It sounds like I lost all partitions inside the guest<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-06-22 10:14 GMT-03:00 Eneko
          Lacunza <span dir="ltr"><<a moz-do-not-send="true"
              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><br>
                What about:<br>
                <br>
                vgs<br>
                sfdisk -l <your disk path><br>
                <br>
                El 22/06/15 a las 15:05, Gilberto Nunes escribió:<br>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>Ok guys...<br>
                              <br>
                            </div>
                            All those steps I already perform...<br>
                          </div>
                          I can shrink fs+partition+lvm inside the
                          guest... Everything is ok!<br>
                        </div>
                        But, when I perform this:<br>
                        <br>
                      </div>
                      <div>qemu-img resize vm.raw -3100G<br>
                        <br>
                      </div>
                      <div>the guest crash!<br>
                        <br>
                      </div>
                      <div>The raw image, on Proxmox fs has 3,9 TB...<br>
                      </div>
                      <div>Inside the guest, I have this:<br>
                        <br>
                        df -h<br>
                        Filesystem            Size  Used Avail Use%
                        Mounted on<br>
                        /dev/mapper/vg_bancosiscobra-lv_root<br>
                                               50G  4,7G   43G  11% /<br>
                        tmpfs                 939M     0  939M   0%
                        /dev/shm<br>
                        /dev/sda2             485M   67M  393M  15%
                        /boot<br>
                        /dev/mapper/vg_bancosiscobra-lv_home<br>
                                              640G  540G   68G  89%
                        /home<br>
                        <br>
                      </div>
                      <div>With the qemu-img resize command showing
                        above, I managed to shrink raw image to 800GB,
                        more than sufficient to boot the machine...<br>
                      </div>
                      <div>But no way! I get error inside the guest...<br>
                        <br>
                      </div>
                      <div>My next shot will be this tutorial:<br>
                        <br>
                        <a moz-do-not-send="true"
href="http://dnaeon.github.io/resizing-a-kvm-disk-image-on-lvm-the-easy-way/"
                          target="_blank">http://dnaeon.github.io/resizing-a-kvm-disk-image-on-lvm-the-easy-way/</a><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2015-06-22 9:57 GMT-03:00
                        Yannis Milios <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:yannis.milios@gmail.com"
                            target="_blank">yannis.milios@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <p dir="ltr">First try to shrink
                            fs+partition+lvm inside guest vm with
                            gparted as Lindsay suggested.</p>
                          <p dir="ltr">Reboot the VM to check if resize
                            completed successfully.<br>
                            Check actual fs+partition+lvm sizes inside
                            VM and verify their total size.</p>
                          <p dir="ltr">Shutdown VM and try to resize raw
                            disk so that the total size is bigger at
                            least some MB than the actual size.</p>
                          <p dir="ltr">For example if actual size is 1Tb
                            resize it to 1.2-1.3 Tb just to be safe.</p>
                          <p dir="ltr">Try booting the VM again.<br>
                          </p>
                          <div>
                            <div>
                              <div class="gmail_quote">On 22 Jun 2015
                                13:37, "Gilberto Nunes" <<a
                                  moz-do-not-send="true"
                                  href="mailto:gilberto.nunes32@gmail.com"
                                  target="_blank">gilberto.nunes32@gmail.com</a>>

                                wrote:<br type="attribution">
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div dir="ltr">
                                    <div>
                                      <div>
                                        <div>So, inside the VM I managed
                                          to reduce the LVM and the
                                          Filesystem... <br>
                                        </div>
                                        But, when I try to use qemu-img
                                        resize, perhaps I mistake
                                        something, because the crash
                                        down in kernel panic, 'cause not
                                        found and partitions, even the
                                        LVM!<br>
                                        <br>
                                      </div>
                                      Are you sure that gparted live iso
                                      is safe???<br>
                                      <br>
                                    </div>
                                    Thanks<br>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">2015-06-22
                                      9:25 GMT-03:00 Lindsay Mathieson <span
                                        dir="ltr"><<a
                                          moz-do-not-send="true"
                                          href="mailto:lindsay.mathieson@gmail.com"
                                          target="_blank">lindsay.mathieson@gmail.com</a>></span>:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div dir="ltr">
                                          <div>Use the GPartEd Live ISO
                                            (<a moz-do-not-send="true"
                                              href="http://gparted.org/download.php"
                                              target="_blank">http://gparted.org/download.php</a>)
                                            to resize the LVM *and* the
                                            partiton, then qemu-img to
                                            shrink it.<br>
                                            <br>
                                          </div>
                                          <br>
                                        </div>
                                        <div class="gmail_extra"><br>
                                          <div class="gmail_quote">
                                            <div>
                                              <div>On 22 June 2015 at
                                                21:50, Gilberto Nunes <span
                                                  dir="ltr"><<a
                                                    moz-do-not-send="true"
href="mailto:gilberto.nunes32@gmail.com" target="_blank">gilberto.nunes32@gmail.com</a>></span>
                                                wrote:<br>
                                              </div>
                                            </div>
                                            <blockquote
                                              class="gmail_quote"
                                              style="margin:0 0 0
                                              .8ex;border-left:1px #ccc
                                              solid;padding-left:1ex">
                                              <div>
                                                <div>
                                                  <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<span><font
                                                        color="#888888"><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>
                                                          <a
                                                          moz-do-not-send="true"
href="tel:%2B55%20%2847%29%209676-7530" value="+554796767530"
                                                          target="_blank">+55

                                                          (47) 9676-7530</a><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>
                                                      </font></span></div>
                                                  <br>
                                                </div>
                                              </div>
                                              <span>_______________________________________________<br>
                                                pve-user mailing list<br>
                                                <a
                                                  moz-do-not-send="true"
href="mailto:pve-user@pve.proxmox.com" target="_blank">pve-user@pve.proxmox.com</a><br>
                                                <a
                                                  moz-do-not-send="true"
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>
                                              </span></blockquote>
                                          </div>
                                          <span><font color="#888888"><br>
                                              <br clear="all">
                                              <br>
                                              -- <br>
                                              <div>Lindsay</div>
                                            </font></span></div>
                                        <br>
_______________________________________________<br>
                                        pve-user mailing list<br>
                                        <a moz-do-not-send="true"
                                          href="mailto:pve-user@pve.proxmox.com"
                                          target="_blank">pve-user@pve.proxmox.com</a><br>
                                        <a moz-do-not-send="true"
                                          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>
                                      <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>
                                                          <a
                                                          moz-do-not-send="true"
href="tel:%2B55%20%2847%29%209676-7530" value="+554796767530"
                                                          target="_blank">+55

                                                          (47) 9676-7530</a><br>
                                                          Skype:
                                                          gilberto.nunes36<br>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  pve-user mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:pve-user@pve.proxmox.com"
                                    target="_blank">pve-user@pve.proxmox.com</a><br>
                                  <a moz-do-not-send="true"
                                    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>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <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>
                                                    <a
                                                      moz-do-not-send="true"
href="tel:%2B55%20%2847%29%209676-7530" value="+554796767530"
                                                      target="_blank">+55
                                                      (47) 9676-7530</a><br>
                                                    Skype:
                                                    gilberto.nunes36<br>
                                                  </div>
                                                  <br>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
pve-user mailing list
<a moz-do-not-send="true" href="mailto:pve-user@pve.proxmox.com" target="_blank">pve-user@pve.proxmox.com</a>
<a moz-do-not-send="true" href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
</pre>
                  </blockquote>
                  <br>
                  <br>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">
                  <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 moz-do-not-send="true" href="http://www.binovo.es" target="_blank">www.binovo.es</a></pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            pve-user mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
            <a moz-do-not-send="true"
              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>
    </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>