Make NAS write logs on a different drive

Discussion about hard drive spin down (standby) feature of NAS.
Post Reply
matgae
Starting out
Posts: 14
Joined: Sun Jan 29, 2017 11:41 pm

Make NAS write logs on a different drive

Post by matgae »

On my TS-431P I have currently two 4TB HDDs as RAID1 and one separate 512GB SSD installed. All stuff requiring frequent access should be placed on the SSD and the HDDs should spin down as often as reasonable (few minutes with no access). The issue is that they basically never spin down. Here's an excerpt the log, it's basically repeating all the same stuff once and once again:

Code: Select all

0x00000000-----19/30------wait for 5 mins
** Search file ** between Sat Oct  8 21:28:55 2022 and Sat Oct  8 21:33:55 2022 at /mnt/HDA_ROOT
Last file modification:   Sat Oct  8 21:30:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history
Last file modification:   Sat Oct  8 21:30:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1.log
Last file modification:   Sat Oct  8 21:30:01 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CACHEDEV1_DATA.log
Last file modification:   Sat Oct  8 21:30:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2.log
Last file modification:   Sat Oct  8 21:30:01 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CACHEDEV2_DATA.log
Last file modification:   Sat Oct  8 21:30:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CE_CACHEDEV3_DATA.log
Last file modification:   Sat Oct  8 21:30:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_usage.log
Last file modification:   Sat Oct  8 21:30:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_reservation.log
Last file modification:   Sat Oct  8 21:30:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_recycle.log
Last file modification:   Sat Oct  8 21:30:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_usage.log
Last file modification:   Sat Oct  8 21:30:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_reservation.log
Last file modification:   Sat Oct  8 21:30:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_recycle.log
** Search file ** between Sat Oct  8 21:28:55 2022 and Sat Oct  8 21:33:55 2022 at /share/CACHEDEV1_DATA
Last file modification:   Sat Oct  8 21:32:18 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_session_global.tdb
Last file modification:   Sat Oct  8 21:32:18 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_tcon_global.tdb
Last file modification:   Sat Oct  8 21:32:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock
Last file modification:   Sat Oct  8 21:32:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock/4716
Last file modification:   Sat Oct  8 21:32:17 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock/4707
Last file modification:   Sat Oct  8 21:30:01 2022    /share/CACHEDEV1_DATA/.logs/curl.log
** Search file ** between Sat Oct  8 21:28:55 2022 and Sat Oct  8 21:33:55 2022 at /share/CACHEDEV2_DATA
** Search file ** between Sat Oct  8 21:28:55 2022 and Sat Oct  8 21:33:55 2022 at /share/CE_CACHEDEV3_DATA
** Search file ** between Sat Oct  8 21:28:55 2022 and Sat Oct  8 21:33:55 2022 at /mnt/ext
Last file modification:   Sat Oct  8 21:32:18 2022    /mnt/ext/opt/samba/private/msg.sock
Last file modification:   Sat Oct  8 21:32:18 2022    /mnt/ext/opt/samba/private/msg.sock/4716
Last file modification:   Sat Oct  8 21:32:17 2022    /mnt/ext/opt/samba/private/msg.sock/4707
0x00000000-----20/30------wait for 5 mins
** Search file ** between Sat Oct  8 21:34:13 2022 and Sat Oct  8 21:39:13 2022 at /mnt/HDA_ROOT
** Search file ** between Sat Oct  8 21:34:13 2022 and Sat Oct  8 21:39:13 2022 at /share/CACHEDEV1_DATA
Last file modification:   Sat Oct  8 21:38:10 2022    /share/CACHEDEV1_DATA/.samba/lock/locking.tdb
Last file modification:   Sat Oct  8 21:38:10 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_open_global.tdb
** Search file ** between Sat Oct  8 21:34:13 2022 and Sat Oct  8 21:39:13 2022 at /share/CACHEDEV2_DATA
** Search file ** between Sat Oct  8 21:34:13 2022 and Sat Oct  8 21:39:13 2022 at /share/CE_CACHEDEV3_DATA
** Search file ** between Sat Oct  8 21:34:13 2022 and Sat Oct  8 21:39:13 2022 at /mnt/ext
0x00000000-----21/30------wait for 5 mins
** Search file ** between Sat Oct  8 21:39:29 2022 and Sat Oct  8 21:44:29 2022 at /mnt/HDA_ROOT
Last file modification:   Sat Oct  8 21:40:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history
Last file modification:   Sat Oct  8 21:40:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1.log
Last file modification:   Sat Oct  8 21:40:01 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CACHEDEV1_DATA.log
Last file modification:   Sat Oct  8 21:40:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2.log
Last file modification:   Sat Oct  8 21:40:01 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CACHEDEV2_DATA.log
Last file modification:   Sat Oct  8 21:40:01 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CE_CACHEDEV3_DATA.log
Last file modification:   Sat Oct  8 21:40:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_usage.log
Last file modification:   Sat Oct  8 21:40:02 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_reservation.log
Last file modification:   Sat Oct  8 21:40:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_recycle.log
Last file modification:   Sat Oct  8 21:40:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_usage.log
Last file modification:   Sat Oct  8 21:40:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_reservation.log
Last file modification:   Sat Oct  8 21:40:03 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_recycle.log
** Search file ** between Sat Oct  8 21:39:29 2022 and Sat Oct  8 21:44:29 2022 at /share/CACHEDEV1_DATA
Last file modification:   Sat Oct  8 21:40:18 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_session_global.tdb
Last file modification:   Sat Oct  8 21:40:18 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_tcon_global.tdb
Last file access:         Sat Oct  8 21:40:18 2022    /share/CACHEDEV1_DATA/.samba/lock/locking.tdb
Last file modification:   Sat Oct  8 21:40:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock
Last file modification:   Sat Oct  8 21:40:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock/12077
Last file modification:   Sat Oct  8 21:40:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock/12067
** Search file ** between Sat Oct  8 21:39:29 2022 and Sat Oct  8 21:44:29 2022 at /share/CACHEDEV2_DATA
** Search file ** between Sat Oct  8 21:39:29 2022 and Sat Oct  8 21:44:29 2022 at /share/CE_CACHEDEV3_DATA
** Search file ** between Sat Oct  8 21:39:29 2022 and Sat Oct  8 21:44:29 2022 at /mnt/ext
Last file modification:   Sat Oct  8 21:40:18 2022    /mnt/ext/opt/samba/private/msg.sock
Last file modification:   Sat Oct  8 21:40:18 2022    /mnt/ext/opt/samba/private/msg.sock/12077
Last file modification:   Sat Oct  8 21:40:18 2022    /mnt/ext/opt/samba/private/msg.sock/12067
0x00000000-----22/30------wait for 5 mins
** Search file ** between Sat Oct  8 21:44:45 2022 and Sat Oct  8 21:49:45 2022 at /mnt/HDA_ROOT
** Search file ** between Sat Oct  8 21:44:45 2022 and Sat Oct  8 21:49:45 2022 at /share/CACHEDEV1_DATA
Last file modification:   Sat Oct  8 21:48:18 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_session_global.tdb
Last file modification:   Sat Oct  8 21:48:18 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_tcon_global.tdb
Last file modification:   Sat Oct  8 21:47:07 2022    /share/CACHEDEV1_DATA/.samba/lock/brlock.tdb
Last file modification:   Sat Oct  8 21:47:07 2022    /share/CACHEDEV1_DATA/.samba/lock/locking.tdb
Last file modification:   Sat Oct  8 21:47:17 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_open_global.tdb
Last file modification:   Sat Oct  8 21:48:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock
Last file modification:   Sat Oct  8 21:48:18 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock/19164
Last file modification:   Sat Oct  8 21:48:17 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock/19158
Last file modification:   Sat Oct  8 21:47:07 2022    /share/CACHEDEV1_DATA/.samba/lock/leases.tdb
Last file access:         Sat Oct  8 21:47:07 2022    /share/CACHEDEV1_DATA/.samba/var/run/ncalrpc/np/msftewds
** Search file ** between Sat Oct  8 21:44:45 2022 and Sat Oct  8 21:49:45 2022 at /share/CACHEDEV2_DATA
** Search file ** between Sat Oct  8 21:44:45 2022 and Sat Oct  8 21:49:45 2022 at /share/CE_CACHEDEV3_DATA
** Search file ** between Sat Oct  8 21:44:45 2022 and Sat Oct  8 21:49:45 2022 at /mnt/ext
Last file access:         Sat Oct  8 21:47:08 2022    /mnt/ext/opt/samba/share/samba/wsp/wsp_for_qsirch_API_backend_mapping_v2.json
Last file modification:   Sat Oct  8 21:48:18 2022    /mnt/ext/opt/samba/private/msg.sock
Last file modification:   Sat Oct  8 21:48:18 2022    /mnt/ext/opt/samba/private/msg.sock/19164
Last file modification:   Sat Oct  8 21:48:17 2022    /mnt/ext/opt/samba/private/msg.sock/19158
0x00000000-----23/30------wait for 5 mins
** Search file ** between Sat Oct  8 21:50:03 2022 and Sat Oct  8 21:55:03 2022 at /mnt/HDA_ROOT
Last file modification:   Sat Oct  8 21:50:21 2022    /mnt/HDA_ROOT/.config/storage_usage_history
Last file modification:   Sat Oct  8 21:50:08 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1.log
Last file modification:   Sat Oct  8 21:50:04 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CACHEDEV1_DATA.log
Last file modification:   Sat Oct  8 21:50:11 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2.log
Last file modification:   Sat Oct  8 21:50:04 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CACHEDEV2_DATA.log
Last file modification:   Sat Oct  8 21:50:06 2022    /mnt/HDA_ROOT/.config/storage_usage_history/CE_CACHEDEV3_DATA.log
Last file modification:   Sat Oct  8 21:50:13 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_usage.log
Last file modification:   Sat Oct  8 21:50:15 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_reservation.log
Last file modification:   Sat Oct  8 21:50:17 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg1_snapshot_recycle.log
Last file modification:   Sat Oct  8 21:50:17 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_usage.log
Last file modification:   Sat Oct  8 21:50:19 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_reservation.log
Last file modification:   Sat Oct  8 21:50:21 2022    /mnt/HDA_ROOT/.config/storage_usage_history/vg2_snapshot_recycle.log
Last file modification:   Sat Oct  8 21:51:42 2022    /mnt/HDA_ROOT/.config/iscsi_trgt.conf.last
Last file modification:   Sat Oct  8 21:52:41 2022    /mnt/HDA_ROOT/.config/.qos_config/users/admin
Last file modification:   Sat Oct  8 21:52:41 2022    /mnt/HDA_ROOT/.config/.qos_config/users/admin/config
** Search file ** between Sat Oct  8 21:50:03 2022 and Sat Oct  8 21:55:03 2022 at /share/CACHEDEV1_DATA
Last file modification:   Sat Oct  8 21:54:53 2022    /share/CACHEDEV1_DATA/.samba/lock/locking.tdb
Last file modification:   Sat Oct  8 21:54:53 2022    /share/CACHEDEV1_DATA/.samba/lock/smbXsrv_open_global.tdb
Last file modification:   Sat Oct  8 21:55:03 2022    /share/CACHEDEV1_DATA/.samba/lock/msg.lock
** Search file ** between Sat Oct  8 21:50:03 2022 and Sat Oct  8 21:55:03 2022 at /share/CACHEDEV2_DATA
** Search file ** between Sat Oct  8 21:50:03 2022 and Sat Oct  8 21:55:03 2022 at /share/CE_CACHEDEV3_DATA
** Search file ** between Sat Oct  8 21:50:03 2022 and Sat Oct  8 21:55:03 2022 at /mnt/ext
Last file modification:   Sat Oct  8 21:55:03 2022    /mnt/ext/opt/samba/private/msg.sock
Last file access:         Sat Oct  8 21:53:07 2022    /mnt/ext/opt/chassisView/ts_431p_0.svg
Last file access:         Sat Oct  8 21:53:07 2022    /mnt/ext/opt/chassisView/ts_431p_1.svg
How can I make the system to write all that storage usage history stuff on the SSD? And concerning Samba: One Windows computer has the HDD RAID array permanently mounted, but shouldn't access it. So in theory that shouldn't be an issue?
User avatar
dolbyman
Guru
Posts: 35273
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Make NAS write logs on a different drive

