<div dir="ltr"><div><div><div><div><div><div>One thing to note is that lnetctl still doesn't cover all the configuration that can be done via module params. We're trying to get it there. <br></div><br></div>There was actually a ticket that was recently opened: <br>



















<p class="gmail-MsoPlainText" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><a href="https://jira.hpdd.intel.com/browse/LU-10930" style="color:rgb(5,99,193);text-decoration:underline">https://jira.hpdd.intel.com/browse/LU-10930</a><span></span></p>





<br></div>Please look at my comment there. Currently if configuring the system via lnetctl it will ignore the module parameters it handles. This was done to avoid conflicts with existing module parameter and to give precedence to configurations done via lnetctl.<br><br></div>Having a feature like what you're describing would be a good extension to lnetctl and allow it to handle conflicts. Would be good if you open an LU ticket to track this change.<br><br></div>thanks<br></div>amir<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 April 2018 at 13:52, Di Natale, Giuseppe <span dir="ltr"><<a href="mailto:dinatale2@llnl.gov" target="_blank">dinatale2@llnl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-8131826233842209372divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<div id="m_-8131826233842209372divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p style="margin-top:0;margin-bottom:0">In theory, lnetctl itself is the exporter. Once modprobe.conf settings are loaded, lnetctl export will get you most of the way there (default values for tunables and such are exported as well). If you're already using
 lnetctl, it can export the current configuration (again, including tunables, etc).</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">As for migrating from lnetctl back to modprobe.conf, I wasn't planning on tackling that.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
What I am trying to implement is a method of "reconciling" the current configuration with a newly imported one. So to start, let us assume lnet has some configuration x. Let's say you make changes to the YAML file (add a few new routes, remove a network, maybe
 remove a route) producing configuration y. I want to implement a feature in lnetctl that will take the currently loaded configuration (in this case, configuration x) and turn it into configuration y without taking down connections unless it's necessary.<br>
<br>
Giuseppe<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-8131826233842209372divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Ben Evans <<a href="mailto:bevans@cray.com" target="_blank">bevans@cray.com</a>><br>
<b>Sent:</b> Friday, April 13, 2018 7:01:15 AM<br>
<b>To:</b> Di Natale, Giuseppe; <a href="mailto:lustre-devel@lists.lustre.org" target="_blank">lustre-devel@lists.lustre.org</a><br>
<b>Subject:</b> Re: [lustre-devel] LNET Configuration Update/Reconciliation</font>
<div> </div>
</div><div><div class="h5">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>In LU-4939, I'm working on exporting and importing the parameters set via lctl conf_param and set_param -P.  The output is in yaml, and I've got an importer working in a separate patch that has yet to be accepted upstream.</div>
<div><br>
</div>
<div>Would you consider having an exporter for the lnetctl and modprobe.conf settings into yaml so that you could migrate between the two methods of setting configuration?</div>
<div><br>
</div>
<span id="m_-8131826233842209372OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-bottom:medium none;border-left:medium none;padding-bottom:0in;padding-left:0in;padding-right:0in;border-top:#b5c4df 1pt solid;border-right:medium none;padding-top:3pt">
<span style="font-weight:bold">From: </span>lustre-devel <<a href="mailto:lustre-devel-bounces@lists.lustre.org" id="m_-8131826233842209372LPlnk929267" target="_blank">lustre-devel-bounces@lists.<wbr>lustre.org</a>> on behalf of "Di Natale, Giuseppe" <<a href="mailto:dinatale2@llnl.gov" id="m_-8131826233842209372LPlnk210725" target="_blank">dinatale2@llnl.gov</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, April 12, 2018 at 3:53 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:lustre-devel@lists.lustre.org" id="m_-8131826233842209372LPlnk83799" target="_blank">lustre-devel@lists.lustre.org</a><wbr>" <<a href="mailto:lustre-devel@lists.lustre.org" id="m_-8131826233842209372LPlnk832798" target="_blank">lustre-devel@lists.lustre.org</a><wbr>><br>
<span style="font-weight:bold">Subject: </span>[lustre-devel] LNET Configuration Update/Reconciliation<br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">
<div id="m_-8131826233842209372x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Greetings Developers,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">We are currently using modprobe.conf to configure routes, but we are hoping to reach a point where we can push out new LNET configurations to nodes and have lnetctl apply configuration changes on the fly.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">It would be nice to have the ability to update or "reconcile" the difference between the loaded configuration and an updated configuration being imported. I was exploring how to implement such functionality in lnetctl.
 Would others find such functionality useful?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">My current thought is that I'd implement this as a new lnetctl subcommand (i.e. "update"). Does that seem reasonable or would you suggest another interface?<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks,</p>
<p style="margin-top:0;margin-bottom:0">Giuseppe<br>
</p>
</div>
</div>
</div>
</span></div>
</div></div></div>
</div>

<br>______________________________<wbr>_________________<br>
lustre-devel mailing list<br>
<a href="mailto:lustre-devel@lists.lustre.org">lustre-devel@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/<wbr>listinfo.cgi/lustre-devel-<wbr>lustre.org</a><br>
<br></blockquote></div><br></div>