<div dir="ltr">Hi, <br><br>This saved my life-- <a href="https://roidelapluie.be/blog/2015/09/16/pcs-resource-debug/">https://roidelapluie.be/blog/2015/09/16/pcs-resource-debug/</a> . Well, OK, a bit of an exaggeration. Nonetheless, after a lot of frustration, it helped. <br><br>Kind regards,<br><br>Sean</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 22, 2018 at 9:24 PM Klaus Wenninger &lt;<a href="mailto:kwenning@redhat.com">kwenning@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/22/2018 01:06 PM, Tomas Jelinek wrote:<br>
&gt; Dne 22.1.2018 v 11:01 Klaus Wenninger napsal(a):<br>
&gt;&gt; On 01/22/2018 10:46 AM, Tomas Jelinek wrote:<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; the --debug option is supposed to be used as an additional option for<br>
&gt;&gt;&gt; a pcs command, for example:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; pcs status --debug<br>
&gt;&gt;&gt; pcs --debug resource create dummy ocf:pacemaker:Dummy<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It writes what a command is doing in the background - running other<br>
&gt;&gt;&gt; commands, communicating over network.<br>
&gt;&gt;<br>
&gt;&gt; Although the misunderstood usage (like getting<br>
&gt;&gt; everything pcs is doing on a node logged to<br>
&gt;&gt; a terminal) might be an interesting feature ;-)<br>
&gt;&gt;<br>
&gt;&gt; Or is it possible to enable this kind of logging<br>
&gt;&gt; already? Maybe via pcsd?<br>
&gt;<br>
&gt; No. Currently it is possible to:<br>
&gt; - increase pcsd.log verbosity by setting PCSD_DEBUG=true in<br>
&gt; /etc/sysconfig/pcsd or /etc/default/pcsd or whatever your distro has<br>
&gt; - use the --debug option in pcs commands<br>
&gt; and that&#39;s it.<br>
<br>
Thanks for the info Tomas.<br>
When I had read the initial question on the list it just occurred to<br>
me that might be very handy in all cases where pcs is somehow<br>
driven by scripts/daemons.<br>
Without having had a look into the code I would e.g. guess<br>
digimere&#39;s &#39;Intelligent Availability&#39; to fall into this category.<br>
<br>
Regards,<br>
Klaus<br>
<br>
&gt;<br>
&gt; One item on our todo list is to improve logging. It is not going to<br>
&gt; happen anytime soon, though, as it requires significant changes in<br>
&gt; pcs/pcsd architecture.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Tomas<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Klaus<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt; Tomas<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Dne 22.1.2018 v 09:51 范国腾 napsal(a):<br>
&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt; The help of &quot;pcs --debug&quot; says &quot; Print all network traffic and<br>
&gt;&gt;&gt;&gt; external commands run.&quot; But when I run the &quot;pcs --debug&quot;, it still<br>
&gt;&gt;&gt;&gt; print the help information. How to trigger it to print the network<br>
&gt;&gt;&gt;&gt; traffic?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;&gt; Steven<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    [root@db3 ~]# pcs --debug<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Usage: pcs [-f file] [-h] [commands]...<br>
&gt;&gt;&gt;&gt; Control and configure pacemaker and corosync.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Options:<br>
&gt;&gt;&gt;&gt;       -h, --help         Display usage and exit.<br>
&gt;&gt;&gt;&gt;       -f file            Perform actions on file instead of active<br>
&gt;&gt;&gt;&gt; CIB.<br>
&gt;&gt;&gt;&gt;       --debug            Print all network traffic and external<br>
&gt;&gt;&gt;&gt; commands run.<br>
&gt;&gt;&gt;&gt;       --version          Print pcs version information.<br>
&gt;&gt;&gt;&gt;       --request-timeout  Timeout for each outgoing request to another<br>
&gt;&gt;&gt;&gt; node in<br>
&gt;&gt;&gt;&gt;                          seconds. Default is 60s.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Commands:<br>
&gt;&gt;&gt;&gt;       cluster     Configure cluster options and nodes.<br>
&gt;&gt;&gt;&gt;       resource    Manage cluster resources.<br>
&gt;&gt;&gt;&gt;       stonith     Manage fence devices.<br>
&gt;&gt;&gt;&gt;       constraint  Manage resource constraints.<br>
&gt;&gt;&gt;&gt;       property    Manage pacemaker properties.<br>
&gt;&gt;&gt;&gt;       acl         Manage pacemaker access control lists.<br>
&gt;&gt;&gt;&gt;       qdevice     Manage quorum device provider on the local host.<br>
&gt;&gt;&gt;&gt;       quorum      Manage cluster quorum settings.<br>
&gt;&gt;&gt;&gt;       booth       Manage booth (cluster ticket manager).<br>
&gt;&gt;&gt;&gt;       status      View cluster status.<br>
&gt;&gt;&gt;&gt;       config      View and manage cluster configuration.<br>
&gt;&gt;&gt;&gt;       pcsd        Manage pcs daemon.<br>
&gt;&gt;&gt;&gt;       node        Manage cluster nodes.<br>
&gt;&gt;&gt;&gt;       alert       Manage pacemaker alerts.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt;&gt;&gt; Getting started:<br>
&gt;&gt;&gt;&gt; <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt;&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;&gt;&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt;&gt; Getting started:<br>
&gt;&gt;&gt; <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div>