Rawr!!!

NTP Open Solaris (Setup & Configure)

Written by
November 21st, 2009

NTP is awesome, it’s been around forever, and it’s one of the first things I setup on any new machine. This is an especially important service for a NAS device, since sync times are crucial, and there are many important services that are time dependent (snapshots for example).

1) Set the Time

ntpdate 0.pool.ntp.org

— Output —

root@TrayNAS:/etc/inet# ntpdate 0.pool.ntp.org
21 Nov 12:21:19 ntpdate[1296]: adjust time server 66.96.96.29 offset -0.000521 sec

2) Configure

cp /etc/inet/ntp.server /etc/inet/ntp.conf
echo "server 0.pool.ntp.orgnserver 1.pool.ntp.orgnserver 2.pool.ntp.org" >> /etc/inet/ntp.conf
svcadm enable ntp
svcs ntp

— Output —

root@TrayNAS:/etc/inet# svcs ntp
STATE          STIME    FMRI
online         12:12:57 svc:/network/ntp:default

Woot, time is setup. Enjoy synchronized time…

Resources:

Posted in: Opensolaris | Tags: , , |

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>