Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Etc host keep on updating

I have a petasan cluster of 6 nodes

After adding my 6th node, /etc/hosts file keep on updating with only 6th node ip address entry rest nodes ip address is missing.

 

# on any node stop auto sync service
systemctl stop petasan-file-sync
# manual fix hosts file
nano /etc/hosts
# sync the hosts file to all nodes:
/opt/petasan/scripts/util/sync_file.py /etc/hosts
# restart the sync service on current node
systemctl start petasan-file-sync