Re: [pfSense] NTP Drift file not retained (NanoBSD) and "clipping" of

2016-04-22 Thread Vick Khera
On Fri, Apr 22, 2016 at 5:10 PM, Karl Fife  wrote:

> Obviously not retained in the case of an abend, but notably ALSO not
> retained during a normal reboot.  Is there a strategic reason this hard-won
> calibration is not retained?


I agree this should be preserved the same way the RRD files and DHCP leases
are.
___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold


[pfSense] NTP Drift file not retained (NanoBSD) and "clipping" of

2016-04-22 Thread Karl Fife
It appears that pfSense 2.3 and earlier on nanoBSD does not retain its 
system clock calibration between reboots.


On certain (certified) systems, this appears to trigger a sequence in 
which the offset gets further and further behind, and NTPD tries in vain 
to slew the clock, increasing the drift (freq) value until it exceeds 
500, at which point the NTP server gives up, and advertises stratum 16.  
Said system is able to function as a reliable time server if I manually 
step the clock after the system has booted up.  Eventually it will 
re-calculate its drift


Poking around, I see that pfSense on nanoBSD writes NTP drift value to 
/var/db/ntpd.drift

which is mounted to ramdisk  /dev/md1,

Obviously not retained in the case of an abend, but notably ALSO not 
retained during a normal reboot.  Is there a strategic reason this 
hard-won calibration is not retained?



___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold