<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Mapping new IP addresses</title>
    <link>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/</link>
    <description>Recent content in Mapping new IP addresses on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Changing node IP addresses with a mapping file</title>
      <link>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/changing-node-ip-addresses-with-mapping-file/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/changing-node-ip-addresses-with-mapping-file/</guid>
      <description>
        
        
        &lt;p&gt;Mapping new IP addresses includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Creating a mapping file that maps the old IP addresses to the new IP addresses.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Using the mapping file to update configuration files and the database catalog.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you use control messaging for communication between hosts, you might also need to update IPs with &lt;a href=&#34;#mapFileFormat2&#34;&gt;new controlAddress and controlBroadcast IP addresses&lt;/a&gt;.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
&lt;code&gt;re_ip&lt;/code&gt; does not change export addresses and any functionality that relies on them. Before running &lt;code&gt;re_ip&lt;/code&gt;, check whether you need to update the subnet, network interface, load balance groups, and load balancing rules to match the new IPs. Mismatches can lead to load balancing or import/export failures.
&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;create-a-mapping-file&#34;&gt;Create a mapping file&lt;/h2&gt;
&lt;p&gt;Create a mapping file as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Get the new IP addresses and save them in a text file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Get the old IP addresses with &lt;code&gt;list_allnodes:&lt;/code&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t list_allnodes
Node             | Host          | State | Version        | DB
-----------------+---------------+-------+----------------+-----------
v_vmart_node0001 | 192.0.2.254   | UP    | vertica-10.1.1 | VMart
v_vmart_node0002 | 192.0.2.255   | UP    | vertica-10.1.1 | VMart
v_vmart_node0003 | 192.0.2.256   | UP    | vertica-10.1.1 | VMart
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the contents of the &lt;code&gt;Host&lt;/code&gt; column into the text file where you saved the new IP addresses, in this format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;oldIPaddress&lt;/span&gt;&lt;span class=&#34;code-variable&#34;&gt; newIPaddress&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;192.0.2.254 198.51.100.255
192.0.2.255 198.51.100.256
192.0.2.256 198.51.100.257
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the text file to create a mapping file that you can use to perform one of these tasks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;#mapFileFormat1&#34;&gt;Update IP addresses&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;#mapFileFormat2&#34;&gt;Update IP addresses and change control messaging mode &lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;#mapFileFormat3&#34;&gt;Change database node control addresses&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a name=&#34;mapFileFormat1&#34;&gt;&lt;/a&gt;Update IP addresses&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a mapping file that uses this format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;oldIPaddress&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;newIPaddress&lt;/span&gt;[, &lt;span class=&#34;code-variable&#34;&gt;controlAddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlBroadcast&lt;/span&gt;]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;192.0.2.254 198.51.100.255, 198.51.100.255, 203.0.113.255
192.0.2.255 198.51.100.256, 198.51.100.256, 203.0.113.255
192.0.2.256 198.51.100.257, 198.51.100.257, 203.0.113.255
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;&lt;code&gt;controlAddress&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;controlBroadcast&lt;/code&gt;&lt;/em&gt; are optional. If omitted:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;controlAddress&lt;/code&gt;&lt;/em&gt; defaults to &lt;em&gt;&lt;code&gt;newIPaddress&lt;/code&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;controlBroadcast&lt;/code&gt;&lt;/em&gt; defaults to the host of &lt;em&gt;&lt;code&gt;newIPaddress&lt;/code&gt;&lt;/em&gt;’s broadcast IP address.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run &lt;code&gt;re_ip&lt;/code&gt; as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t re_ip -f &lt;span class=&#34;code-variable&#34;&gt;mapfile&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a name=&#34;mapFileFormat2&#34;&gt;&lt;/a&gt;Update IP addresses and change control messaging mode&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a mapping file that uses this format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;oldIPaddress newIPaddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlAddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlBroadcast&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;192.0.2.254 198.51.100.255, 203.0.113.255, 203.0.113.258
192.0.2.255 198.51.100.256, 203.0.113.256, 203.0.113.258
192.0.2.256 198.51.100.257, 203.0.113.257, 203.0.113.258
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run &lt;code&gt;re_ip&lt;/code&gt; and change the control messaging mode as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Change control messaging mode to &lt;a href=&#34;../../../../../en/setup/set-up-on-premises/install-using-command-line/install-with-installation-script/install-vertica-options/#pointToPoint&#34;&gt;point-to-point&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t re_ip -d &lt;span class=&#34;code-variable&#34;&gt;dbname&lt;/span&gt; -T
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change control messaging mode to &lt;a href=&#34;../../../../../en/setup/set-up-on-premises/install-using-command-line/install-with-installation-script/install-vertica-options/#broadcast&#34;&gt;broadcast&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t re_ip -d &lt;span class=&#34;code-variable&#34;&gt;dbname&lt;/span&gt; -U
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The embedded messages subsystem operates based on the &lt;em&gt;&lt;code&gt;controlAddress&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;controlBroadcast&lt;/code&gt;&lt;/em&gt; IPs when you use the -U option.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a name=&#34;mapFileFormat3&#34;&gt;&lt;/a&gt;Change database node control addresses&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a mapping file that uses this format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;nodeName&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;nodeIPaddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlAddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlBroadcast&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;v_vmart_node0001 192.0.2.254, 203.0.113.255, 203.0.113.258
v_vmart_node0002 192.0.2.255, 203.0.113.256, 203.0.113.258
v_vmart_node0003 192.0.2.256, 203.0.113.257, 203.0.113.258
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run &lt;code&gt;re_ip&lt;/code&gt; as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t re_ip -f &lt;span class=&#34;code-variable&#34;&gt;mapfile&lt;/span&gt; -O -d &lt;span class=&#34;code-variable&#34;&gt;dbname&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For details, see &lt;a href=&#34;#Mapping&#34;&gt;Mapping IP Addresses on the Database&lt;/a&gt; below.&lt;/p&gt;
&lt;h2 id=&#34;update-ip-addresses&#34;&gt;Update IP addresses&lt;/h2&gt;
&lt;p&gt;After creating a mapping file, you can update IP addresses with &lt;code&gt;re_ip&lt;/code&gt;. &lt;code&gt;re_ip&lt;/code&gt; automatically backs up &lt;code&gt;admintools.conf&lt;/code&gt; so you can recover the original settings if necessary.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop the database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run &lt;code&gt;re_ip&lt;/code&gt; to map old IP addresses to new IP addresses:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t re_ip -f &lt;span class=&#34;code-variable&#34;&gt;mapfile&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;re_ip&lt;/code&gt; issues warnings for the following mapping file errors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;IP addresses are incorrectly formatted.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Duplicate IP addresses, whether old or new.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If &lt;code&gt;re_ip&lt;/code&gt; finds no syntax errors, it performs the following tasks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Remaps the IP addresses as listed in the mapping file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the &lt;code&gt;-i&lt;/code&gt; option is omitted, asks to confirm updates to the database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Updates required local configuration files with the new IP addresses.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Distributes the updated configuration files to the hosts using new IP addresses.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Parsing mapfile...
New settings for Host 192.0.2.254 are:

