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.

Nextcloud - how to minimize secondary storage access

Featured Replies

I have my Nextcloud docker on Unraid and it is working just fine. I'm using it mainly as simple Onedrive replacement, so to keep files. I have Nextcloud data on ssd cache as primary storage, and hdd as secondary; with mover running weekly. I have noticed though, that the secondary storegr if often woke up, even if no changes to data files / file structure are made.

 

I think it is because some internal Nextcloud status or log files are on secondary hdd storage (moved there from cache after maximum a week) and Nextcloud client is simply triggering some read of writes to those "status" files, even if no regular data files are added, deleted or changed.

 

If this is true – two questions:

 

  1. Which Next Cloud files / folders should be kept on cache only (not moved to secondary hdd storage)
  2. How to keep the above files out of scope of the mover job.

 

I'm hoping that solving the above two points would wake up secondary hdd storage only in case regular data files are accessed by Nextcloud client.

Solved by Smith007

By default the log is written into the data location. You should be able to move it into the appdata folder by adding a line in config.php.

 

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

 

The "appdata_instanceid" folder might be a problem too, don't see a way to move it from a quick search but you could always cobble together an additional Docker mount for it. 

Edited by Kilrah

  • Author

Thanks for your suggestions re which files to keep on cache. More or less these was my picks too.

 

I was hoping to copy them manually to primary ssd storage and then keep them there, by somehow forcing the mover to leave them where they are. Is that possible?

The Mover Tuning plugin allows setting exceptions

  • Author

Thanks! This is amazing - even when Unraid is not doing something, there is a plugin for it :).

 

I guess this is what i need:

 

image.thumb.png.f0c3c4d78937941f76d935ec0831eac7.png

Believe so, but never used it myself

  • Author

I will check hopefully tomorrow and report here.

  • Author
  • Solution

So it actually works like a charm. All you have to do is to list files you want the mover to skip in a text file, and tell the Mover Tuning plugin to use it. In my case seems it was enough to list:

 

/mnt/cache/NEXTCLOUD/nextcloud.log

 

(not sure, but I reckon it is important to use /mnt/cache/* and NOT /mnt/user/*)

 

Seems it solved the problem with triggering secondary storage, but need some more days to confirm.

 

 

 

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.