<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 class="gmail_quote">On 22 Jun 2015 13:37, "Gilberto Nunes" <<a href="mailto:gilberto.nunes32@gmail.com">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 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 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 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 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 href="mailto:pve-user@pve.proxmox.com" target="_blank">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></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 href="mailto:pve-user@pve.proxmox.com" target="_blank">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><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 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 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>