Operating System - Tru64 Unix
1829631 Members
1703 Online
109992 Solutions
New Discussion

Re: Port is assigned and unavailable for use by application.

 
SOLVED
Go to solution
Orrin
Valued Contributor

Port is assigned and unavailable for use by application.

Application failedover to 2nd node.
The port required to start the listener is locked by another process..

and the output of the netstat -an command looks like this

tcp 0 0 xxx.xxx.xxx.xxx:4111 yyy.yyy.yyy.yyy:5000 ESTABLISHED

The xxx is the IP for the CLuster alias and the yyy is the ip address for the 2nd node.

The application is trying to start a server that listen's on the port 4111 and comes back with thte response that the port is unavailable.

What we are looking for is a range of port that we are guaranteed will be free when the apllication tries to use them to start the server. This has occured the second time. The first time we found the process was an ftp process on killing the process , the port was released.

Have the temporary sdolution, we need a permanent solution in one of the two avenues.

1. Either a range of ports that the cluster aliases and the caad uses so that we can avoid them.

Or

2. A range that is reserved but can be used by the application without conflicts.

Thank you...

Orrin.
4 REPLIES 4
Ralf Puchner
Honored Contributor
Solution

Re: Port is assigned and unavailable for use by application.

Is the port configured within /etc/clua_services as "static"?
This is the only way to "reserve" the port for the application clusterwide.

There is no other way to "reserve" a port.
Have a look into the man - pages of clua_services explaining the keyword.
Help() { FirstReadManual(urgently); Go_to_it;; }
Volker Borowski
Honored Contributor

Re: Port is assigned and unavailable for use by application.

Orrin
Valued Contributor

Re: Port is assigned and unavailable for use by application.

Thank you both,

The static service in clua_services I have the oracle listeners as in single, in_nolocal and they seem to work fine...

But will try this option and check. The second option of changing the ipport_userreservered_min and ipport_reserved parameters I will check next.

The problem providing you both with feedback is that the problem is very infrequent, and I will have to arrange for a test box to replicate the problem and confirm that the problem does not return.

Thanks again.... I will assign points to both of you'll...

Cheers,

Orrin.
Ralf Puchner
Honored Contributor

Re: Port is assigned and unavailable for use by application.

attention: you must call cluamgr -f on both members after changing the clua_services file.
Help() { FirstReadManual(urgently); Go_to_it;; }