Page 1 of 1

Hardware clock resets when NAS is off overnight

PostPosted: Sun Jul 06, 2014 5:03 pm
by Auroro
(LaCie-CloudBox 2TB - fvdw-sl 15.3)

Good day.

When the NAS is off overnight, the hardware clock resets itself to January 20th, 2011, at approximately 1:41 A.M.

The NAS is connected to an internal network with no Internet access. However, its NTP settings point to a NTP server on the LAN.

As long as the NAS is on (including overnight), it keeps very accurate time. I also regularly check the hardware clock time and it is accurate as well.

Since (I don't believe) this has anything to do with the firmware, I'm wondering if this is typical or did I, perhaps, purchase a defective unit.

Any ideas?

Thank you.

Re: Hardware clock resets when NAS is off overnight

PostPosted: Mon Jul 07, 2014 10:40 pm
by fvdw
I don't have a cloudbox so i don't know if it stores the time when it is switch off. The nwsp2 classic also forgets the time when it is power off for some minutes. It then comes up with default time it is only reset when it finds the ntp server or if you set it manually. Maybe the cloudbox has the same issue.
Seems to me that the nas fails to get info from your ntp server at boot time

Re: Hardware clock resets when NAS is off overnight

PostPosted: Tue Jul 08, 2014 12:27 pm
by Auroro
Good day and thank you, fvdw.

I've confirmed that the CB loses the hardware clock time as soon as the power is off. From what I've read the CB is based on the nwsp2, apparently, neither one has a battery to save the time.

You were right about the NTPD daemon not synchronizing with the NTP server upon boot-up. The CB boots-up a lot faster than the server. Hence, by the time the NTP server is up, the NTPD daemon has given up.

My workaround is a simple bash script that restarts the NTPD daemon five minutes after the CB boots-up (two or three minutes would probably work as well). By that time, the NTP server is ready for business.

I an ideal world, the CB would be running 24/7. Since no one needs it after normal business hours, that would be a waste of money and natural resources.