NTP Open Solaris (Setup & Configure)
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: ntp, Opensolaris, time |