Ao executar pcs cluster start –all ocorre o seguinte erro no debian :
root@debian11:~# pcs cluster start --all Warning: Unable to read the known-hosts file: No such file or directory: '/var/lib/pcsd/known-hosts' node1: Unable to connect to node1, check if pcsd is running there or try setting higher timeout with --request-timeout option (Could not resolve host: node1) Error: unable to start all nodes node1: Unable to connect to node1, check if pcsd is running there or try setting higher timeout with --request-timeout option (Could not resolve host: node1)
Solução para o erro “pcs cluster start –all”
Esse erro pode ter algumas causas,
#1 você pode estar executando o comando sem sudo, isto é, sem as devidas permissões
sudo pcs cluster start --all
#2 você esqueceu de executar um dos comandos anteriores, como pcs cluster setup server01 server02. Nesse caso, destrua o cluster e refaça os passos
pcs cluster destroy
pcs cluster setup server01 server02
pcs cluster start --all
Dica:
Veja se configurou corretamente o arquivo /etc/hosts. Supondo que o server01 tem IP 10.10.5.2 e o server02 10.10.5.3, deixe o arquivo hosts assim:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.10.5.2 server01 10.10.5.3 server02