HDD always spinning up at same time each day

Discussion about hard drive spin down (standby) feature of NAS.
TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

HDD always spinning up at same time each day

Post by TOMillr » Sun May 28, 2017 3:16 am

I've bought a HS-251+ chiefly because of its fanless design. Unfortunately, I'm having trouble getting the two WD Red drives to remain in standby when I'm not using the NAS.

Even when disabling every possible app and service or disconnecting the LAN cable altogether, the NAS still spins up the two drives. Since this always seems to happen at around the same time every day and it follows a pattern, I'm guessing that there's still some kind of service running which I've yet to find.

I've attached the hdd standby log and a log dump.

Maybe someone can point me in the right direction? Would love to have the drives remain in standby all day or at least postpone the regular wake-ups into the night time.
You do not have the required permissions to view the files attached to this post.

User avatar
Don
Guru
Posts: 12007
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: HDD always spinning up at same time each day

Post by Don » Sun May 28, 2017 3:46 am

Probably a scheduled task. Check your chrontab.
Read the Online Manuals and use the forum search feature before posting.

It is a recommended to use RAID and have external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

Submit bugs and feature requests to QNAP via their Helpdesk app.

NAS: TVS-882BR | F/W: 4.3.6.0895 | 40GB | 2 x M.2 SATA RAID 1 (System/VMs) | 4 x M.2 NMVe QM2-4P-384A RAID 5 (Cache) | 5 x 4TB HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-663 | F/W: 4.4.2.1320 | 16GB | 2 x M.2 NMVe QM2-2P RAID 1 (Cache) | 4 x 4TB RAID 5
Apps: Boinc, Squid, DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS, Entware, DLstation, +others

TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

Re: HDD always spinning up at same time each day

Post by TOMillr » Sun May 28, 2017 4:11 am

Thanks for the quick response.

Might be a stupid question: But how do I get at the cbrontab file? Do I have to ssh onto the device or is there a way to go through the web interface?

User avatar
Don
Guru
Posts: 12007
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: HDD always spinning up at same time each day

Post by Don » Sun May 28, 2017 4:48 am

Need to use ssh.
Read the Online Manuals and use the forum search feature before posting.

It is a recommended to use RAID and have external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

Submit bugs and feature requests to QNAP via their Helpdesk app.

NAS: TVS-882BR | F/W: 4.3.6.0895 | 40GB | 2 x M.2 SATA RAID 1 (System/VMs) | 4 x M.2 NMVe QM2-4P-384A RAID 5 (Cache) | 5 x 4TB HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-663 | F/W: 4.4.2.1320 | 16GB | 2 x M.2 NMVe QM2-2P RAID 1 (Cache) | 4 x 4TB RAID 5
Apps: Boinc, Squid, DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS, Entware, DLstation, +others

TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

Re: HDD always spinning up at same time each day

Post by TOMillr » Sun May 28, 2017 5:45 am

Here's how the crontab looks like on my HS-251+

Code: Select all

# m h dom m dow cmd
0 2 * * * /sbin/qfstrim
0 3 * * 0 /etc/init.d/idmap.sh dump
0 4 * * * /sbin/hwclock -s
0 3 * * * /sbin/vs_refresh
0 3 * * * /sbin/clean_reset_pwd
0-59/15 * * * * /etc/init.d/nss2_dusg.sh
30 7 * * * /sbin/clean_upload_file
30 3 * * * /sbin/notice_log_tool -v -R
10 15 * * * /usr/bin/power_clean -c 2>/dev/null
*/10 * * * * /sbin/config_cache_util 0
0 9,21 * * * /sbin/notify_update -m -s -p 1>/dev/null 2>&1
* * * * * /var/cache/netmgr/lock_timer.sh
* * * * * /var/cache/netmgr/detect_defaultgw_internet.sh
4 3 * * 3 /etc/init.d/backup_conf.sh
53 21 * * * /mnt/ext/opt/QcloudSSLCertificate/bin/ssl_agent_cli
~
~
~
~
~
~
crontab                                                      [100%]  16,01     
"crontab" 16L, 627C


P3R
Guru
Posts: 12340
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: HDD always spinning up at same time each day

Post by P3R » Sun May 28, 2017 6:15 am

And what time of day is it that you have a problem with?
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

Re: HDD always spinning up at same time each day

Post by TOMillr » Sun May 28, 2017 6:33 am

I've noticed that the hard drives are always running around 20:00 (8pm) and 21:00 (9pm).

