Jump to content

Mover moving log file and preventing HDD spin down


Recommended Posts

Hi all, 

 

I have a problem regarding the mover moving the nextcloud log file from the cache to the array, which is preventing my HDD from spinning down, and I don't know why it's happening. 

 

The nextcloud container logging has prevented my HDD from spinning down for long periods of time, with them spinning back up ~3 mins after spinning down, every hour. I have successfully solved this by changing the location of the log file to '/config/log/nextcloud.log', and by running the following commands:

docker exec -it nextcloud bash
sudo -u abc touch /config/log/nextcloud.log
chmod 777 /config/log/nextcloud.log

From here

 

However, every time the mover runs, the problem returns. I assume the problem is because the mover is moving the file, which is on the cache, back to the array. I have tried to prevent the move by using the mover tuning plugin and excluding the files '/mnt/cache/Nextcloud/nextcloud.log and '/mnt/cache/./Nextcloud/nextcloud.log'. Even though the mover logs show that the log file has not been moved, the problem still returned. If I move the whole Nextcloud data share from the array back to the cache, the problem goes away. 

Can someone tell me what might have caused this? 

 

Thanks in advance. 

server-r1-diagnostics-20240815-0041.zip

Link to comment

I wasn't able to find a different log file anywhere else after running the mover.

 

/config/log/nextcloud.log is in appdata, which is set to cache only. The only log file I could find was in /mnt/cache/appdata/nextcloud/log. I could not find a log file in either /user0 or /disk1. 

Link to comment

I might have explained it a bit poorly. Let me try again. 

 

Nextcloud writing to the logs was the cause of my HDD not spinning down. I'm fairly certain about this because the first time I ran those commands to make a new log file, I had most of the data on the array. That solved the problem until the mover ran that night. I have also managed to replicate this one other time, with that being the only other time. 

 

I was not able to find the log on the array, but that might be a me problem because I'm honestly still not that familiar with the file structure, and might have missed the file. 

 

Also, regarding open files, it did not show that nextcloud.log was open anywhere. 

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.

×
×
  • Create New...