IP addresses associated with private (Storage Pool) and public (Data Protection) network in the HyperScale nodes can be changed.
Before You Begin
-
The following procedure can be used to address network changes that demand IP address changes.
Note
The following procedure cannot be used to change IP address resulting from moving a Data Center.
-
Update the DNS to reflect the new IP address of the Storage Pool network and/or the Data Protection network.
-
Set the Disk libraries and MediaAgents associated with the nodes in the Maintenance mode. For more information on setting the Disk Libraries and MediaAgents in the Maintenance mode, see the following:
-
Verify and ensure that the gluster uses hostnames for resolution and does not use the IP addresses directly. Use the following command to verify gluster hostnames:
gluster peer status
The above command should list the hostnames associated with the nodes. (IP addresses should not be displayed.)
Procedure
Changing the IP Address of the Storage Pool (Private) Network
-
Stop the volumes using the following command:
gluster volume stop <volume_name>
-
Update the relevant network configuration file for the private network interface with the new IP address, bonded and non-bonded, as follows:
-
Navigate to the following folder:
/etc/sysconfig/network-scripts
-
Modify the following file:
ifcfg-<Interface name>n
-
-
Modify the attributes of the resolv.conf with
chattr -i /etc/resolv.conf
.Make necessary adjustments to the file with nano, vi, or any other editing tool.
Once the adjustments are made, reset the attributes on the file to read-only (using the
chattr +i /etc/resolv.conf
command) to prevent accidental modifications. -
Update /etc/hosts with the new IP address.
-
Restart the network service to reflect the new IP using the following command:
systemctl restart network
-
Restart the volume using the following command:
gluster volume start <volume name>
Changing the IP Address of the Data Protection (Public) Network
-
Update the relevant network configuration file for the public network interface with the new IP address - bonded and non-bonded as follows:
-
Navigate to the following folder:
/etc/sysconfig/network-scripts
-
Modify the following file:
ifcfg-<Interface name>n
-
-
Modify the attributes of the resolv.conf with
chattr -i /etc/resolv.conf
.Make necessary adjustments to the file with nano, vi, or any other editing tool.
Once the adjustments are made, reset the attributes on the file to read-only (using the
chattr +i /etc/resolv.conf
command) to prevent accidental modifications. -
Restart the network service using the following command:
systemctl restart network
What to Do Next
-
Remove the Disk libraries and MediaAgents from the Maintenance mode. For more information, see the following pages:
-
Check client connectivity or run the Check Readiness Report to verify that the HyperScale nodes are available. For more information, see the following pages: