------------- ntp errors -----------
<A 
href="http://www.listbox.com/member/archive/184463/2014/06/search/bnRw/sort/time_rev/page/1/entry/9:10/";>Post
 on smartos-discuss</A>

I am currently running 20140501T2256422 on a Dell Precision T3500

I know this thread was posted with 2014-06-26 version of SmartOS, but I am 
getting the same
symptom on a fresh install of 2014-05-01. Perhaps the rouge servers used to be 
in session but
have since gone out of session. SmartOS does not appear to obtain a new server 
list from the
ntp_hosts as specified in the /usbkey/config file.

------------- Symptom -----------

On Console:
  Method "/lib/svc /method/ntp start" failed with exit status 96.
  ... see 'svcs -xv' for details
 
#svcs -xv
  ...
  Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
  ...
  See: /var/svc/log/network-ntp:default.log

#less /var/svc/log/network-ntp:default.log
  ... 
  Error: Servers/peers specified but none is reachable.
  ...

#less /etc/inet/ntp.conf
  server 169.229.70.183
  server 128.177.27.52
  server 69.65.40.29
  ...

#less /usbkey/config
  ...
  ntp_hosts=pool.ntp.org
  ...

------------ Problem ------------

  Somehow, even though ntp_hosts appears to be properly specified in 
/usbkey/config,
  these three rouge servers (169.229.70.183, 128.177.27.52, and 69.65.40.29) 
keep 
  getting written to /etc/inet/ntp.conf at boot time. Changing the value of 
ntp_hosts
  in the /usbkey/config file seems to have no effect.

------------ Remedy / Workaround ----------

Do you have a /opt/custom/smf/ directory with your own startup script?
If no, see: <A 
href="http://wiki.smartos.org/display/DOC/Administering+the+Global+Zone";>SmartOS
 - Administering the Global Zone</A>

Step 1)----
Per that example, you will have a startup script named 
/opt/custom/share/svc/smartos_setup.sh
Of course, since you setup your own smf directory, your start script may have a 
different name.
Add this one line to that script in the case 'start') section:

   cp /opt/custom/always_fresh_ntp.conf /etc/inet/ntp.conf

Step 2)----
 Copy the existing ntp.conf into your /opt/custom/ directory.

   #cp /etc/inet/ntp.conf /opt/custom/always_fresh_ntp.conf

Step 3)
 Edit your always_fresh_ntp.conf to remove the first 3 lines of rogue servers 
and place in your own server lines. I do:

 server 0.us.pool.ntp.org

 but you might choose something other than ntp.org like

 server time.apple.com
 server why.not.ntp.smartos.org
 server time.nist.gov

------------ See Also -----------------

<A href="http://www.tldp.org/LDP/sag/html/basic-ntp-config.html";>Really basic 
on ntp.conf</A>
<A href="http://www.pool.ntp.org/zone";>A nifty graph shows that there was a 
recent drop in the number of available servers via ntp.org</A>
<A 
href="http://www.listbox.com/member/archive/184463/2014/07/search/bnRw/sort/time_rev/page/1/entry/3:5";>Can
 SmartOS distribute with pool.ntp.org?</A>

------------ Conclusion ---------------

 This is certainly a bug in the SmartOS distribution. It should be resolved: 
first, by properly loading the servers from the /usbkey/config file; second, by 
identifying multiple pools of servers willing to support the smartos.org cause; 
and third, providing an option to specify or select your ntp server on initial 
setup.

------------- Final Note --------------

I really do not like this mailing list format and ListBox is kinda klunky - 
like I cant even read all the posts about ntp without clicking though the 
heirarchy of years and months.... Is there some forum that might provide an 
better expience for SmartOS enthusiasts? I'm thinking SmartOSOverflow?

---------------- Bye ------------------                                         
  


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to