cancel
Showing results for 
Search instead for 
Did you mean: 

SPA : changing IP address

Stephane
Level 2
Hi there,

I have change manually the IP address of one of my SPA ...
And of course, i didn't use the changeIP.sh script because i didn't know until now ...

Now i have some communication problems between my 2 SPA

How can i change the IP address of my SPA now ?

If i use the changeIP.sh, i have an error because the IP adresses don't match :

# /opt/pdconfigure/scripts/support/changeIP.sh -f 175.144.221.10 -t 172.22.120.10
"The fromip doesn't match a server agent ip address in the SPA database"

Do i have to reconfigure the IP address using YaST and then use the script ?

Old IP = 175.144.221.10 (used for installation)
New IP = 172.22.120.10 (configured manually using YaST)
Configured IP = 172.22.120.10 (show by IFCONFIG)
pdagent detected IP = 175.144.221.10 (show by pdmanage)

# /opt/pdctrl/bin/pdmanage --sessions
Agent ID     Connected from  Type         Bytes sent.  Bytes received.
10000000     175.144.221.10 pdagent      261279       24477

Thanks for the help

4 REPLIES 4

Tom_Burrell
Level 5
Could you change it back manually (reverse what you've done) and then run the script?

Seems like the easiest way if you can swing it.

Stephane
Level 2
I did it :

Change the IP configuration using YaST to orignial (install) config
Test replication between my 2 SPAs = OK

read the manual Administrator's Guide p322-323 :

# ip a a 172.22.120.10/24 dev eth0
(ok, no error)
# /opt/pdconfigure/scripts/support/changeIP.sh -f 175.144.221.10 -t 172.22.120.10 --allowspa

The fromip doesn't match a server agent ip address in the SPA database.


Tom_Burrell
Level 5
Stephane-
If the IP you are changing is a replication destination, then I think you need a different switch.

On P 325 of the admin guide there is a reference to remote SPA IP changes- where they have you use "--remote" as the last switch instead of "--allowspa".  Check that out and see if it looks like the answer.

Stephane
Level 2
Hi,

My problem was purely physical ... the ethernet cable was not a good one, and when i change it, my SAP was OK for replication and PING ...