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.

Drive filling up

Featured Replies

  • Community Expert

This is really odd.  I have a 1TB unassigned drive for VM and docker. I have two VMs (together 810G). I have quite some dockers, but surprised that they now fill up the remaining 190G. Something seems to be wrong.

 

I used to have 100G empty space on this drive. Haven't installed any docker and don't think any of the dockers expanded significantly.

 

What changed though is that I started to fill up the VMs. Are vdisks dynamic and could this be the reason (i.e., dockers may have always taken 190G, but it showed 100G free as the VMs gave some dynamic free space to the drive?).

 

The disk now is literally full-full (just a few kbs left), so this is worrisome and for sure will lead to major issues if I don't solve this quickly.


Any thoughts how to trouble-shoot?

12 minutes ago, steve1977 said:

Are vdisks dynamic and could this be the reason (i.e., dockers may have always taken 190G, but it showed 100G free as the VMs gave some dynamic free space to the drive?).

Yes, by default VM vdisks are created as sparse files, which only consume what is actually in use, but show the total defined size to the guest OS. The biggest issue with sparse vdisks is that they don't automatically shrink their allocation when you delete files in the VM.

  • Author
  • Community Expert

So, I am basically screwed now? Is there any way that I can compress them again manually (without shrinking the allocated vdisk size)?

It depends on what you meant by screwed. Do you have another disk with enough spare capacity?

  • Author
  • Community Expert

Not really... That's what I meant. And moving dockers have proven very challenging for me in the past.

If you copy them using a method that understands sparse files you can "resparsify" them when you copy them back to the cache. So, the procedure will look like this.

1. Copy to alternate location, probably an array disk. Verify copy, delete source on cache.

2. Copy back to cache, be sure to specify sparse copy. Verify copy, delete temporary version on array.

BTW, simply deleting files in the VM will not free up the space, you have to tell the VM to write zeroes to the "empty" space.

You may be able to reclaim the space by deleting and wiping some files in the VM's, then shutting the VM down and running fallocate on the vdisk image file. I've never tried that, I don't have first hand experience doing it.

Your problem is why I use qcow2 instead of raw. I can then qemu-img convert and the copy is automatically sparsed.

 

The benefit is you can tell exactly how much space the image occupies instead of the max size.

Archived

This topic is now archived and is closed to further replies.

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.