Operating System - HP-UX
1847063 Members
5808 Online
110261 Solutions
New Discussion

Permission denied to [IP address]

 
tommy_28
Frequent Advisor

Permission denied to [IP address]

Before install MCSG i use this command to create config template:

#cmquerycl -v -C /etc/cmcluster/cmclconf.ascii -n rp2470-B -n rp2470-A

but recieved:
Error: Permission denied to 192.168.1.85
Looking for other clusters ... Done
Error: Unable to establish communication to node rp2470-A
Failed to gather configuration information.

# more /.rhosts
rp2470-A root #cluster1
rp2470-B root #cluster2
rp2470-A oracle
rp2470-B oracle

#more /etc/hosts
192.168.1.86 rp2470-B
10.10.10.2 rp2470-B-h
127.0.0.1 localhost loopback
192.168.1.85 rp2470-A
10.10.10.1 rp2470-A

What can this happen?
8 REPLIES 8
Jerome Baron
Respected Contributor

Re: Permission denied to [IP address]

Hi,

Does the rlogin between the two nodes run ?

Regards,
Jerome
Massimo Bianchi
Honored Contributor

Re: Permission denied to [IP address]

Hi,
i think the problem can be the comments in the .rhosts file.

Try tearing them away.

Second: it's no a good thing (read unsopported) to have a hostname longer than 8 chars, and you have duplicate hostname fin the /etc/hosts:


192.168.1.86 rp2470-B
10.10.10.2 rp2470-B-h
127.0.0.1 localhost loopback
192.168.1.85 rp2470-A
10.10.10.1 rp2470-A

Change like the following:

192.168.1.86 rp2470-B
10.10.10.2 heartB
127.0.0.1 localhost loopback
192.168.1.85 rp2470-A
10.10.10.1 heartA



on both nodes.


I really suspect that the error comes from this second issue.


HTH,
Massimo




tommy_28
Frequent Advisor

Re: Permission denied to [IP address]

Now I've erased /.rhosts comments.
and change /etc/hosts hostname to more shorter, and different.

# more /.rhosts
rp2470-A root
rp2470-B root
rp2470-A oracle
rp2470-B oracle

#more /etc/hosts
192.168.1.86 rp2470-B
10.10.10.2 rp2470
127.0.0.1 localhost loopback
192.168.1.85 rp2470-A
10.10.10.1 rp2470
melvyn burnard
Honored Contributor

Re: Permission denied to [IP address]

first, check the results of running nsllokup against each hostname and ip address.
second, check things like rlogin work
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Enrico P.
Honored Contributor

Re: Permission denied to [IP address]

Hi,
is there a default gateway IP address in your /etc/rc.config.d/netconf?

try to put default_gateway in the /etc/hosts files:

default

Check for the hosts connectivity.

Enrico.
Massimo Bianchi
Honored Contributor

Re: Permission denied to [IP address]

hi Tommy,
is it working now?

Massimo
Uday_S_Ankolekar
Honored Contributor

Re: Permission denied to [IP address]

Also try creating a file called cmclnodelist and add the hostnames of nodes in the cluster Entries look similar to .rhosts file.

For ex:

nodename1 root
nodename2 root

Also look for inetd.sec in /var/adm/ for proper permissions were issued for opposite nodes.exec, shell,telnet, login should be allowed for the nodes in the cluster.

Goodluck
-USA..
Good Luck..
tommy_28
Frequent Advisor

Re: Permission denied to [IP address]

Thanks!
After I added the correct hostnames in cmclnodelist all works fine.