Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / ntp / html / hints / solaris-dosynctodr.html
1
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
3
4
5 <!-- Sun Template V4.0 9/9/98 -->
6 <HTML>
7 <HEAD>
8 <TITLE>Symptoms and Resolutions Article 19195</TITLE>
9 <META NAME="GENERATOR" CONTENT="Sun Microsystems, Inc.">
10 <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1">
11
12 <!-- INSERT YOUR META TAGS HERE -->
13
14 <META NAME="PUBLISHED_DATE" CONTENT="">
15 <META NAME="KEYWORDS" CONTENT="">
16 <META NAME="DESCRIPTION" CONTENT="">
17
18 <!-- END META TAGS -->
19
20 <LINK REL="Stylesheet" TYPE="text/css" HREF="/style.css" TITLE="Style">
21
22 </HEAD>
23 <!--stopindex-->
24 <BODY BGCOLOR="#FFFFFF" LINK="#666699" ALINK="#FFFFFF">
25
26
27 <TABLE WIDTH="623" BORDER="0" CELLSPACING="0" CELLPADDING="0">
28         <TR>
29                 <TD COLSPAN="2" VALIGN="TOP" WIDTH="623">
30                 <IMG BORDER="0" SRC="/images/homebuy.gif" WIDTH="149" HEIGHT="32" ALT="Home * Buy * My Sun(sm)" USEMAP="#lefttop"><IMG BORDER="0" SRC="/images/globalnavbar.gif" WIDTH="474" HEIGHT="32" ALT="sun.com Global Sections" USEMAP="#topnav"></TD>
31         </TR>
32         <TR>
33                 <TD COLSPAN="2" VALIGN="TOP" WIDTH="623">
34
35         <!-- TITLEBAR IMAGE: INSERT CUSTOMIZED TITLEBAR IMAGE BELOW -->
36
37         <A HREF="http://www.sun.com/"><IMG BORDER="0" SRC="/images/sunlogo.gif" WIDTH="149" HEIGHT="72" ALT="Sun Microsystems"></A><IMG BORDER="0" SRC="/images/titlebar/doc.title.gif" WIDTH="474" HEIGHT="72"></TD>
38         </TR>
39                         <!-- Begin Search Elements -->
40         <TR VALIGN="top">
41             <TD BGCOLOR="#666699">      
42                         <TABLE BORDER="0" WIDTH="157" CELLSPACING="0" CELLPADDING="0">
43                                 <TR>
44                                     <TD BGCOLOR="#666699" COLSPAN="2" WIDTH="157" VALIGN="TOP"><IMG BORDER="0" SRC="/images/search/contract/search1.gif" WIDTH="157" HEIGHT="16" ALT="Search SunSolve"></TD>
45                             </TR>
46                                 <TR>
47                                         <TD VALIGN="top" ALIGN="center" WIDTH="141" BGCOLOR="#666699"><FORM ACTION="search.pl" METHOD="POST"><FONT SIZE="2"><INPUT TYPE="text" NAME="zone_32" SIZE="14"></FONT><input type=hidden name=mode value=results><BR>
48 <INPUT TYPE="image" SRC="/images/search/contract/search5.gif" BORDER="0" NAME="Search"><IMG SRC="/images/cg_clear.gif" ALT="" WIDTH="2" HEIGHT="1" BORDER="0" HSPACE="29" VSPACE="0"><BR>
49
50 <A HREF="search.pl?mode=advanced"><IMG BORDER="0" SRC="/images/search/contract/search3.gif" WIDTH="144" HEIGHT="16" ALT="Advanced Search"></A><BR>
51
52 <A HREF="search.pl?mode=product"><IMG SRC="/images/search/contract/search4.gif" BORDER="0" ALT="Product Search" WIDTH="144" HEIGHT="19"></A><BR>
53
54 <A HREF="show.pl?target=help/search_tips"><IMG SRC="/images/search/contract/search6.gif" BORDER="0" ALT="Search Tips" WIDTH="144" HEIGHT="27"></A></TD>
55                                         <TD ALIGN="right"><IMG SRC="/images/search/contract/search2.gif" ALT="" WIDTH="13" HEIGHT="117" BORDER="0"></TD>
56                                 </TR>
57     <!-- End Search Elements -->
58                     <!-- Begin User Personalization (Must limit to 10 Characters)-->
59                     <TR>
60                         <TD COLSPAN="2"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="157"><TR><TD COLSPAN="3" ALIGN="right"><IMG SRC="/images/home_con/welcom_1.gif" ALT="" WIDTH="156" HEIGHT="4" BORDER="0"></TD></TR>
61                                         <TR><TD BGCOLOR="#333366"><IMG SRC="/images/home_con/welcom_2.gif" ALT="" WIDTH="17" HEIGHT="19" BORDER="0"></TD><TD BGCOLOR="#333366" VALIGN="middle"><NOBR><FONT FACE="Geneva, Helvetica, Arial, SunSans-Regular" COLOR="#99CC33" SIZE="-2">sopko</FONT></NOBR></TD><TD BGCOLOR="#333366" ALIGN="right"><A HREF="edit-user-form.pl?viewmode=contractuser"><IMG SRC="/images/home_con/welcom_3.gif" ALT="Edit" WIDTH="45" HEIGHT="19" BORDER="0"></A></TD></TR>
62                                 </TABLE>
63                                 </TD>
64                                 </TR> 
65                 <!-- End User Personalization -->
66
67                                <TR>
68                                         <TD COLSPAN="2" ALIGN="right" VALIGN="top" WIDTH="157" BGCOLOR="#666699"><IMG BORDER="0" SRC="/images/ssolvecontents.gif" WIDTH="157" HEIGHT="37" ALT="Contents Of SunSolve"><BR>
69
70  
71
72
73
74                 <!-- PILLS: CHANGE THE PILL FOR CURRENT SECTION TO THE HIGHLIGHTED PILL -->
75                 <!-- Beginning of Nav area -->
76 <A HREF="show.pl?target=patches/patch-access" onmouseover="window.status='All Public Patches'; return true" onmouseout="window.status=''; return true">
77 <IMG BORDER="0" SRC="/images/nav/p1.gif" WIDTH="157" HEIGHT="19" ALT="All Public Patches"></A><BR>
78 <A HREF="suncourier.pl" onmouseover="window.status='Submit a Service Order'; return true" onmouseout="window.status=''; return true">
79 <IMG BORDER="0" SRC="/images/nav/p5.gif" WIDTH="157" HEIGHT="19" ALT="Submit a Service Order"></A><BR>
80 <A HREF="show.pl?target=resources/tools" onmouseover="window.status='Diagnostic Tools'; return true" onmouseout="window.status=''; return true">
81 <IMG BORDER="0" SRC="/images/nav/p4.gif" WIDTH="157" HEIGHT="19" ALT="Diagnostic Tools"></A><BR>
82 <A HREF="show.pl?target=help/collections" onmouseover="window.status='Support Docs.'; return true" onmouseout="window.status=''; return true">
83 <IMG BORDER="0" SRC="/images/nav/cp2.gif" WIDTH="157" HEIGHT="19" ALT="Support Docs."></A><BR>
84 <A HREF="show.pl?target=resources/y2k" onmouseover="window.status='Y2K Central'; return true" onmouseout="window.status=''; return true">
85 <IMG BORDER="0" SRC="/images/nav/p3.gif" WIDTH="157" HEIGHT="19" ALT="Y2K Central"></A><BR>
86 <A HREF="show.pl?target=security/sec" onmouseover="window.status='Security Information'; return true" onmouseout="window.status=''; return true">
87 <IMG BORDER="0" SRC="/images/nav/p2.gif" WIDTH="157" HEIGHT="19" ALT="Security Information"></A><BR>
88 <br><table cellpadding="0" cellspacing="0" border="0" width="157">
89 <tr><td width="8">&nbsp;</td><td width="149">
90 <table cellpadding="0" cellspacing="0" border="0">
91 <BR><tr><td><BR><img src="/images/line.gif" alt="------" width="140" height="11" border="0"><br>
92                 <A HREF="mark.pl" 
93                         onmouseover="window.status='Marked Docs.';return true"
94                         onmouseout="window.status='';return true">
95                         <font class="locallink" color="#dddddd">Marked Docs.</FONT></A><BR>
96                 <A HREF="notify.pl" 
97                         onmouseover="window.status='Notifications';return true"
98                         onmouseout="window.status='';return true">
99                         <font class="locallink" color="#dddddd">Notifications</FONT></A><BR>
100                 <A HREF="/plain-cgi/show.pl?target=home_con" 
101                         onmouseover="window.status='Low Graphics';return true"
102                         onmouseout="window.status='';return true">
103                         <font class="locallink" color="#dddddd">Low Graphics</FONT></A><BR>
104                 <A HREF="show.pl?target=link" 
105                         onmouseover="window.status='SunSolve Servers';return true"
106                         onmouseout="window.status='';return true">
107                         <font class="locallink" color="#dddddd">SunSolve Servers</FONT></A><BR>
108                 <A HREF="show.pl?target=about_sunsolve" 
109                         onmouseover="window.status='About SunSolve';return true"
110                         onmouseout="window.status='';return true">
111                         <font class="locallink" color="#dddddd">About SunSolve</FONT></A><BR>
112                 <A HREF="feedback.pl" 
113                         onmouseover="window.status='Contact Us';return true"
114                         onmouseout="window.status='';return true">
115                         <font class="locallink" color="#dddddd">Contact Us</FONT></A><BR>
116                 <A HREF="show.pl?target=help/sitemap" 
117                         onmouseover="window.status='Site Map';return true"
118                         onmouseout="window.status='';return true">
119                         <font class="locallink" color="#dddddd">Site Map</FONT></A><BR>
120                 <A HREF="show.pl?target=article/article" 
121                         onmouseover="window.status='Articles';return true"
122                         onmouseout="window.status='';return true">
123                         <font class="locallink" color="#dddddd">Articles</FONT></A><BR>
124                 <A HREF="show.pl?target=home_con" 
125                         onmouseover="window.status='Home';return true"
126                         onmouseout="window.status='';return true">
127                         <font class="locallink" color="#dddddd">Home</FONT></A><BR>
128                 <A HREF="show.pl?target=help/faq" 
129                         onmouseover="window.status='Help';return true"
130                         onmouseout="window.status='';return true">
131                         <font class="locallink" color="#dddddd">Help</FONT></A><BR>
132 <br></td></tr></table></td></tr></table>
133 <!-- End of Nav area -->
134
135                 </FORM>
136                 <br><br><!-- some spacers -->
137                         </TD>
138                 </TR>
139                 </TABLE>
140                 </TD>
141                 <TD VALIGN="TOP" WIDTH="466">
142
143        
144         <!--startindex-->
145         <!-- ============  -->
146         <!-- MAIN CONTENT  -->
147         <!-- ============  -->
148
149
150
151 <table width=100% cellpadding=16 cellspacing=0 border=0>
152   <tr>
153 <td width=100% valign=top>
154 <CENTER><FONT FACE="Geneva, Helvetica, Arial, SunSans-Regular" SIZE="2">
155 [&nbsp;<a href="retrieve.pl?type=0&doc=srdb%2F19195&display=plain">Printer Friendly Page</a>&nbsp;]
156 [&nbsp;<b>Was this document useful? <a href="retrieve.pl?type=0&doc=srdb/19195&vote=yes">Yes</a> or <a href="retrieve.pl?type=0&doc=srdb/19195&vote=no">No</a></b>&nbsp;]<br>[&nbsp;<a href="notify.pl?action=add&doc=srdb%2F19195&type=synopsis">Notify if Document Changes</a>&nbsp;]
157 [&nbsp;<a href="mark.pl?action=add&doc=srdb%2F19195&type=0">Mark Document for Download</a>&nbsp;]<br>[&nbsp;<a href="notify.pl">View/Edit Notifications</a>&nbsp;]
158 [&nbsp;<a href="mark.pl">View/Edit Marked Documents</a>&nbsp;]<br></FONT></CENTER><br>
159                 <SCRIPT Language="JavaScript">
160                 <!-- Hide javascript from older browsers
161                 function jump() 
162                 {
163                         var ctl = document.docform.jumplist;
164                         location.href = ctl.options[ctl.selectedIndex].value;
165                 }
166                 // End hiding contents -->
167                 </SCRIPT>
168 <a name="top">
169 <form name="docform"><div align=center><font size=2> Jump to <select name="jumplist" size=1 onchange="jump();"></font><option value="#Hardware">Hardware</option>
170 <option value="#Product">Product</option>
171 <option value="#Product-Area">Product Area</option>
172 <option value="#Synopsis">Synopsis</option>
173 <option value="#Problem-Description">Problem Description</option>
174 <option value="#Document-Content">Document Content</option>
175 <option value="#Problem-Solution">Problem Solution</option>
176 <option value="#SRDB-ID">SRDB ID</option>
177 <option value="#OS">OS</option>
178 </select></div></form>
179 <table width=100% cellpadding=2 cellspacing=0 border=0>
180 <tr bgcolor=#666699><td><font size=2 color=#ffffff><b>SRDB ID</b></font></td>
181 <td bgcolor=#ffffff><font size=2>&nbsp;</font></td>
182 <td><font size=2 color=#ffffff><b>Synopsis</b></font></td>
183 <td bgcolor=#ffffff><font size=2>&nbsp;</font></td>
184 <td><font size=2 color=#ffffff><b>Date</b></font></td>
185 </tr>
186 <tr bgcolor=#CCCCE7><td><font size=2><b>19195</b></font></td>
187 <td bgcolor=#ffffff><font size=2>&nbsp;</font></td>
188 <td><font size=2><b>Upgraded to 2.6, using xntpd, but the system clock is drifting. Worked fine</b></font></td>
189 <td bgcolor=#ffffff><font size=2>&nbsp;</font></td>
190 <td><font size=2><b>4 Sep 1999</b></font></td>
191 </tr>
192 </table><br clear>
193 <table width=100% cellpadding=2 cellspacing=0 border=0><tr bgcolor=#999999>
194 <td><font size=2 color=#ffffff><b><a name=Problem-Description>Problem Description</a></b></font></td>
195 <td align=right><b><a href="#top"><font size=2 color=#ffffff>Top</font></a></b></td></tr></table>
196 <pre>Ever since upgrading to Solaris 2.6, the system clock has been drifting and
197 there are messages like 'synchronisation lost', 'Previous time adjustment
198 didn''t complete' and 'time reset (step)' a lot in the /var/adm/messages 
199 file. The system either was previously working fine with the freeware
200 xntpd or the configuration was copied from another system that was 
201 using the freeware version.
202 -- 23-Apr-99 08:22 US/Eastern --</pre><table width=100% cellpadding=2 cellspacing=0 border=0><tr bgcolor=#999999>
203 <td><font size=2 color=#ffffff><b><a name=Problem-Solution>Problem Solution</a></b></font></td>
204 <td align=right><b><a href="#top"><font size=2 color=#ffffff>Top</font></a></b></td></tr></table>
205 <pre>The common lore for setting up xntpd on Solaris using
206 the freeware version included the warning to set the 
207 kernel variable <font color=red>dosynctodr</font> to 0 in the /etc/system 
208 file thus: set <font color=red>dosynctodr</font>=0
209
210 When using NTP on Solaris 2.6 or later, the kernel 
211 variable MUST be left at the default value of 1. Prior 
212 to 2.6 this variable controlled whether or not to rein  
213 in the softclock using the hardware clock, with the result 
214 that NTP and the hardware clock would fight for control of 
215 the soft clock; thus before 2.6 you had to set <font color=red>dosynctodr</font> 
216 to 0. At 2.6, every system call that adjusts the softclock 
217 also sets the hard clock, thus while NTP controls the soft 
218 clock, the hard clock is also controlled. Setting 
219 <font color=red>dosynctodr</font> to 0 reverts the behavior back to the pre 2.6 
220 defaulkt behavior, having exactly the opposite effect 
221 as that intended.
222
223 Do not set <font color=red>dosynctodr</font> to 0.</pre><table width=100% cellpadding=2 cellspacing=0 border=0>
224 <tr><td bgcolor=#999999 valign=top width=25%><font color=#ffffff size=2><b><a name=Product-Area>Product Area</a></b></font></td>
225 <td bgcolor=#cccccc valign=top width=75%><font size=2>Bundled Network</font></td></tr>
226 <tr><td bgcolor=#999999 valign=top width=25%><font color=#ffffff size=2><b><a name=Product>Product</a></b></font></td>
227 <td bgcolor=#cccccc valign=top width=75%><font size=2>NTP</font></td></tr>
228 <tr><td bgcolor=#999999 valign=top width=25%><font color=#ffffff size=2><b><a name=OS>OS</a></b></font></td>
229 <td bgcolor=#cccccc valign=top width=75%><font size=2>Solaris 2.6</font></td></tr>
230 <tr><td bgcolor=#999999 valign=top width=25%><font color=#ffffff size=2><b><a name=Hardware>Hardware</a></b></font></td>
231 <td bgcolor=#cccccc valign=top width=75%><font size=2>Ultra 2</font></td></tr>
232 <tr><td bgcolor=#999999 valign=top width=25%><font color=#ffffff size=2><b><a name=Document-Content>Document Content</a></b></font></td>
233 <td bgcolor=#cccccc valign=top width=75%><font size=2>with freeware xntpd.</font></td></tr>
234 </table><br clear>
235 <font size=2><a href="#top">Top</a></font><br><br>
236 </td></tr></table>
237
238         <!-- ===================  -->
239         <!-- END OF MAIN CONTENT -->
240         <!-- ===================  -->
241         <!--stopindex-->
242
243         <!-- DON'T CHANGE INFORMATION OTHER THAN titlebar BELOW THIS LINE -->
244
245         <!-- Altered Table Structure from Template to format properly with new design -->
246         </TD>
247     </TR>
248     <TR>
249         <TD>&nbsp;</TD>
250         <TD VALIGN="top">
251         <center>
252         <IMG SRC="/images/cg_grey_line.gif" ALT="" WIDTH="466" HEIGHT="2" BORDER="0"><BR>
253         <IMG SRC="/images/cg_clear.gif" ALT=""  WIDTH="1" HEIGHT="2" BORDER="0" HSPACE="0" VSPACE="4">
254         </center>
255         <CENTER>
256         <FONT FACE="Geneva, Helvetica, Arial, SunSans-Regular" SIZE="2">
257         [ <A HREF="edit-user-form.pl?viewmode=contractuser">Edit Account</A> ]
258         [ <A HREF="show.pl?target=patches/patch-access">Patches</A> ]
259         [ <A HREF="suncourier.pl">Submit a Service Order</A> ]<br>
260         [ <A HREF="show.pl?target=resources/tools">Diagnostic Tools</A> ]  
261         [ <A HREF="show.pl?target=help/collections">Support Docs.</A> ]
262         [ <A HREF="show.pl?target=resources/y2k">Y2K Central</A> ] 
263         [ <A HREF="show.pl?target=security/sec">Security Information</A> ] <br>
264         [ <A HREF="show.pl?target=link">SunSolve Servers </A> ]
265         [ <A HREF="show.pl?target=about_sunsolve">About SunSolve</A> ] 
266         [ <A HREF="feedback.pl">Contact Us</A> ] 
267         [ <A HREF="show.pl?target=help/sitemap">Site Map</A> ]
268         [ <A HREF="show.pl?target=article/article">Articles</A> ]
269         [ <A HREF="show.pl?target=home_con">Home</A> ]
270         [ <A HREF="show.pl?target=help/faq">Help</A> ]
271         </FONT>
272         </CENTER>
273
274 <!-- MAPS -->
275 <MAP NAME="lefttop">
276 <AREA SHAPE="rect" HREF="http://www.sun.com/MySun/" ALT="My Sun" COORDS="89,0 149,32">
277 <AREA SHAPE="rect" HREF="show.pl?target=home_con" ALT="Home" COORDS="0,0 42,32">
278 <AREA SHAPE="rect" HREF="http://www.sun.com/sales/" ALT="Buy" COORDS="54,0 78,32">
279 </MAP>
280
281
282 <MAP NAME="topnav">
283 <AREA SHAPE="rect" HREF="http://www.sun.com/java/" ALT="Java Technologies" COORDS="4,0,67,32">
284 <AREA SHAPE="rect" HREF="http://www.sun.com/products-n-solutions/" ALT="Products and Solutions" COORDS="74,0,141,32">
285 <AREA SHAPE="rect" HREF="http://www.sun.com/service/" ALT="Support, Education, and Consulting" COORDS="148,0,249,32">
286 <AREA SHAPE="rect" HREF="http://www.sun.com/tech/" ALT="Technology and Research" COORDS="261,0,324,32">
287 <AREA SHAPE="rect" HREF="http://www.sun.com/developers/developers.html" ALT="For Developers" COORDS="334,0,396,32">
288 <AREA SHAPE="rect" HREF="http://www.sun.com/corporateoverview/" ALT="Corporate Information" COORDS="406,0,482,32">
289 </MAP>
290
291 <!-- INSERT titlebar HREFS BELOW -->
292 <MAP NAME="titlebar">
293 <!-- LINK TO SEC HOME Removed because no longer needed on this template -->
294 <AREA SHAPE="rect" HREF="/visual/home/" ALT="SunSolve Online(tm)" COORDS="0,21,215,51"> <!-- LINK TO CURRENT PILL HOME -->
295 </MAP>
296
297
298 <!-- begin copyright notice -->
299
300 <BR>
301 <CENTER>
302 <FONT FACE="Geneva, Helvetica, Arial, SunSans-Regular" COLOR="#999999" SIZE="2">
303 <br>
304 Copyright 1994-1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.
305 <br>
306 All rights reserved.
307 <a href="http://www.sun.com/share/text/SMICopyright.html">Legal Terms</a>. 
308 <a href="http://www.sun.com/privacy/">Privacy Policy</a>.
309 </font>
310 </CENTER>
311
312 <!-- end copyright notice -->
313         
314         </TD>
315     </TR>
316 </TABLE>
317
318 </BODY>
319 </HTML>
320