mathgoy Posted April 1 Share Posted April 1 Hi all, I accidently increased the size of my Home Assistant qcow2 image (to 162GB!) and I would like to shrink it back to 60GB. Do you have any idea how I could do that safely? Thanks a lot! Quote Link to comment
mauriceatkinson@btconnect. Posted July 30 Share Posted July 30 did you ever get this resolved as I have the same problem? Quote Link to comment
JackSafari Posted August 4 Share Posted August 4 (edited) I did the exact same thing. I immediately discovered the error before starting the VM and attempted to resize it from 15T to 1500G The unraid UI will not allow me resize it smaller even though I have not restarted the Windows VM. The size remains at 15T My entire unraid server is only 12T. The VM is important. I can't wipe it and start all over. Looking for suggestions on how to reduce the vdisk from 15T --> 1500G or revert back to the original size of 1000G Edited August 4 by JackSafari Quote Link to comment
Kilrah Posted August 4 Share Posted August 4 (edited) Since you haven't expanded the partitions yet you should be able to do a qemu-img resize vdisk.qcow2 --shrink 1500G Back up the vdisk first. Or just restore a vdisk backup from before the change. Edited August 4 by Kilrah 1 Quote Link to comment
JackSafari Posted August 4 Share Posted August 4 (edited) Thanks. This solved it. 👍 qemu-img resize vdisk.qcow2 --shrink 1500G The unraid UI reports 1500G as being 1TB. I checked using qemu-img info and it reports the correct size of 1500G, and Windows 10 recognizes it at 1500G Edited August 4 by JackSafari Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.