xntpd starts after reboot only when HACMP services are started ?


 
Thread Tools Search this Thread
Operating Systems AIX xntpd starts after reboot only when HACMP services are started ?
# 1  
Old 05-14-2010
xntpd starts after reboot only when HACMP services are started ?

Hello,

Running AIX 6.1, AIX machine is HACMP node.
Recently I set up ntp service. Started xntpd by hand - everythig is OK. Configured xntpd to start after reboot and rebooted the machine. After reboot checked xntpd:
Code:
# lssrc -a|grep ntp
xntpd            tcpip                         inoperative

I didn't find any reason why it didn't start. Anyway I started HACMP after some time - and xntpd started right away:
Code:
# lssrc -a|grep ntp
 xntpd            tcpip            458684       active

So after some checks it was obvious - xntpd starts automatically only after cluster services are started.

Why this is happening ?

thanks
Vilius
# 2  
Old 05-15-2010
Quote:
Originally Posted by vilius
[...]Running AIX 6.1, AIX machine is HACMP node.
Recently I set up ntp service. [...] xntpd starts automatically only after cluster services are started.[...]
Depending on the cluster setup there is no IP address active after node boot that could be used by xntpd. Service IP labels are active only after a Resource Group came online and so are the corresponding routes. Make xntpd use the nodeīs Persistent Address.
# 3  
Old 05-17-2010
Hi,

I tried to start xntpd when hacmp is down(only host address is active) but results are the same. By the way xntpd starts not after bringing up the resourse group(resource group brings service IP up), but only after hacmp services start(starting hacmp services doesn't activate resource groups automatically in this configuration).
What do you mean by this:
Quote:
Make xntpd use the nodeīs Persistent Address.
How do I make xntpd to use one IP or another ?

V
# 4  
Old 05-17-2010
what HACMP/PowerHA version do you use?
# 5  
Old 05-17-2010
I think it's HACMP 5.4

V
# 6  
Old 05-18-2010
You did not tell us what your cluster's topology looks like and you think the HA release is 5.4. So let me make some assumptions based on what it should look like when you use IPAT with aliasing which is the default for 5.4.

Your cluster has two physical adapters which are configured during boot with a non routed IP address each. E.g. after node boot your adapters are configured with sth. like 192.168.10.1 and 192.168.20.1 on one node and 192.168.10.2 and 192.168.20.2 on the other. These addresses are just used for cluster communication and the nodes are not reachable via TCP/IP from your production network. Only after a Resource Group is online you have a (Service Label) IP address active and the default route. At least this is the presuppostion HA makes. If you understand this you now know why xntpd becomes active after a RG came online only: HA 5.4 deferrs the start of all services that rely on a working production network.

To avoid the nodes (without an active RG) being not reachable via TCP/IP from production network IBM introduced the Persistent Address. Such an address is configured during node boot as an alias and while it is accessible right from the start it is not part of a resource group. Opposed to an aliased boot address such a Persistent IP may be in the same subnet as the Service IP Label. Because the default route is usually tied to this subnet the node is then always reachable just as any other non-clustered node. With a working TCP/IP environment you could start it from the /etc/rc.tcpip automatically with
Code:
start /usr/sbin/xntpd "$src_running"

and/or manually with
Code:
# startsrc -s xntpd

You may read the HA 5.4 Installation Guide and the HA 5.4 Admin Guide. Then follow up with the sg246769 redbook aka HACMP cookbook.

Last edited by shockneck; 05-18-2010 at 11:30 AM.. Reason: typo
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Inotifywait restart script prevents reboot when started

Hi, maybe someone could help me optimizing this little script. It works so far, but when running, reboot does not work. If kill inotifywait reboot from shell works. I think some optimization is required here. This script starts at the end of the boot process, from an external device and... (3 Replies)
Discussion started by: lowmaster
3 Replies

2. Solaris

Lot of services in non-global zones, in uninitialized after reboot

Hello, This is Solaris-10 server, running with 4 non-global zones. This server was hung today and I had to reboot it forcefully from console. Then root file-system was not clean and I had to run fsck from failsafe mode. After it came back in run-level-3, lot of services are showing in... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. Linux

Application services not starting with server reboot

Hi All, My application uses three different sub-services to make complete application up and running to normal. The entry of all the three services are present in /etc/init.d directory with proper softlink created to application home path where it actually exists. In one rare case one of the... (3 Replies)
Discussion started by: hk_kamozalwar
3 Replies

4. Shell Programming and Scripting

Need to write a shell script that starts one, then kills it, then starts another?

This is on a CentOS box, I have two scripts that need to run in order. I want to write a shell script that calls the first script, lets it run and then terminates it after a certain number of hours (that I specify of course), and then calls the second script (they can't run simultaneously) which... (3 Replies)
Discussion started by: btramer
3 Replies

5. AIX

Thoughts on HACMP: Automatic start of cluster services

Hi all, I remember way back in some old environment, having the HA cluster services not being started automatically at startup, ie. no entry in /etc/inittab. I remember reason was (taken a 2 node active/passive cluster), to avoid having a backup node being booted, so that it will not... (4 Replies)
Discussion started by: zaxxon
4 Replies

6. AIX

HACMP does not start db2 after failover (db2nodes not getting modified by hacmp)

hi, when I do a failover, hacmp always starts db2 but recently it fails to start db2..noticed the issue is db2nodes.cfg is not modified by hacmp and is still showing primary node..manually changed the node name to secondary after which db2 started immediately..unable to figure out why hacmp is... (4 Replies)
Discussion started by: gkr747
4 Replies

7. HP-UX

Services persistant across reboot

Hi All, I need to run a daemon which should start automatically during reboot. which all files i need to alter/modify ? /etc/inittab ? Thanks, Amit (1 Reply)
Discussion started by: amit4g
1 Replies

8. AIX

services persistant across reboot

Hi, I am nerw to AIX. how can i make certain services to be persistant across reboot,similar to "chkconfig" in linux. Thanks, amit (2 Replies)
Discussion started by: amit4g
2 Replies

9. IP Networking

Services not started - HELP!!!!

Yesterday, we had an outage and Solaris 8 Sunfirer Server. Now today we can telnet, ftp or rhost in the server. We are getting error message connection refused for each connection. Is there any other way to get into box to see what is going on with the services? Please advise ASAP (4 Replies)
Discussion started by: cassy
4 Replies

10. UNIX for Dummies Questions & Answers

Command xntpd

Hi: I,am trying syncronise clock, but i canīt do it In the server client put: /etc/ntp.conf -> server namehost -> resolver /etc/xntpres /etc/tcp -> uncoment lines when say Xntpd /etc/ xntpd In the server as server clock: /etc/ntp.conf -> peers hostname if... (1 Reply)
Discussion started by: AlvaroD
1 Replies
Login or Register to Ask a Question