It was a real block device (real from the VM's perspective anyway).
Making sure the partitions were of equal size, I ran:
dd if=/dev/sda1 of=/dev/sdb1
/dev/sda was the original 4GB disk that I mistakenly increased to 4TB in size. /dev/sdb is the new 8GB disk.
Thanks, what I ended up doing was creating a second 8GB hard disk, re-create the exact partition table, clone the partition from the first disk with dd and reinstalling grub onto the new disk. Then I tested I could boot from it and got rid of the first disk.
I wanted to increase a VM's hard drive size from 4G to 8G. I mistakenly added 4000G, thinking it was 4000M. So the VM thinks there is a 4TB drive now. I couldn't see a way to shrink the size in Proxmox GUI. I read that qemu-img from CLI can do it, but only on raw images. I have qcow2 image...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.