[Solved] VM Keeps Pausing


N4TH4N

Recommended Posts

[Solved]: Issue was that my BTRFS format cache drive was fully allocated even though it was reporting it had 47GB free space.

 

Solution was to run a balance on the cache drive and then update to version 6.4 or newer. I was on 6.3.5 which had problems with BTRFS drives.

btrfs balance start -dusage=75 /mnt/cache

 

 

 

 

Hey,

 

I got sick of Windows 10 which i had previously been running as a VM, removed it and created a new Windows 7 VM from scratch. Since then i've had theses issues. Sometimes it will stay running for 12+ hours, sometimes 5 mins and it will pause.

 

I have been running VM's on unRAID for a LONG time and have never came across this issue before. Before i spend time reinstalling the VM from scratch is there anything else i can try.

 

Im only running 1 VM (Windows 7) + some dockers.

I have allocated 2 of my 4 cores to the VM.

I have allocated 8GB memory (16GB total) to the VM (79% used with everything running under load).

I have the VM on a 120GB cache drive (47GB free).

I have configured Windows to never sleep or turn off screen.

I have disabled hibernation.

 

Thanks in advance for your help.

 

 

Edited by N4TH4N
Updated with solution
Link to comment

root@unRAID:~# btrfs balance start -dusage=75 /mnt/cache
Done, had to relocate 50 out of 114 chunks
root@unRAID:~#

 

devid 1 size 111.79GiB used 85.79GiB path /dev/sdi1

 

I have downloaded and installed the 6.4.1, just waiting 20 mins for a copy to finish and ill reboot.

 

Thanks for the help, ill report back when i know the result. I do recall seeing devid at 111.79GiB used but just thought it meant the partition was using the whole disk. I had and still have no idea about how a BTRFS format drive works.

 

Is there anything else i'll need to do ?

 

 

 

 

Link to comment
 

Is there anything else i'll need to do ?

No, and updating to v6.4.1 should prevent it from happening again.

 

I do recall seeing devid at 111.79GiB used but just thought it meant the partition was using the whole disk.

It's the allocated amount, btrfs works differently than most file systems, first chunks are allocated, mainly for data and metadata and then those chunks are used, this issue happens on older kernels with SSDs, some unused or little used data chunks are not freed and when the filesystem tries to allocate a new metadata chunk fails resulting in ENOSPC.

 

 

  • Like 1
Link to comment

Much appreciated. My workflow can resume. I use the VM daily to do disk backups on client machines before formatting drives and reinstalling the OS. I have a few disk docks connected to a USB3 pcie card thats passthroughed to the VM. I had to revert back to a spare bare metal machine when the issue started.

Link to comment
  • 4 years later...

Hi everyone. I'm facing the same problem. I have 3 vms running (1 win10- no gpu passthrough, 1 homeassistant and 1 windows 10 with gpu passthrough) and some dockers. 

The vm with gpu passthrough, starts up but after I while gets paused. 

I have my vms on an 240gb ssd cache (120 gb used, 117 gb free). 

I'm also attaching my server's log. 

Could you please advice how to resolve this problem, since the vm is used to display info of my home automation system (as a kiosk display)? 

tower-diagnostics-20220805-1736.zip

Link to comment
  • 1 year later...

i'm having this same issue all of a sudden on 6.12.8.  i'm running 2 vms, one windows, one linux, but my win10 keeps pausing.  i have both running on a 512g ssd cache with 50% free.  i just shut down the linux vm to see if this solves the issue.  i tried clicking on the above link in this post for how to solve, but it won't let me view the thread.

 

can someone let me know what to do in order to solve this problem?

 

as usual, thank you for all our help in advance.

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.