address: 198.51.100.255

New settings for Host 192.0.2.255 are:

address: 198.51.100.256

New settings for Host 192.0.2.254 are:

address: 198.51.100.257

The following databases would be affected by this tool: Vmart

Checking DB status ...
Enter &amp;#34;yes&amp;#34; to write new settings or &amp;#34;no&amp;#34; to exit &amp;gt; yes
Backing up local admintools.conf ...
Writing new settings to local admintools.conf ...

Writing new settings to the catalogs of database Vmart ...
The change was applied to all nodes.
Success. Change committed on a quorum of nodes.

Initiating admintools.conf distribution ...
Success. Local admintools.conf sent to all hosts in the cluster.
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a name=&#34;Mapping&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;mapping-ip-addresses-on-the-database&#34;&gt;Mapping IP addresses on the database&lt;/h2&gt;
&lt;p&gt;You can map IP addresses for the database only. This task involves mapping the name of the nodes in the database to the new IP addresses. This is useful for error recovery because &lt;code&gt;admintools.conf&lt;/code&gt; does not get updated. Vertica updates only &lt;code&gt;spread.conf&lt;/code&gt; and the catalog with the changes.&lt;/p&gt;
&lt;p&gt;You can also map IP addresses on the database only to set &lt;em&gt;&lt;code&gt;controlAddress&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;controlBroadcast&lt;/code&gt;&lt;/em&gt; on a single database. This task allows nodes on the same host to have different data and &lt;em&gt;&lt;code&gt;controlAddress&lt;/code&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop the database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a mapping file in the following format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;nodeName&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;nodeIPaddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlAddress&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;controlBroadcast&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vertica_node001 192.0.2.254, 203.0.113.255, 203.0.113.258
vertica_node002 192.0.2.255, 203.0.113.256, 203.0.113.258
vertica_node003 192.0.2.256, 203.0.113.257, 203.0.113.258
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to map the new IP addresses:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t re_ip -f &lt;span class=&#34;code-variable&#34;&gt;mapfile&lt;/span&gt; -O -d &lt;span class=&#34;code-variable&#34;&gt;dbname&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: re_ip command-line options</title>
      <link>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/re-ip-command-line-options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/re-ip-command-line-options/</guid>
      <description>
        
        
        &lt;p&gt;&lt;code&gt;re_ip&lt;/code&gt; supports the following options:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Option&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;-h ‑‑help&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Displays online help.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;&lt;a name=&#34;-f_&#34;&gt;&lt;/a&gt;-f &lt;span class=&#34;code-variable&#34;&gt;mapfile&lt;/span&gt; ‑‑file=&lt;span class=&#34;code-variable&#34;&gt;mapfile&lt;/span&gt;&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Name of the mapping text file used to &lt;a href=&#34;../../../../../en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/&#34;&gt;map old addresses to the new ones&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;

