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.

How do I clear/flush the cache drive?

Featured Replies

In share settings I set "Use cache (for new files/directories):" to Yes/Preferred (forgot which one, I keep changing to test them out). 
I pressed mover button. It says beside Yes/Preferred "Mover transfers files from array to cache". My cache drive now has files from my array which makes sense.

How do I clear the files from the cache drive or flush the cache drive? It's currently at 100%.

  • Replies 61
  • Views 24.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Pools are storage outside the parity array but still part of user shares and managed by Unraid, unlike Unassigned Devices. Cache was the original "pool", now you can have multiple pools.   h

  • Each user share has settings that control whether, how and which pool they use. Here are mine:  

  • https://wiki.unraid.net/Manual/Shares#Use_Cache_.28and_Mover_Behavior_with_User_Shares.29

Posted Images

  • Community Expert
1 minute ago, Koromochii said:

Yes/Preferred "Mover transfers files from array to cache"

Yes and Preferred are sort of opposite. Yes transfers files from cache to array. Preferred transfers files from array to cache.

 

Since you seem to have made a mistake with this, if you post your diagnostics we can give more detailed advice about how to fix this and how to use cache in general.

 

Tools - Diagnostics, attach complete Diagnostics ZIP file to your NEXT post in this thread.

  • Author
Just now, trurl said:

Yes and Preferred are sort of opposite. Yes transfers files from cache to array. Preferred transfers files from array to cache.

 

Since you seem to have made a mistake with this, if you post your diagnostics we can give more detailed advice about how to fix this and how to use cache in general.

 

Tools - Diagnostics, attach complete Diagnostics ZIP file to your NEXT post in this thread.

Ya I was playing around with yes/preferred and wanted to see what it does.

 

oh so if set it back to YES and use mover it will move it back to the array and clear the cache drive?

 

 

  • Author

Here is the diagnostics.

I have over 1TB of files in my array and the cache drive is 1TB so it just transferred everything into the cache drive when I set it to preferred and use "Mover".

I want to clear the cache drive 1TB and set it up so that when I transfer files it'll use the cache drive instead of directly transferring to the array.

syslog.txt

Edited by Koromochii

  • Community Expert
21 minutes ago, Koromochii said:

Here is the diagnostics.

No it isn't

29 minutes ago, trurl said:

Tools - Diagnostics

 

 

  • Community Expert
36 minutes ago, Koromochii said:

one of the steps was to shut down. Not sure if it's affected.

Better to not reboot before getting diagnostics if you can help it because syslog is reset when you reboot and syslog is included in diagnostics. But since you already posted syslog earlier I guess we have that.

 

Unfortunately, you got the diagnostics without starting the array, so no disks are mounted and neither are user shares, and those are exactly what I was hoping to see from diagnostics.

 

I usually put it like this with new users:

Quote

If possible before rebooting and preferably with the array started
Go to Tools - Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread.

and I guess I should have taken the trouble to do it this time as well.

  • Community Expert

with the array started
Go to Tools - Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread.

  • Author
20 minutes ago, trurl said:

with the array started
Go to Tools - Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread.

Done

In Share settings I set "Use cache (for new files/directories):" back to "Yes". I also pressed "Mover" and it looks like the cache drive is slowly getting more space. But the array is also increasing. Maybe it's making another copy to each file to the array. I'll have to see later if that's the case.

steinsgate-diagnostics-20210110-2358.zip

  • Community Expert

Your appdata, domains, and system shares are cache-prefer, as they should be, so their files will try to be on cache. But they currently have files on the array, and mover can't move open files. You will have to go to Settings and disable Docker and VM Manager and run mover again to get those moved to cache where they belong.

 

 

  • Author
9 hours ago, trurl said:

Your appdata, domains, and system shares are cache-prefer, as they should be, so their files will try to be on cache. But they currently have files on the array, and mover can't move open files. You will have to go to Settings and disable Docker and VM Manager and run mover again to get those moved to cache where they belong.

 

 

I think I fixed it, thanks. The cache drive is pretty empty now.