In general, I'd prefer to have the HDDs remain in standby (=silent) mode as long as possible. Scheduled task which must absolutely be running should do so at night or early morning if that is possible.

---------

Just so that I learn something from looking at those entries of the crontab:

Code: Select all

4 3 * * 3 /etc/init.d/backup_conf.sh


For example, the line given above would run "backup_conf.sh" every Wednesday at 4:30 in the morning, right?

But how about syntax like this those?

Code: Select all

* * * * * /var/cache/netmgr/lock_timer.sh

User avatar
OneCD
Ask me anything
Posts: 7955
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: HDD always spinning up at same time each day

Post by OneCD » Sun May 28, 2017 6:44 am

TOMillr wrote:

Code: Select all

4 3 * * 3 /etc/init.d/backup_conf.sh


For example, the line given above would run "backup_conf.sh" every Wednesday at 4:30 in the morning, right?

Nope, it's minutes then hours. ;)

The first line in your crontab (which is commented-out) lets you know what each column means:

Code: Select all

# m h dom m dow cmd

    minutes (0-59),
    hours (0-23),
    day number of the month (1-31),
    month (1-12),
    day number of the week (0-6),
    the command to run.
So your schedule line above indicates 3:04am Wednesday.

TOMillr wrote:But how about syntax like this those?

Code: Select all

* * * * * /var/cache/netmgr/lock_timer.sh

That means "run the lock_timer.sh script every minute".

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

P3R
Guru
Posts: 12340
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: HDD always spinning up at same time each day

Post by P3R » Sun May 28, 2017 3:54 pm

TOMillr wrote:I've noticed that the hard drives are always running around 20:00 (8pm) and 21:00 (9pm).
Maybe you have some client computers, TVs or media players powered on at that time that go check the server regularly?
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

keithkei
New here
Posts: 2
Joined: Sun May 28, 2017 10:16 pm

Re: HDD always spinning up at same time each day

Post by keithkei » Sun May 28, 2017 10:23 pm

I have the same issue with you
My NAS is spinning up at the same time (00minute of) every hour with the latest 4.3.3. Firmware, I do not change any setting since 4.2.0, it just happened...

In fact I did report the not spin down issue with the last version 4.3.2, it's finally got fix but now... issue again and again

TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

Re: HDD always spinning up at same time each day

Post by TOMillr » Mon May 29, 2017 3:06 am

P3R wrote:Maybe you have some client computers, TVs or media players powered on at that time that go check the server regularly?

I've already excluded that possibility since this still happens when I have the LAN cable disconnected.

The NAS isn't connected to my router at the moment, yet the HDD woke up at around 8pm right on schedule. So whatever is triggering this behavior, must come from within the device and not the network.

P3R
Guru
Posts: 12340
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: HDD always spinning up at same time each day

Post by P3R » Mon May 29, 2017 4:14 am

TOMillr wrote:I've already excluded that possibility since this still happens when I have the LAN cable disconnected.
Having the LAN cable disconnected is a problem in itself as that may lead to that something need to be written to the system log, which in turn will wake the disks up.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

Re: HDD always spinning up at same time each day

Post by TOMillr » Tue May 30, 2017 1:32 am

I'm aware that the system wakes up when I disconnect the lan cable. But the hdd goes into standby mode again 10 minutes later and stays that way until around 8pm.

EDIT: Just was able to watch is again in person. The NAS has been disconnected from the router since yesterday and the HDD have been in standby the whole time.

At around 8:02pm the HDDs just woke up and went back to sleep at around 8:17pm. The NAS is configured to put the HDDs into standby after 10 minutes. So some process is waking the drives and keeps them active for about 5 minutes.

This than repeats at around 8:32 and 9:52. After that the drives remain silent until the next evening.

I just can't figure this out... there can't be an external trigger waking the HDDs because the lan cable hasn't been connected. Yet, as far as I can tell by looking at it, the crontab doesn't list any entry that would point to a task running at precisely that time every single day.

TOMillr
Starting out
Posts: 20
Joined: Wed Aug 03, 2016 2:52 am

Re: HDD always spinning up at same time each day

Post by TOMillr » Wed May 31, 2017 4:24 am

This happens every evening. I can set my clocks to it. :-/

User avatar
OneCD
Ask me anything
Posts: 7955
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: HDD always spinning up at same time each day

Post by OneCD » Wed May 31, 2017 4:29 am

Have to ask: have you confirmed the NAS time is correct? ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

Post Reply

Return to “HDD Spin Down (HDD Standby)”