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.

Getting 'Allocation' down on a previously full VM disk

Featured Replies

Short introduction: i have been a Synology user for 15 years. Lately i realized i'm using more and more Docker containers and VMs for my needs, and less the built in Synology tools. So i'm giving Unraid a try on a second hand Intel Nuc i bought, and i'm very impressed and conside rmaking the move to Unraid.

 

I have set up a VM with a qcow2 VMdisk of 100GB with a xfs filesystem. I nearly filled that VM disk experimenting but need around 30G as a baseline. I'm not bothered by the 'Capacity' of 100GB that the Vdisk could claim over time, but i would like to get the 'Allocation' number back down to the 30GB which is currently in use. I have added discard='unmap' to the XML of the VM and started the TRIM process from the Unraid settings. I also ran a xfs_fsr defrag in the VM, but the allocation doesn't come down in Unraid. Is there anything else i should do?  As far as i understand, i won't be needing to shrink the VM disk or the volumes inside it to make this happen, because when i epxanded the Vdisk earlier, the allocation only shot up once i started filling the vdisk with data. 

Solved by JorgeB

  • Solution
40 minutes ago, peewee67 said:

I have added discard='unmap' to the XML of the VM and started the TRIM process from the Unraid settings.

You need to run Trim in the actual VM, if it's Windows run the Defrag and Optimize disks tool

  • Author

Thanks!, all that was needed was to run 'fstrim -v /'  in the VM, thanks alot!

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.