<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1258">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Texte brut Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
pre
{mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.TextebrutCar
{mso-style-name:"Texte brut Car";
mso-style-priority:99;
mso-style-link:"Texte brut";
font-family:"Calibri",sans-serif;}
span.PrformatHTMLCar
{mso-style-name:"Pr\00E9format\00E9 HTML Car";
mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML";
font-family:"Courier New";
mso-fareast-language:FR;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Bonjour,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Je me permets de vous recontacter au sujet du problème de PAF sur Debian avec postgresql 13.<br>
J'ai suivi le guide ci-joint pour la configuration du cluster pacemaker. <br>
La réplication fonctionne bien entre les bases de données Postgresql. Cependant la bascule de VIP et de slave/master sur la ressource pgsqld ne fonctionne pas lors d'un crash d'un des 2 nœuds.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Voici la configuration du cluster:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><i><span style="font-size:10.0pt;font-family:"Courier New"">Resources:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span style="font-size:10.0pt;font-family:"Courier New"">Clone: pgsqld-clone<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span style="font-size:10.0pt;font-family:"Courier New""> Meta Attrs: PGDATA=/var/lib/postgresql/13/main bindir=/usr/lib/postgresql/13/bin promotable=true start_opts="-c config_file=/var/lib/postgresql/13/main/postgresql.conf"<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span style="font-size:10.0pt;font-family:"Courier New"">
</span></i><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Resource: pgsqld (class=ocf provider=heartbeat type=pgsqlms)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Meta Attrs: master-max=1 notify=true<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Operations: demote interval=0s timeout=120s (pgsqld-demote-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> methods interval=0s timeout=5 (pgsqld-methods-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> monitor interval=15s role=Master timeout=10s (pgsqld-monitor-interval-15s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> monitor interval=16s role=Slave timeout=10s (pgsqld-monitor-interval-16s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> notify interval=0s timeout=60s (pgsqld-notify-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> promote interval=0s timeout=30s (pgsqld-promote-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> reload interval=0s timeout=20 (pgsqld-reload-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> start interval=0s timeout=60s (pgsqld-start-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> stop interval=0s timeout=60s (pgsqld-stop-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Resource: VIP (class=ocf provider=heartbeat type=IPaddr2)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Attributes: cidr_netmask=24 ip=10.1.2.3<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Operations: monitor interval=10s (VIP-monitor-interval-10s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> start interval=0s timeout=20s (VIP-start-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> stop interval=0s timeout=20s (VIP-stop-interval-0s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Stonith Devices:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Resource: fence_node1 (class=stonith type=fence_vmware_rest)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Attributes: ipaddr=10.1.4.3 login=user password=pwd pcmk_host_check=static-list pcmk_host_list=node1 pcmk_reboot_action=reboot ssl=1 ssl_insecure=1<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Operations: monitor interval=60s (fence_node1-monitor-interval-60s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Resource: fence_node2 (class=stonith type=fence_vmware_rest)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Attributes: ipaddr=10.1.4.3 login=user password=pwd pcmk_host_check=static-list pcmk_host_list=node2 pcmk_reboot_action=reboot ssl=1 ssl_insecure=1<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Operations: monitor interval=60s (fence_node2-monitor-interval-60s)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Fencing Levels:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Location Constraints:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Resource: fence_node1<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Disabled on:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Node: node1 (score:-INFINITY) (id:location-fence_node1-node1--INFINITY)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Resource: fence_node2<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Disabled on:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Node: node2 (score:-INFINITY) (id:location-fence_node2-node2--INFINITY)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Ordering Constraints:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> promote pgsqld-clone then start VIP (kind:Mandatory) (non-symmetrical) (id:order-pgsqld-clone-VIP-Mandatory)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> demote pgsqld-clone then stop VIP (kind:Mandatory) (non-symmetrical) (id:order-pgsqld-clone-VIP-Mandatory-1)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Colocation Constraints:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> VIP with pgsqld-clone (score:INFINITY) (rsc-role:Started) (with-rsc-role:Master) (id:colocation-VIP-pgsqld-clone-INFINITY)<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Ticket Constraints:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Alerts:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">No alerts defined<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Resources Defaults:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> Meta Attrs: rsc_defaults-meta_attributes<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> migration-threhold=3<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Operations Defaults:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> No defaults set<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Cluster Properties:<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">cluster-infrastructure: corosync<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">cluster-name: cluster_pgsql<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">dc-version: 2.0.5-ba59be7122<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">have-watchdog: false<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">last-lrm-refresh: 1645462501<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">no-quorum-policy: ignore<o:p></o:p></span></i></p>
<p class="MsoPlainText"><i><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""></span></i><i><span style="font-size:10.0pt;font-family:"Courier New"">stonith-enabled: true<o:p></o:p></span></i></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Lorsque je crée un problème sur le noeud1, le 2<sup>e</sup> nœud n’arrive pas à récupérer la VIP et le statut master sur la ressource pgsqld, l’erreur est la suivante :<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FR"> * pgsqld_promote_0 on node2 'error' (1): call=24, status='complete', exitreason='Can not get current node LSN location', last-rc-change='2022-03-07
13:17:52 +01:00', queued=0ms, exec=183ms<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText">Néanmoins, à la main, j’arrive à promouvoir le noeud en master avec la commande pg_ctl promote, mais le but est bien que ce soit pacemaker qui le fasse.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Auriez-vous une piste à mon problème ?<br>
<br>
Merci<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><span style="mso-fareast-language:FR">-----Message d'origine-----<br>
De : Jehan-Guillaume de Rorthais <jgdr@dalibo.com> <br>
Envoyé : lundi 21 février 2022 17:01<br>
À : CHAMPAGNE Julie <julie.champagne@pm.gouv.fr><br>
Cc : Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org><br>
Objet : Re: [ClusterLabs] PAF with postgresql 13?</span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On Mon, 21 Feb 2022 09:04:27 +0000<o:p></o:p></p>
<p class="MsoPlainText">CHAMPAGNE Julie <<a href="mailto:julie.champagne@pm.gouv.fr"><span style="color:windowtext;text-decoration:none">julie.champagne@pm.gouv.fr</span></a>> wrote:<o:p></o:p></p>
<p class="MsoPlainText">...<o:p></o:p></p>
<p class="MsoPlainText">> The last release is 2 years old, is it still in development?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">There's no activity because there's not much to do on it. PAF is mainly in maintenance (bug fix) mode.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I have few ideas here and there. It might land soon or later, but nothing really fancy. It just works.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">The current effort is to reborn the old workshop that was written few years ago to translate it to english.<o:p></o:p></p>
</div>
</body>
</html>