Set my share settings of "Use cache (for new files/directories):" to "Yes"
appdata, domains, iso, and system shares are cache-prefer. I didn't have VM so I didn't disable it, but I did disable Docker and enabled it back this morning after the mover ran overnight.
 

  • Community Expert
2 hours ago, Koromochii said:

The cache drive is pretty empty now.

Your cache drive should have system share on it if dockers were ever enabled, and it should also have appdata on it for each of your dockers.

 

Post new diagnostics

  • Author
4 hours ago, trurl said:

Your cache drive should have system share on it if dockers were ever enabled, and it should also have appdata on it for each of your dockers.

 

Post new diagnostics

Here is the new diagnostics. I think it looks good now.

I'm testing the transfer speeds of with and without cache drive and the speed is 113MB/s with and without cache drive. Is this expected?
I'm using a nvme 1TB drive, I'm expecting higher transfer speeds.

Does the cache drive only make it a sustain 113MB/s? it's not dropping in speed even for a big transfers of 10GB+

steinsgate-diagnostics-20210111-1624.zip

  • Author
3 hours ago, Koromochii said:


Does the cache drive only make it a sustain 113MB/s? it's not dropping in speed even for a big transfers of 10GB+

steinsgate-diagnostics-20210111-1624.zip 95.92 kB · 0 downloads

I found this 

1000Mbit (Gigabit Ethernet LAN)

100 MB/sec   

6 GB/minute

 

I think I'm getting only 113MB/s because I'm bottlenecked by my network. So in theory, it doesn't matter if my cache drive is a ssd or an nvme because it'll get bottlenecked by the network at 100MB/s anyways. 

8 minutes ago, Koromochii said:

I found this 

1000Mbit (Gigabit Ethernet LAN)

100 MB/sec   

6 GB/minute

 

I think I'm getting only 113MB/s because I'm bottlenecked by my network. So in theory, it doesn't matter if my cache drive is a ssd or an nvme because it'll get bottlenecked by the network at 100MB/s anyways. 

Cache drive and array drive is in the same computer so network speed doesn't have any affect on it.   More likely is that you are overloading your SSD/NVMe drive's onboard cache which then reduces write speed to the actual write throughput of the drive.

 

Unless I'm misunderstanding where you're moving data to the cache drive from, or vice versa.

  • Author
11 minutes ago, Energen said:

Cache drive and array drive is in the same computer so network speed doesn't have any affect on it.   More likely is that you are overloading your SSD/NVMe drive's onboard cache which then reduces write speed to the actual write throughput of the drive.

 

Unless I'm misunderstanding where you're moving data to the cache drive from, or vice versa.

I'm talking about my gaming pc transferring files to the unraid NAS (different computer) through windows file explorer. It looks like the max speed I can get is 113MB/s even though the nvme (cache drive) can have 3500MB/s read and 3000MB/s writes. This is due to the network being gigabit ethernet the max speed I can transfer is 100MB/s even though the nvme can write at 3000MB/s. I'm new to all this so I didn't expect there to be a bottleneck of 100MB/s on my network when I bought the nvme, I should have bought a regular ssd instead to save a few bucks.

Edited by Koromochii

  • Community Expert
7 hours ago, Koromochii said:

Here is the new diagnostics. I think it looks good now.

Your system share still has folders/files on the array.

 

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

  • 1 year later...

@trurl Hi, I'm a "newbee" here...I noticed a warning today that my cache disk is almost full.  Should this be something to be concerned about?  Or, is this dynamic - meaning it will remove files from cache overtime and they get "stale"?

 

image.png.7a8e47a6c6137229781498ca080475ba.png

 

 

  • Community Expert
2 hours ago, sysop-gwg said:

Should this be something to be concerned about

Yes 

  • Community Expert

Sorry I wasn't able to respond sooner.

 

Go to the User Shares page, click Compute All button, wait for the results. You may need to refresh the page if it doesn't finish in a few minutes. Post a screenshot.

Here you go @trurl - Thank you.

 

image.png

  • Community Expert

Go to Main - Pool Devices, click on the icon under the View column for Cache, and post a screenshot. 

Here you go @trurl - Thank you.

image.thumb.png.22555918ad758f00c51938b391b59c3c.png

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...

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.