Operating System - HP-UX
1825766 Members
2098 Online
109687 Solutions
New Discussion

MC/serviceguard is relevant with system time?

 
xxl_1
Frequent Advisor

MC/serviceguard is relevant with system time?

On two hp9000 with hp-ux 11.11 version,MC/serviceguard (A11.15) is relevant with system time? if can MC/serviceguard run in different time?
9 REPLIES 9
VIKAS AGRAWAL
Frequent Advisor

Re: MC/serviceguard is relevant with system time?

for mc service gaurd , u need not to configure ntp, it can work with a diff between time of both the servers,
But to maintain the same time betbeen all pakages both the systems should have the identical time.

vikas


xxl_1
Frequent Advisor

Re: MC/serviceguard is relevant with system time?

hi,vikas agrawal :
as you said, My application package can also run in different time with MC service guard,is it?
Jayasuntar
Valued Contributor

Re: MC/serviceguard is relevant with system time?

Hi xxl,

U r right.

Please make sure that u r configured ntp for MC SG. O/w there will be aproblem while diagnosing the log files. The log files will be updated in diff time on each node, so u will get confused which is logged first.

Please make sure that all the system in the cluster are in timesync or configured for ntp.

All the best
Jay
Steven E. Protter
Exalted Contributor

Re: MC/serviceguard is relevant with system time?

The packages, especially oracle might not tolerate differences in system time.

Oracle tracks for example system time in its own way and if an oracle package fails from node1 to node2 and node2's time is an hour behind nod1, the database may become confused and crash.

Always a good idea to have the time on to SG nodes or any two HP-UX systems synchronized. Don't have to be the same timezone, as the OS has one time and Timezone merely effects display of time.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bharat Katkar
Honored Contributor

Re: MC/serviceguard is relevant with system time?

Hi,
Actually speaking packages can run with different time on different nodes but if they are hosting applications which are time sesitive then there would be problem.
As already suggested Oracle database may get corrupted.
Adding to it, it may also affect the backup application if it is configured as an package and you are performing incremental backups.
File time stamp in that case is very important.
It is always good to have ntp configured for the same and if not atleast try to synchronise the date/time manually on all the nodes.

Hope that helps.
Regards,


You need to know a lot to actually know how little you know
G. Vrijhoeven
Honored Contributor

Re: MC/serviceguard is relevant with system time?

Do you want one package to run in a different timezone as the server? I do not think that is possible, but you can run processes in a different timezone using the TZ env. variable:

Customizing System-Wide and User Login Environments

Defaults for system-wide variables, such as time zone setting, terminal type, search path, and mail and news notification, can be set in /etc/profile for Korn and POSIX shell users and in /etc/csh.login for C shell users.

User login scripts can be used to override the system defaults. When SAM adds a user, default user login scripts are copied to the user's home directory. For Korn and POSIX shell users, /etc/skel/.profile is copied to $HOME as .profile. For C shell users, /etc/skel/.login and /etc/skel/.cshrc are copied to $HOME as .login and .cshrc. Refer to Shells: User's Guide and Technical Addendum to the Shells: User's Guide for information on customizing user login scripts.

HP VUE users use different login scripts; refer to HP Visual User Environment 3.0 User's Guide for information.

More info on TIMEZONES:
http://docs.hp.com/en/36922-90036/apd.html

HTH,

Gideon
xxl_1
Frequent Advisor

Re: MC/serviceguard is relevant with system time?

can I confige NTP after MC/serviceguard and package have completed and running for a few months?

where I can find Ntp document?
Devender Khatana
Honored Contributor

Re: MC/serviceguard is relevant with system time?

Hi,

Yes, NTP can be configured at any time within or outside the cluster. But for synchronization all the server should be synced from the same source.

Always a best option is to configure one server as NTP server and let others sync from it. You can also configure more than one server in primary/standby mode.

For configuring a NTP server

edit /etc/ec.config.d/netdaemons file and change

export XNTPD=1

Then in /etc/ntp.conf of the same server add this line in the end
server 127.127.1.1

For other clients however only change these lines like this in /etc/rc.config.d/netdaemons

export NTPDATE_SERVER="ww.xx.yy.zz"
export XNTPD=1

(Where ww.xx.yy.zz is the IP of NTP server)

And in /etc/ntp.conf add this line in the end

server ww.xx.yy.zz

After this you can start ntp daemon by
#/sbin/init.d/xntpd start

And check the status of synchronization by
#ntpq -p

HTH,
Devender
Impossible itself mentions "I m possible"
Devender Khatana
Honored Contributor

Re: MC/serviceguard is relevant with system time?

Hi,

Forget to mention that the relevant documentation is available here.

http://docs.hp.com/en/B2355-90774/ch04s02.html

HTH,
Devender
Impossible itself mentions "I m possible"