Should domains share be on the cache or in the pool? And why?


wayner

Recommended Posts

I have two VMs - Ubuntu and Win11.  A few weeks ago I had mover move the files off my cache to the pool to reformat my cache drive to ZFS and add a second disk to the pool in a mirrored configuration.

 

I just noticed that my domains share is mainly in the pool - when I look at the config for the domains share I forgot to change the mover action back to Pool->Cache, it is at Cache->Pool.  But my VMs seem to be working ok and don't seem to be much slower, although I haven't used them a lot.

 

I tried googling and don't see a clear answer - what is the reason to have domains on cache?  Is it because a VM will run a lot faster on my cache which is a NVME disk, compared to the pool which are regular hard drives?

Link to comment

You want the VM on the faster drive for performance as there are more reads then writes in a VM.

 

It comes down to how you handle your drives and the configuration what type of drives are setup for your array and parity.

 

I run a nvme cache drive.

1tb hdd disk 1 no parity 

 

And 3x 16 tb chach ZFS raidz1 pool

 

I default to missing the NVME for performance. Dockers and VM.

Link to comment

Sorry, I was using the wrong terminology.  The current setting is Cache->Array. I did that to clear off my cache disk to reformat it, and did the same with other shares like appdata, system, etc.  But I guess I forgot to change the setting back to Array->Cache for the domains share.

Link to comment

Ideally, appdata, domains, system share would all be on fast pool such as cache, with no files for those shares on the array. This will help Docker/VM performance, and allow array disks to spin down since these files are always open.

 

You can see how much of each disk is used by each share by clicking Compute... for the share on the User Shares page.

 

Note that nothing can move open files, so if you need to move these to cache, you will have to disable Docker and VM Manager in Settings.

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.