1 |
Michael Mol <mikemol@×××××.com> [12-02-06 19:20]: |
2 |
> On Mon, Feb 6, 2012 at 12:51 PM, <meino.cramer@×××.de> wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > to get the correct system time I use ntp-client in the boot process. |
6 |
> > Furthermore in /etc/conf.d/hwclock I set: |
7 |
> > |
8 |
> > # Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as |
9 |
> > # Greenwich Mean Time). If that clock is set to the local time, then |
10 |
> > # set CLOCK to "local". Note that if you dual boot with Windows, then |
11 |
> > # you should set it to "local". |
12 |
> > clock="UTC" |
13 |
> > |
14 |
> > # If you want to set the Hardware Clock to the current System Time |
15 |
> > # (software clock) during shutdown, then say "YES" here. |
16 |
> > # You normally don't need to do this if you run a ntp daemon. |
17 |
> > clock_systohc="YES" |
18 |
> > |
19 |
> > # If you want to set the system time to the current hardware clock |
20 |
> > # during bootup, then say "YES" here. You do not need this if you are |
21 |
> > # running a modern kernel with CONFIG_RTC_HCTOSYS set to y. |
22 |
> > # Also, be aware that if you set this to "NO", the system time will |
23 |
> > # never be saved to the hardware clock unless you set |
24 |
> > # clock_systohc="YES" above. |
25 |
> > clock_hctosys="NO" |
26 |
> > |
27 |
> > # If you wish to pass any other arguments to hwclock during bootup, |
28 |
> > # you may do so here. Alpha users may wish to use --arc or --srm here. |
29 |
> > clock_args="" |
30 |
> > |
31 |
> > In the kernel config file I had set: |
32 |
> > |
33 |
> > CONFIG_RTC_HCTOSYS=y |
34 |
> > CONFIG_RTC_HCTOSYS_DEVICE="rtc0" |
35 |
> > |
36 |
> > I would exspect that after a reboot of the system which system time is |
37 |
> > correctly set via ntp-client that the hwclock and system time only |
38 |
> > differ in a small amount of time. |
39 |
> > |
40 |
> > But: |
41 |
> > solfire:/home/mccramer>hwclock |
42 |
> > Mon Feb 6 19:05:11 2012 -0.172569 seconds |
43 |
> > solfire:/home/mccramer>date |
44 |
> > Mon Feb 6 18:49:37 CET 2012 |
45 |
> > solfire:/home/mccramer> |
46 |
> |
47 |
> I don't know the CET tz, but I can see that the minutes don't match |
48 |
> up. I assume you rand the two commands within seconds of each other. |
49 |
> Is this true immediately after bootup, or does it take a while to get |
50 |
> that far off? It could be that your hardware clock is drifting, and |
51 |
> the system won't reset it until it goes to shutdown. |
52 |
> |
53 |
> -- |
54 |
> :wq |
55 |
> |
56 |
|
57 |
Hi Michael, |
58 |
thank you for your reply. |
59 |
I set the configuration as mentioned above and booted twice with about |
60 |
five minutes wait. |
61 |
The commands were executed within seconds, yes. |
62 |
All hardware clocks drifts, but this is not the problem. |
63 |
The problem is that the hardware clock is not set to the system time |
64 |
in contradiction to what I think the comments in the config are |
65 |
saying. |
66 |
|
67 |
How can I fix that? |
68 |
|
69 |
Thank you very much in advance for any help! |
70 |
Best regards, |
71 |
mcc |