Operating System - HP-UX
1833707 Members
2244 Online
110063 Solutions
New Discussion

Bringing up machine in new location and Timezone.

 
joe_91
Super Advisor

Bringing up machine in new location and Timezone.

Team:

We disconnected a nclass from atlanta and moved it to st.louis. Before disconnecting the node we changed the ip, hostname etc and shipped it to st.louis. Now, we have to bring back the machine on st.louis site. Please let me know if there are any specific steps that i shd be aware of when i bring the machine up. The machine is a single node service guard machine running 11.0 running nis (as slave) with the master server in atlanta.

Thanks

Joe.
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Bringing up machine in new location and Timezone.

Joe,

I think all you need to do is run "/sbin/set_parms timezone" and you should be all set.


Pete

Pete
Kent Ostby
Honored Contributor

Re: Bringing up machine in new location and Timezone.

I would boot it up into single user mode with:

hpux -is

then change the TZTAB variable either manually or as Pete mentions above.

Then do a clean reboot of it. This will minimize the files that are touched by the backwards time movement.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Jeff Schussele
Honored Contributor

Re: Bringing up machine in new location and Timezone.

Hi Joe,

Just change the /etc/TIMEZONE file for the default system TZ. Of course any user can set their own TZ var.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Patrick Wallek
Honored Contributor

Re: Bringing up machine in new location and Timezone.

ACtually in this case you are not moving the time at all, just changing how it is displayed by changing the TZ to central time. If you want to change the default timezone to Central then you will need to modify the /etc/default/tz file so that it contains CST6CDT

I would, however, check the time to make sure it is accurate. If not, then I would boot to single-user mode and set it, then reboot. If you have ntp configured and working this could be taken care of automatically.
joe_91
Super Advisor

Re: Bringing up machine in new location and Timezone.

Hi:

So if i have ntp configured then i need not worry? I am looking into /etc/ntp.conf file and find entries of my dns servers there. So looks like it is configured. So is that it? Just reboot the box?

Thanks

Joe.
joe_91
Super Advisor

Re: Bringing up machine in new location and Timezone.

also i see the /usr/sbin/xntpd running with a -c /etc/ntp.conf. will this change the TZ automatically?

Thanks

Joe
A. Clay Stephenson
Acclaimed Contributor

Re: Bringing up machine in new location and Timezone.

Almost certainly you are also going to have to a set_parms ip_address as well. You will almost certainly have a new ip address, subnet, and default router. If you change the hostname, the ypservers map will also need to be updated. Depending upon whether you use NIS or DNS for hostname resolution those resources will also have to be updated.
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: Bringing up machine in new location and Timezone.

Hi:

We use dns for hostname resolution. Any idea about the NTP question?

Thanks

Joe.
Victor Fridyev
Honored Contributor

Re: Bringing up machine in new location and Timezone.

Hi,

I agree with all folks who recommend to start up the machine in single user mode. This prevents all problems connected to difference in network settings.
In SU mode you can mount all FS and to check the conformity between IP addresses and hostnames in /etc/hosts and /etc/rc.config.d/netconf.
I'd recommend you to cancel temporarily all NIS settings.
Here you can change TZ in /etc/TIMESONE as well. You can go on with init 1, init 2 and so on.
When the computers will start up, NIS might be switched on.

Good luck
Entities are not to be multiplied beyond necessity - RTFM
A. Clay Stephenson
Acclaimed Contributor

Re: Bringing up machine in new location and Timezone.

Once you get the hostnames resolved, DNS should take care of the NTP issues. Depending upon your network quality, you might choose another set of timesources other than the ones defined currently in /etc/ntp.conf but I suspect all will be well.
If it ain't broke, I can fix that.
Dani Seely
Valued Contributor

Re: Bringing up machine in new location and Timezone.

Hey Joe,
Maybe I'm reading too much into your question, but are you also changing the IP and Hostname ... you said "we have to bring back the machine on st.louis site." If the timezone is your only worry, your ntp configuration should automatically resolve this issue as long as you are looking at the correct time server(s). Patrick and Jeff have the best workable solution for timezone changes, however, if you need to change the IP and Hostname too, then you should run "/sbin/set_parms initial" which will walk you the initial configuration of your system for networking.
Together We Stand!