Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Shrinking a qcow2 image

Featured Replies

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!

  • 3 months later...

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 by JackSafari

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 by Kilrah

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 by JackSafari

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.