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.

File is on Disk 1 but it is reading from Cache drive - how is this possible?

Featured Replies

Hi,

 

I have a file on disk 1:

2.thumb.png.33d885daf683ee5972797fed3a6a5025.png

 

but when reading it (VLC) the disk 1 is not spin up, but the file is somehow reading from cache drive1.thumb.png.7eae64af3054e03bb4c35cc7caf95805.png

 

How is this even possible?

 

When browsing cache drive can't find this file

3.png

Edited by Vitek

  • Community Expert

check you shares tab and make sure it set coretly to where you want the file to be at..

you may have a 2nd disk set to be on cache:

image.thumb.png.4eac877d74aebd120d9a212a246af42c.png

  • Author
4 minutes ago, bmartino1 said:

check you shares tab and make sure it set coretly to where you want the file to be at..

you may have a 2nd disk set to be on cache:

image.thumb.png.4eac877d74aebd120d9a212a246af42c.png

Everything looks fine in the media folder settings:

obraz.thumb.png.4087f0e6c3edaae838d9a8cca1a93ab8.png

 

also, file browser shows this file is on disk 1 only:

obraz.png.9225c3594467f84ef56812787cf03dc9.png

 

  • Community Expert

weird...

ok, since this is medai... is a docker set to use cache over the array?
/mnt/cahce instead of /mnt/user ?

double check you docker setting for default apppdata path.

  • Author
Just now, bmartino1 said:

weird...

ok, since this is medai... is a docker set to use cache over the array?
/mnt/cahce instead of /mnt/user ?

double check you docker setting for default apppdata path.

My docker settings are correct:

obraz.png.d858fde0544442f3b460008a6cac9f6b.png

 

This is really weird because everything works as expected for other files, for example, when I open a file that is on disk 2, disk 2 spins up.

This weird situation is only for this file.

  • Community Expert

Go to the Shares page and click on "compute" for appdata, see where the share exists.

  • Author
1 minute ago, JorgeB said:

Go to the Shares page and click on "compute" for appdata, see where the share exists.

obraz.thumb.png.8a01ec35c0a5d48d16d0014aa36f925a.png

The Appdata is on Cache as expected

 

The Media folder is on Array (file is on disk 1) as expected:

obraz.thumb.png.34a11d160cb86308336ef62eac2c834f.png

 

  • Community Expert

Sorry I meant media, if that share only exists on the array, it must be read from the array, unless you have a container/plugin/script caching it.

  • Author
20 minutes ago, JorgeB said:

Sorry I meant media, if that share only exists on the array, it must be read from the array, unless you have a container/plugin/script caching it.

I don't have any caching script/plugin and still, the file is reading from the cache (at least the dashboard is showing reading/writing on cache drive when accessing this file) meanwhile disk 1 where the file is placing is sleeping.

 

That is really weird because when I open other files, data disk is spins up correctly.

 

 

File activity plugin shows correct disk:

obraz.png.51679bf8571d054da8d491eab9a04ce6.png

 

But the disk 1 is spin down :D

obraz.png.0100d39485cffd2e6209c8d70debab38.png

And the Main tab is showing activity on the Cache drive when accessing this file. My God...

Edited by Vitek

  • Community Expert

Re-start the array, to clear RAM cache, then type:

 

pv /path/to/that/file > /dev/null

 

And check the GUI activity

  • Author
1 hour ago, JorgeB said:

Re-start the array, to clear RAM cache, then type:

 

pv /path/to/that/file > /dev/null

 

And check the GUI activity

Will check that tomorrow 

 

@JorgeB

1. Array restarted, run pv command, first run, disk 1 spin up and the file is accessed from disk 1:

1.thumb.png.065f0f7e6692f6a9d3f9be96d20a3c2b.png

2. second run reading from the cache drive

2.thumb.png.84e91bdaba09a2de30cac27fef27c7b4.png

 

You can see the difference in speed when running command pv for the second time because the cache drive is reading.

 

From now every time I access the file it is accessible from the cache drive, WTF...

 

It seems somehow the file is caching in the cache drive, but again, I don't use any plugin/script for caching...

Edited by Vitek

  • Community Expert

my only theory is the array is using the cache disk by default. This may be due to docker setting using default path /mnt/cache instead of the fuse symbolic system of /mnt/user...

the last thing  outside of editing the docker setting is a unraid reboot. Something may be chaced in ram/config like [parity/mover] tuner plugins may be doing something...

  • Author
4 hours ago, bmartino1 said:

my only theory is the array is using the cache disk by default. This may be due to docker setting using default path /mnt/cache instead of the fuse symbolic system of /mnt/user...

the last thing  outside of editing the docker setting is a unraid reboot. Something may be chaced in ram/config like [parity/mover] tuner plugins may be doing something...

I don't think it is a docker related issue. When I run the file through samba share in VLC, the result is the same. Reboot does not help.

  • Community Expert
15 hours ago, Vitek said:

You can see the difference in speed when running command pv for the second time because the cache drive is reading.

More likely it's getting it from RAM cache, do you see cache read on the GUI stats?

  • Author
5 minutes ago, JorgeB said:

More likely it's getting it from RAM cache, do you see cache read on the GUI stats?

I see cache drive reading on Main tab (the file is on Disk 1)

  • Community Expert

I'm sorry, no idea what's going on there.

  • Author
1 minute ago, JorgeB said:

I'm sorry, no idea what's going on there.

Sure, maybe after I update to unraid v7 things will work ok

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.