MANAGING YOUR TIME
When it comes to diagnosing error reports, being able to check the sequence of events is essential. That's very hard to do if the servers reporting the errors don't have matching time. In his storage blog the other Anthony Down Under gave this advice: Changing times call for NTP
. (In case you're wondering, there are people working in the IBM space Down Under who are not
So following AnthonyV's call to action, I'm going to show you how easy it is to set up NTP on the VIO server.
You can set up the NTP client on the VIOS in three steps:
- startnetsvc xntpd
- ln -sf /home/padmin/config/ntp.conf /etc/ntp.conf
These three steps are taken from the PowerVM Virtualization Managing and Monitoring Redook
.Chapter 4, section 4.3.
Optional step 4 is to set the date and time using the VIO
Server chdate command
. Have you got the time?
If you've got the time, here are those three steps in a little more detail.Step 1
is to add your NTP server to the ntp configuration file. Note the location of this file: /home/padmin/config directory.
Step 2 actually starts the xntpd daemon. The VIO server startnetsvc command starts services such as telnet, ftpd and sshd when you're logged in as padmin. This command, along with startsvc performs a similar function to the AIX startsrc command. There are corresponding commands to stop these services: stopnetsvc / stopsvc.
Step 3: is explained by that Monitoring and Management Redbook:
In the Virtual I/O Server 22.214.171.124-FP-10.1 you need to restart the xntpd daemon using the stopnetsvc and startnetsvc commands after every reboot, otherwise it will use /etc/ntp.conf as a configuration file instead of /home/padmin/config/ntp.conf. As a workaround you can set up a symbolic link from /home/padmin/config/ntp.conf to /etc/ntp.conf.
As far as I'm aware, this hasn't changed in more recent versions of the VIO server, although since APAR IZ13781 you can specify an alternate ntp.conf file in /etc/rc.tcpip.
Out of time?
If you've been following this blog and faithfully carrying out its recommendations every morning (well, apart from the flippant ones which occasionally slip in), you will have already learned how to set the time on your HMC. Now you can add the VIO server to your list, so that if the world gets hit by an asteroid, you'll know exactly what time it happened. That will be helpful for when you log a support call.