&lt;code&gt;&lt;a name=&#34;-O&#34;&gt;&lt;/a&gt;-O --dba-only&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Used for error recovery, updates and replaces data on the database cluster catalog and control messaging system. If the mapping file fails, Vertica automatically recreates it when you re-run the command. For details, see &lt;a href=&#34;../../../../../en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/changing-node-ip-addresses-with-mapping-file/&#34;&gt;Changing node IP addresses with a mapping file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This option updates only one database at a time, so it requires the &lt;code&gt;-d&lt;/code&gt; option:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$ admintools -t re_ip -f &lt;/code&gt;&lt;em&gt;&lt;code&gt;mapfile&lt;/code&gt;&lt;/em&gt;&lt;code&gt;-O -d&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;-i ‑‑noprompts&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
System does not prompt to validate new settings before executing the &lt;code&gt;re_ip&lt;/code&gt; operation. Prompting is on by default.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;-T ‑‑point‑to‑point&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Sets control messaging to the &lt;a href=&#34;../../../../../en/setup/set-up-on-premises/install-using-command-line/install-with-installation-script/install-vertica-options/#pointToPoint&#34;&gt;point-to-point&lt;/a&gt; (unicast) protocol. This option updates only one database at a time, so it requires the &lt;code&gt;-d&lt;/code&gt; option. This option does not require a mapping text file.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;-U ‑‑broadcast&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Sets control messaging to &lt;a href=&#34;../../../../../en/setup/set-up-on-premises/install-using-command-line/install-with-installation-script/install-vertica-options/#broadcast&#34;&gt;broadcast&lt;/a&gt; protocol. This option updates only one database at a time, so you must use the &lt;code&gt;-d&lt;/code&gt; option. This option does not require a mapping text .&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;-d &lt;/code&gt;&lt;em&gt;&lt;code&gt;dbname &lt;/code&gt;&lt;/em&gt;&lt;code&gt;‑‑database=&lt;/code&gt;&lt;em&gt;&lt;code&gt;dbname&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;Database name, required with the following &lt;code&gt;re_ip&lt;/code&gt; options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;-O&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;-T&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;-U&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Restarting a node with new host IPs</title>
      <link>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/restarting-node-with-new-host-ips/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/restarting-node-with-new-host-ips/</guid>
      <description>
        
        
        &lt;p&gt;&lt;p&gt;Kubernetes only&lt;/p&gt;


&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

For information about remapping node IP addresses on a non-Kubernetes database, see &lt;a href=&#34;../../../../../en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/&#34;&gt;Mapping new IP addresses&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The node IP addresses of an Eon Mode database on Kubernetes must occasionally be updated—for example, a pod fails, or is added to the cluster or rescheduled. When this happens, you must update the Vertica catalog with the new IP addresses of affected nodes and restart the node.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

