Page 1 of 2

change ip address

Posted: Mon Aug 08, 2016 6:59 pm
by sreediff
Can i change IP address of any existing installation>what are the steps ,which files i need to change

Re: change ip address

Posted: Fri Aug 12, 2016 8:44 pm
by JimKnicely
Hi,

Do you have support from Vertica? If so, there is a way to do this, but let them assist you! Even a small mistake can often lead to a unstartable database!

This video (not provided by HPE) available on youtube will give you the gist:

https://www.youtube.com/watch?v=dHRFY6Ed4FY

Again, contact support!

Re: change ip address

Posted: Wed Jun 07, 2017 8:33 am
by vcarusi
hi,
but how to change the ip address for an one node vertica cluster.
there is an 'constraint' : the node must be done.
how to execute 'alter node' on an inactive (down) node ?

Re: change ip address

Posted: Wed Jun 07, 2017 3:22 pm
by vcarusi
I wrote a script that is executed before starting the vertica server. It changes the old ip address with the new one.

old_ip_address = aaa.bbb.ccc.ddd
new_ip_address

old_broadcast_ip_address = old_ip_address.255 (aaa.bbb.ccc.255)
new_broadcast_ip_address = new_ip_address.255

N_old_ip_address = Naaabbbcccddd
N_new_ip_address = Naaabbbcccddd

sed -i 's/old_ip_address/new_ip_address/g' /D/vertica/catalog/db_name/v_db_name_node0001_catalog/Catalog/config.cat
sed -i 's/old_broadcast_ip_address/new_broadcast_ip_address/g' /D/vertica/catalog/db_name/v_db_name_node0001_catalog/Catalog/config.cat

sed -i 's/old_ip_address/new_ip_address/g' /opt/vertica/config/admintools.conf

sed -i 's/old_ip_address/new_ip_address/g' /D/vertica/catalog/db_name/v_officedw_node0001_catalog/spread.conf
sed -i 's/N_old_ip_address/N_new_ip_address/g' /D/vertica/catalog/db_name/v_officedw_node0001_catalog/spread.conf

Re: change ip address

Posted: Tue Jun 20, 2017 9:04 pm
by sreediff
will try on a local vm copy first.

Re: change ip address

Posted: Tue Jul 25, 2017 10:15 pm
by sreediff
i used catalog editor to change ip and now DB works. Now MC doesnt work. Not sure where to change ip for MC.

Re: change ip address

Posted: Thu Jul 27, 2017 10:13 pm
by JimKnicely
I think you will have to re-import the DB using the new IPs