Jump to content

Can't resize vdisk


Go to solution Solved by JorgeB,

Recommended Posts

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.

Link to comment
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?

Link to comment
Posted (edited)

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
  • Like 1
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...