{"id":16642,"date":"2025-05-09T16:42:47","date_gmt":"2025-05-09T19:42:47","guid":{"rendered":"https:\/\/categoriaoutros.com.br\/?p=16642"},"modified":"2025-05-09T16:42:50","modified_gmt":"2025-05-09T19:42:50","slug":"pacemaker-com-error-hosts-debian1-debian2-are-not-known-to-pcs","status":"publish","type":"post","link":"https:\/\/categoriaoutros.com.br\/?p=16642","title":{"rendered":"Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs"},"content":{"rendered":"\n<p>Ao executar\u00a0<strong>pcs cluster setup haCluster debian1 debian2<\/strong>\u00a0ocorre o seguinte erro no debian :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><strong>root@debian1:~# pcs cluster setup haCluster debian1 debian2<\/strong><br>Warning: Unable to read the known-hosts file: No such file or directory: '\/var\/lib\/pcsd\/known-hosts'<br>Error: Hosts 'debian1', 'debian2' are not known to pcs, try to authenticate the hosts using 'pcs host auth debian1 debian2' command<br>Error: None of hosts is known to pcs.<br>Error: At least 1 and at most 8 addresses must be specified for a node, 0 addresses specified for node 'debian1'<br>Error: At least 1 and at most 8 addresses must be specified for a node, 0 addresses specified for node 'debian2'<br>Error: Errors have occurred, therefore pcs is unable to continue<\/mark><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Solu\u00e7\u00e3o para o erro \u201cError: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs\u201d<\/h2>\n\n\n\n<p>Esse erro pode ter algumas causas,<br><br>#1 voc\u00ea pode estar executando o comando sem sudo, isto \u00e9, sem as devidas permiss\u00f5es<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo pcs cluster setup haCluster debian1 debian2<\/pre>\n\n\n\n<p>#2 voc\u00ea esqueceu de executar um dos comandos anteriores, como&nbsp;<strong>pcs cluster setup server01 server02.&nbsp;<\/strong>Nesse caso, destrua o cluster e refa\u00e7a os passos<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pcs cluster destroy<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">pcs cluster setup server01 server02<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">pcs cluster start --all<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Dica:<\/h2>\n\n\n\n<p>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:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6\n10.10.5.2   server01\n10.10.5.3   server02<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ao executar\u00a0pcs cluster setup haCluster debian1 debian2\u00a0ocorre o seguinte erro no debian : root@debian1:~# pcs cluster setup haCluster debian1 debian2Warning: Unable to read the known-hosts file: No such file or directory: &#8216;\/var\/lib\/pcsd\/known-hosts&#8217;Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs, try to authenticate the hosts using &#8216;pcs host auth debian1 debian2&#8217; commandError: None of hosts&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/categoriaoutros.com.br\/?p=16642\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16642","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Pacemaker com Error: Hosts &#039;debian1&#039;, &#039;debian2&#039; are not known to pcs - Categoria Outros<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/categoriaoutros.com.br\/?p=16642\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pacemaker com Error: Hosts &#039;debian1&#039;, &#039;debian2&#039; are not known to pcs - Categoria Outros\" \/>\n<meta property=\"og:description\" content=\"Ao executar\u00a0pcs cluster setup haCluster debian1 debian2\u00a0ocorre o seguinte erro no debian : root@debian1:~# pcs cluster setup haCluster debian1 debian2Warning: Unable to read the known-hosts file: No such file or directory: &#039;\/var\/lib\/pcsd\/known-hosts&#039;Error: Hosts &#039;debian1&#039;, &#039;debian2&#039; are not known to pcs, try to authenticate the hosts using &#039;pcs host auth debian1 debian2&#039; commandError: None of hosts...Read More &ldquo;Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs&rdquo; &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/categoriaoutros.com.br\/?p=16642\" \/>\n<meta property=\"og:site_name\" content=\"Categoria Outros\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/categoriaoutros\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-09T19:42:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-09T19:42:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/pinguim-paginas-padrao.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1022\" \/>\n\t<meta property=\"og:image:height\" content=\"722\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Categoria: Outros\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CategoriaOutros\" \/>\n<meta name=\"twitter:site\" content=\"@CategoriaOutros\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Categoria: Outros\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=16642#article\",\"isPartOf\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=16642\"},\"author\":{\"name\":\"Categoria: Outros\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40\"},\"headline\":\"Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs\",\"datePublished\":\"2025-05-09T19:42:47+00:00\",\"dateModified\":\"2025-05-09T19:42:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=16642\"},\"wordCount\":112,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\"},\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/categoriaoutros.com.br\/?p=16642#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=16642\",\"url\":\"https:\/\/categoriaoutros.com.br\/?p=16642\",\"name\":\"Pacemaker com Error: Hosts 'debian1', 'debian2' are not known to pcs - Categoria Outros\",\"isPartOf\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#website\"},\"datePublished\":\"2025-05-09T19:42:47+00:00\",\"dateModified\":\"2025-05-09T19:42:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=16642#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/categoriaoutros.com.br\/?p=16642\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=16642#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/categoriaoutros.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#website\",\"url\":\"https:\/\/categoriaoutros.com.br\/\",\"name\":\"Categoria Outros\",\"description\":\"Assuntos Diversos\",\"publisher\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/categoriaoutros.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\",\"name\":\"Categoria Outros\",\"alternateName\":\"Categoria Outros\",\"url\":\"https:\/\/categoriaoutros.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg\",\"contentUrl\":\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg\",\"width\":400,\"height\":400,\"caption\":\"Categoria Outros\"},\"image\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/categoriaoutros\",\"https:\/\/twitter.com\/CategoriaOutros\",\"https:\/\/br.pinterest.com\/CategoriaOutros\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40\",\"name\":\"Categoria: Outros\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g\",\"caption\":\"Categoria: Outros\"},\"sameAs\":[\"http:\/\/categoriaoutros.com.br\"],\"url\":\"https:\/\/categoriaoutros.com.br\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pacemaker com Error: Hosts 'debian1', 'debian2' are not known to pcs - Categoria Outros","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/categoriaoutros.com.br\/?p=16642","og_locale":"pt_BR","og_type":"article","og_title":"Pacemaker com Error: Hosts 'debian1', 'debian2' are not known to pcs - Categoria Outros","og_description":"Ao executar\u00a0pcs cluster setup haCluster debian1 debian2\u00a0ocorre o seguinte erro no debian : root@debian1:~# pcs cluster setup haCluster debian1 debian2Warning: Unable to read the known-hosts file: No such file or directory: '\/var\/lib\/pcsd\/known-hosts'Error: Hosts 'debian1', 'debian2' are not known to pcs, try to authenticate the hosts using 'pcs host auth debian1 debian2' commandError: None of hosts...Read More &ldquo;Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs&rdquo; &raquo;","og_url":"https:\/\/categoriaoutros.com.br\/?p=16642","og_site_name":"Categoria Outros","article_publisher":"https:\/\/www.facebook.com\/categoriaoutros","article_published_time":"2025-05-09T19:42:47+00:00","article_modified_time":"2025-05-09T19:42:50+00:00","og_image":[{"width":1022,"height":722,"url":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/pinguim-paginas-padrao.webp","type":"image\/webp"}],"author":"Categoria: Outros","twitter_card":"summary_large_image","twitter_creator":"@CategoriaOutros","twitter_site":"@CategoriaOutros","twitter_misc":{"Escrito por":"Categoria: Outros","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/categoriaoutros.com.br\/?p=16642#article","isPartOf":{"@id":"https:\/\/categoriaoutros.com.br\/?p=16642"},"author":{"name":"Categoria: Outros","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40"},"headline":"Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs","datePublished":"2025-05-09T19:42:47+00:00","dateModified":"2025-05-09T19:42:50+00:00","mainEntityOfPage":{"@id":"https:\/\/categoriaoutros.com.br\/?p=16642"},"wordCount":112,"commentCount":0,"publisher":{"@id":"https:\/\/categoriaoutros.com.br\/#organization"},"articleSection":["Uncategorized"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/categoriaoutros.com.br\/?p=16642#respond"]}]},{"@type":"WebPage","@id":"https:\/\/categoriaoutros.com.br\/?p=16642","url":"https:\/\/categoriaoutros.com.br\/?p=16642","name":"Pacemaker com Error: Hosts 'debian1', 'debian2' are not known to pcs - Categoria Outros","isPartOf":{"@id":"https:\/\/categoriaoutros.com.br\/#website"},"datePublished":"2025-05-09T19:42:47+00:00","dateModified":"2025-05-09T19:42:50+00:00","breadcrumb":{"@id":"https:\/\/categoriaoutros.com.br\/?p=16642#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/categoriaoutros.com.br\/?p=16642"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/categoriaoutros.com.br\/?p=16642#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/categoriaoutros.com.br\/"},{"@type":"ListItem","position":2,"name":"Pacemaker com Error: Hosts &#8216;debian1&#8217;, &#8216;debian2&#8217; are not known to pcs"}]},{"@type":"WebSite","@id":"https:\/\/categoriaoutros.com.br\/#website","url":"https:\/\/categoriaoutros.com.br\/","name":"Categoria Outros","description":"Assuntos Diversos","publisher":{"@id":"https:\/\/categoriaoutros.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/categoriaoutros.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/categoriaoutros.com.br\/#organization","name":"Categoria Outros","alternateName":"Categoria Outros","url":"https:\/\/categoriaoutros.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg","contentUrl":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg","width":400,"height":400,"caption":"Categoria Outros"},"image":{"@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/categoriaoutros","https:\/\/twitter.com\/CategoriaOutros","https:\/\/br.pinterest.com\/CategoriaOutros\/"]},{"@type":"Person","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40","name":"Categoria: Outros","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g","caption":"Categoria: Outros"},"sameAs":["http:\/\/categoriaoutros.com.br"],"url":"https:\/\/categoriaoutros.com.br\/?author=1"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16642"}],"version-history":[{"count":1,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16642\/revisions"}],"predecessor-version":[{"id":16643,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16642\/revisions\/16643"}],"wp:attachment":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}