You cannot switch an existing database cluster from one address family to another. For example, you cannot change the IP addresses of the nodes in your database from IPv4 to IPv6.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Vertica&#39;s &lt;code&gt;restart_node&lt;/code&gt; tool addresses these requirements with its &lt;code&gt;--new-host-ips&lt;/code&gt; option, which lets you change the node IP addresses of an Eon Mode database running on Kubernetes, and restart the updated nodes. Unlike &lt;a href=&#34;../../../../../en/admin/managing-db/managing-nodes/mapping-new-ip-addresses/changing-node-ip-addresses-with-mapping-file/&#34;&gt;remapping node IP addresses&lt;/a&gt; on other (non-Kubernetes) databases, you can perform this task on individual nodes in a running database:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;admintools -t restart_node \
  {-d &lt;span class=&#34;code-variable&#34;&gt;db-name&lt;/span&gt; |--database=&lt;span class=&#34;code-variable&#34;&gt;db-name&lt;/span&gt;} [-p &lt;span class=&#34;code-variable&#34;&gt;password&lt;/span&gt; | --password=&lt;span class=&#34;code-variable&#34;&gt;password&lt;/span&gt;] \
  {{-s &lt;span class=&#34;code-variable&#34;&gt;nodes-list&lt;/span&gt; | --hosts=&lt;span class=&#34;code-variable&#34;&gt;nodes-list&lt;/span&gt;} --new-host-ips=&lt;span class=&#34;code-variable&#34;&gt;ip-address-list&lt;/span&gt;}
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;nodes-list&lt;/code&gt;&lt;/em&gt; is a comma-delimited list of nodes to restart. All nodes in the list must be down, otherwise admintools returns an error.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;ip-address-list&lt;/code&gt;&lt;/em&gt; is a comma-delimited list of new IP addresses or hostnames to assign to the specified nodes.&lt;/p&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Because a hostname resolves to an IP address, Vertica recommends that you use the IP address to eliminate unneeded complexity.

&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following requirements apply to &lt;em&gt;&lt;code&gt;nodes-list&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;ip-address-list&lt;/code&gt;&lt;/em&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The number of node hosts and IP addresses or hostnames must be the same.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The lists must not include any embedded spaces.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, you can restart node &lt;code&gt;v_k8s_node0003&lt;/code&gt; with a new IP address:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools -t list_allnodes
  Node           | Host       | State    | Version        | DB
 ----------------+------------+----------+----------------+-----
  v_k8s_node0001 | 172.28.1.4 | UP       | vertica-10.1.1 | K8s
  v_k8s_node0002 | 172.28.1.5 | UP       | vertica-10.1.1 | K8s
  v_k8s_node0003 | 172.28.1.6 | DOWN     | vertica-10.1.1 | K8s

$ admintools -t restart_node -s v_k8s_node0003 --new-host-ips 172.28.1.7 -d K8s
 Info: no password specified, using none
*** Updating IP addresses for nodes of database K8s ***
        Start update IP addresses for nodes
         Updating node IP addresses
         Generating new configuration information and reloading spread
*** Restarting nodes for database K8s ***
         Restarting host [172.28.1.7] with catalog [v_k8s_node0003_catalog]
         Issuing multi-node restart
         Starting nodes:
                 v_k8s_node0003 (172.28.1.7)
         Starting Vertica on all nodes. Please wait, databases with a large catalog may take a while to initialize.
         Node Status: v_k8s_node0003: (DOWN)
         Node Status: v_k8s_node0003: (DOWN)
         Node Status: v_k8s_node0003: (DOWN)
         Node Status: v_k8s_node0003: (DOWN)
         Node Status: v_k8s_node0003: (RECOVERING)
         Node Status: v_k8s_node0003: (UP)
$ admintools -t list_allnodes
  Node           | Host       | State | Version        | DB
 ----------------+------------+-------+----------------+-----
  v_k8s_node0001 | 172.28.1.4 | UP    | vertica-10.1.1 | K8s
  v_k8s_node0002 | 172.28.1.5 | UP    | vertica-10.1.1 | K8s
  v_k8s_node0003 | 172.28.1.7 | UP    | vertica-10.1.1 | K8s
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
