Forums

Home / Forums

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

missing nodes in /etc/hosts

Hi,

we have installed a PetaSAN 2.0.0 cluster with 3 management nodes, two memory nodes and two iSCSI nodes. After installing the iSCSI nodes, the diagrams did not work anymore. A brief troubleshooting has shown that in the /etc/ hosts files of each nodes the entry for localhost is missing and of the five nodes only three nodes are entered. Since the hosts file is automatically generated from consul, we do not know how to handle the problem.

Thanks for your great work and your help
Andreas

Can you tell me which 2 nodes were missing from the /etc/hosts. we are trying to find why this could happen and hopefully handle such cases..did the 3rd node have any problems while deploying and was re-deployed , did it have any connection issues ?

To correct /etc/hosts

#stop consul file sync to this node
systemctl stop petasan-file-sync
#perform your changes to /etc/hosts
#sync changes to other nodes
/opt/petasan/scripts/util/sync_file.py /etc/hosts
#restart sync service
systemctl start petasan-file-sync

Thanks for your help. It solves my problem. All hosts files are correct now.

We deploy the nodes in the following order.

3 management nodes
2 storage nodes

everything o.k.

2 iscsi nodes

the problem occurs.

All nodes are virtual machines. We had some re-deployments of the first storage node.

I try to simulate the problem and will come back.

Hi, I was not able to reproduce the problem. I set up a new cluster in the same order and everything was o.k..

Thanks for your support
Andreas