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.

(SOLVED) Moving VM disks back to Cache

Featured Replies

I am new to UnRAID and I think I misunderstood how the caching works. What I was thinking is the VMs stored on cache, but will eventually move to the raid disks and then if the cache fills up the raid disks would be used by default. However I discovered this wasn't the case as the domains path (where the VMs are stored) is set to prefer cache so it stays on the cache drives and not the raided drives. 

 

Because I was migrating a VM from an existing platform, it had a lot of data so it filled my 512GB SSD cache drive and then the VMs just stopped because they ran out of space. So I was thinking initially, and wrongly, set to use the cache to no and then trigger the move so it moved all of the VMs to the raid 4TB mechanical HDD disks. 

 

I've realised my mistake, so my plan now is I will have the OS disks stay in the domains share so its cache is set to prefer so it stays on the cache. 

 

Then I plan to create another share for big data disks for the VMs so would have the share cache value set to yes which if I understand correctly, it will initially write to cache, but then get moved to the raid 4TB HDD disks where as prefer means stay on cache. 

 

Therefore assuming this plan is correct, I need to move my current VM disks back to the cache. Is that possible to move the VMs from the RAID HDD back to the cache or it will be a case of deleting the VMs and recreating them again using this new setup?

 

Thanks

Edited by boardy

  • Community Expert
2 minutes ago, boardy said:

set to use the cache to no and then trigger the move so it moved all of the VMs to the raid 4TB mechanical HDD disks. 

Shares with cache=no aren't moved to the array, only cache=yes.

 

2 minutes ago, boardy said:

Is that possible to move the VMs from the RAID HDD back to the cache or it will be a case of deleting the VMs and recreating them again using this new setup?

Yes, set the share(s) to cache=prefer and run the mover, the VMs and VM service should be disable, mover won't move open files.

  • Community Expert

Cache-prefer shares "prefer" to keep files on cache if there is room, and overflows to the array if cache gets below its Minimum Free setting. Cache-prefer files will get moved back to cache from the array when there is room, but mover can't move open files, so usually you have to disable Docker and VM Manager in Settings to get files moved back to cache.

 

 

  • Author
20 minutes ago, JorgeB said:

Shares with cache=no aren't moved to the array, only cache=yes.

 

Yes, set the share(s) to cache=prefer and run the mover, the VMs and VM service should be disable, mover won't move open files.

 

Thanks for the reply, I missed the little helper text next to the dropdown, thinking about it I think I turned off the VMs (they were suspended automatically after the cache got filled). I assumed it moved the VMs as I when I was triggering the mover manually it kept stating it was skipping and not actually doing anything, and then shutdown the VMs and set this to No then triggered manually again and it started the move. 

 

I'm a tad confused now though whether the VMs are actually on the cache or on the HDDs, is there a way to determine where they are, or do I not need to worry, just move my 2nd disk images (where the big data is) onto a new share that uses cache=yes and the domains share to cache=prefer and run the mover again and it will just sort itself out?

  • Community Expert
1 hour ago, boardy said:

is there a way to determine where they are

Click on the share then "compute" under size, it will show usage by disk/pool.

 

1 hour ago, boardy said:

just move my 2nd disk images (where the big data is) onto a new share that uses cache=yes and the domains share to cache=prefer and run the mover again and it will just sort itself out?

This works, with the VM off.

  • Author
53 minutes ago, JorgeB said:

This works, with the VM off.

Thanks. I can confirm that this does indeed appear to have worked. Thanks again. 

  • boardy changed the title to (SOLVED) Moving VM disks back to Cache

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.