Post by dolbyman »

there is no permanent way to do this ..as this is the way the NAS was designed

here is a guide to fiddle your scenario together

viewtopic.php?t=130788
matgae
Starting out
Posts: 14
Joined: Sun Jan 29, 2017 11:41 pm

Re: Make NAS write logs on a different drive

Post by matgae »

Thanks a lot for the link. That's really helpful!

If I would have known about this design choice I definitely wouldn't have bought a NAS from this vendor.

One further question regarding this topic: Currently first the HDDs in bay 1 and 2 have been installed and then later on the SSD in bay 3. Would it be advantageous to reset everything to factory defaults, then only install the SSD first in bay 1, then install all stuff and afterwards the HDDs in bay 2 and 3? Reading the linked thread I'm afraid that won't help, it would just feel safer. Am I correct?
User avatar
dolbyman
Guru
Posts: 35273
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Make NAS write logs on a different drive

Post by dolbyman »

wouldn't make a difference...how would it feel safer?
matgae
Starting out
Posts: 14
Joined: Sun Jan 29, 2017 11:41 pm

Re: Make NAS write logs on a different drive

Post by matgae »

It's just a feeling. Maybe doing one step of improvement without messing with stuff the vendor doesn't mean the users to do. But I've followed the suggestions in the linked thread. That works perfectly fine, tanks again!
Post Reply

Return to “HDD Spin Down (HDD Standby)”