brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: never keep running VMs on a share with Use cache set to Yes

Cache
~/tips/tip-unraid-domains-share-not-cache-yes

Use cache: Prefer

Stop the Mover from moving your VM disks to the slow array.

The Mover is great for downloads and media. It’s a lot less great when it decides your Windows VM’s disk belongs on the spinning array. Unraid’s docs warn about exactly that.

Unraid creates default shares for virtualization: domains holds the vdisk images, isos the installation media and driver ISOs, and system stores libvirt.img with the VM definitions. The docs say all of them default to:

Use cache: Prefer

And they recommend storing active vdisks on a cache-only share, with SSDs in the pool, for the best performance. Cache for the isos share is optional, since an installer ISO doesn’t care where it lives.

The warning is about the other setting. Don’t store active virtual machines on a share where Use cache is set to Yes. With Yes, the Mover moves files from the pool to the array, so the next Mover run can carry your VM disks over to the array and performance drops.

An example: you made a new share called vms because it sounded tidier than domains, and left it on Yes like your media shares. That’s the one to check in the share settings. For each VM you can also set the storage location of its virtual disk with the storage override in Unraid 7.

The caveat is that this applies to every place a vdisk lives. If you use the storage override to put one VM’s disk on another share, check that share’s cache setting too.

Further reading: Unraid docs: Overview & system prep, Unraid docs: VM setup

Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it

More Cache tips fincore /var/lib/example/data.db npm cache verify fc-cache -f -v ~/.local/share/fonts proxy_cache app; Cache-Control: no-cache All Cache tips (24) All topics

Link