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.

Can't resize vdisk

Featured Replies

Hello. I can't resize vdisk.img. I want shrink it.
It before shrink

Capture.JPG.673d72ef2089de430875a959ec860ded.JPGCapture1.JPG.829fa2e2ab4ef4483e121fbbc25539d6.JPG

 

it after shrink windows

Capture3.JPG.533cf5ca705a77dc25dbaeb6ee63ac56.JPG

4.JPG.16e30a2c8cdea1f18a744eeef7050e89.JPG

 

Shrink in terminal

5.JPG.6f3ec0802f444b382d16969e40cb844d.JPG

 

It after shrink in terminal

Capture6.JPG.2f7d1e75a8153450faf098e0ecade3f3.JPG

Capture7.JPG.473da4469b989712fbbcfe32a4d1185b.JPGCapture8.JPG.50e7fb7d18ce4160924a7bfe08e8b035.JPG

 

Why i can't really shrink img ? 

Just i have around 3-4 VM which need shrink.

Solved by JorgeB

  • Author
9 hours ago, JorgeB said:

Are you trimming the vdisks? They can grow a lot if you don't:

 

https://forums.unraid.net/topic/51703-vm-faq/?do=findComment&comment=557606

 

Yes. It all started with trimming. I wanted to reduce vdisk from 260 to 190 Gb.

I try with you guide change driver to SCSI and Defrag and Optimize drive.
 

Now i get this:
Add to drive free space 80G

Capture.JPG.07075123cba9e207fbec0feb3d9e7505.JPGCapture.JPG.07075123cba9e207fbec0feb3d9e7505.JPG

But vdisk still 260G
Capture2.JPG.2fb316d479f46d5c1dd4dfd6ba890c2f.JPG

 

It fine ? Now i can use it space ?

For MacOS VM need to do the same?

Don't know how to trim with macos, but yes it should also be needed.

  • Author

I succeeded trim macos vdisk. I did it according to this guide. I'll add to this, I've also reduced partition size in macos Disk Utility. After i did command qemu-img resize --shrink macos_disk.img 80G 

 

Edited by Exlife

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.