<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=us-ascii"><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;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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=RU link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi All,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>We have a project where Pacemaker is under the hood and all the high-level business-logic managed by external custom software, mostly by reading and writing cib XML with cibadmin binary.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I need to store some extra properties of the managed resources for these business-logic handlers. Pacemaker itself need no this data.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I found that if I add custom nvpair element in primitive/meta_attributes to cib xml and store it with <b>cibadmin –replace</b> it seems to be accepted and stored in CIB database without problem. And reading back well keeping this “custom meta-attribute”.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Example:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <primitive id="vlan-ens18_10-ens18.10" class="ocf" type="iface-vlan" provider="heartbeat"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <meta_attributes id="vlan-ens18_10-ens18.10-meta_attributes"><o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US> <nvpair id="vlan-ens18_10-ens18.10-meta_attributes-custom" name="custom" value="true"/><o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US> </meta_attributes><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <instance_attributes id="vlan-ens18_10-ens18.10-instance_attributes"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <nvpair id="vlan-ens18_10-ens18.10-instance_attributes-vlan_id" name="vlan_id" value="10"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <nvpair id="vlan-ens18_10-ens18.10-instance_attributes-vlan_interface" name="vlan_interface" value="ens18"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <nvpair id="vlan-ens18_10-ens18.10-instance_attributes-vlan_name" name="vlan_name" value="ens18.10"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </instance_attributes><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <operations><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <op name="monitor" interval="10s" timeout="20s" id="vlan-ens18_10-ens18.10-monitor-interval-10s"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <op name="start" interval="0s" timeout="30s" id="vlan-ens18_10-ens18.10-start-interval-0s"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <op name="stop" interval="0s" timeout="20s" id="vlan-ens18_10-ens18.10-stop-interval-0s"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </span></operations><o:p></o:p></p><p class=MsoNormal> </primitive><o:p></o:p></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But the question is: how valid this action is? For now, for future version? Is there a chance that some of Pacekeeper internals or utilities wipe it up or break on it?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I will be very grateful for any information on it, thank you in advance!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Sincerely,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Alex<o:p></o:p></span></p></div></body></html>