<div><br><font size=2 face="sans-serif">you can try :</font><br><font size=2 face="sans-serif">systemctl enable &nbsp;NetworkManager-wait-online<br>ln -s '/usr/lib/systemd/system/NetworkManager-wait-online.service' '/etc/systemd/system/multi-user.target.wants/NetworkManager-wait-online.service'</font><br><br><font size=2 face="sans-serif">in many cases .. it helps .. </font><br><br><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Jan-Frode Myklebust
&lt;janfrode@tanso.net&gt;</font><br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">gpfsug main discussion
list &lt;gpfsug-discuss@spectrumscale.org&gt;</font><br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">03/15/2018 06:18 PM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [gpfsug-discuss]
GPFS autoload - wait for IB ports to &nbsp; &nbsp; &nbsp; &nbsp;becomeactive</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr noshade><br><br><br><font size=3>I found some discussion on this at </font><a href="https://www.ibm.com/developerworks/community/forums/html/threadTopic?id=77777777-0000-0000-0000-000014471957&amp;ps=25"><font size=3 color=blue><u>https://www.ibm.com/developerworks/community/forums/html/threadTopic?id=77777777-0000-0000-0000-000014471957&amp;ps=25</u></font></a><font size=3>and there it's claimed that none of the callback events are early enough
to resolve this. That we need a pre-preStartup trigger. Any idea if this
has changed -- or is the callback option then only to do a &quot;</font><font size=1 color=#2f2f2f face="Helvetica Neue">--onerror
shutdown&quot;</font><font size=3> if it has failed to connect IB ?</font><br><br><font size=3>On Thu, Mar 8, 2018 at 1:42 PM, Frederick Stock &lt;</font><a href=mailto:stockf@us.ibm.com target=_blank><font size=3 color=blue><u>stockf@us.ibm.com</u></font></a><font size=3>&gt;
wrote:</font><br><font size=3 face="Arial">You could also use the GPFS prestartup callback
(mmaddcallback) to execute a script synchronously that waits for the IB
ports to become available before returning and allowing GPFS to continue.
&nbsp;Not systemd integrated but it should work.</font><font size=3><br></font><font size=3 face="sans-serif"><br>Fred<br>__________________________________________________<br>Fred Stock | IBM Pittsburgh Lab | </font><a href="tel:(720)%20430-8821" target=_blank><font size=3 color=blue face="sans-serif"><u>720-430-8821</u></font></a><font size=3 color=blue face="sans-serif"><u><br></u></font><a href=mailto:stockf@us.ibm.com target=_blank><font size=3 color=blue face="sans-serif"><u>stockf@us.ibm.com</u></font></a><font size=3><br><br><br></font><font size=1 color=#5f5f5f face="sans-serif"><br>From: &nbsp; &nbsp; &nbsp; &nbsp;</font><a href=mailto:david_johnson@brown.edu target=_blank><font size=1 color=blue face="sans-serif"><u>david_johnson@brown.edu</u></font></a><font size=1 color=#5f5f5f face="sans-serif"><br>To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">gpfsug
main discussion list &lt;</font><a href="mailto:gpfsug-discuss@spectrumscale.org" target=_blank><font size=1 color=blue face="sans-serif"><u>gpfsug-discuss@spectrumscale.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=1 color=#5f5f5f face="sans-serif"><br>Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">03/08/2018
07:34 AM</font><font size=1 color=#5f5f5f face="sans-serif"><br>Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Re:
[gpfsug-discuss] GPFS autoload - wait for IB ports to become &nbsp; &nbsp;
&nbsp; &nbsp;active</font><font size=1 color=#5f5f5f face="sans-serif"><br>Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</font><a href="mailto:gpfsug-discuss-bounces@spectrumscale.org" target=_blank><font size=1 color=blue face="sans-serif"><u>gpfsug-discuss-bounces@spectrumscale.org</u></font></a><font size=3><br></font><hr noshade><br><font size=3><br><br><br>Until IBM provides a solution, here is my workaround. Add it so it runs
before the gpfs script, I call it from our custom xcat diskless boot scripts.
Based on rhel7, not fully systemd integrated. YMMV!<br><br>Regards, <br>&nbsp;&#8212; ddj<br>&#8212;&#8212;-<br>[ddj@storage041 ~]$ cat /etc/init.d/ibready <br>#! /bin/bash<br>#<br># chkconfig: 2345 06 94<br># /etc/rc.d/init.d/ibready<br># written in 2016 David D Johnson (ddj &lt;at&gt; </font><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__brown.edu&amp;d=DwMFaQ&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&amp;m=u-EMob09-dkE6jZbD3dTjBi3vWhmDXtxiOK3nqFyIgY&amp;s=DZ8S9rlTWQ8XfqHR6o5CWfRorBROzg9akyebO0kFd0M&amp;e=" target=_blank><font size=3 color=blue><u>brown.edu</u></font></a><font size=3>)<br>#<br>### BEGIN INIT INFO<br># Provides: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ibready<br># Required-Start:<br># Required-Stop:<br># Default-Stop:<br># Description: Block until infiniband is ready<br># Short-Description: Block until infiniband is ready<br>### END INIT INFO<br><br>RETVAL=0<br>if [[ -d /sys/class/infiniband ]] <br>then<br>&nbsp; &nbsp; &nbsp; &nbsp; IBDEVICE=$(dirname $(grep -il infiniband /sys/class/infiniband/*/ports/1/link*
| head -n 1))<br>fi<br># See how we were called.<br>case &quot;$1&quot; in<br>&nbsp; start)<br>&nbsp; &nbsp; &nbsp; &nbsp; if [[ -n $IBDEVICE &amp;&amp; -f $IBDEVICE/state
]]<br>&nbsp; &nbsp; &nbsp; &nbsp; then<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo -n &quot;Polling
for InfiniBand link up: &quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (( count =
60; count &gt; 0; count-- ))<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; do<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; if grep -q ACTIVE $IBDEVICE/state<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; then<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo ACTIVE<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; fi<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; echo -n &quot;.&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; sleep 5<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; done<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (( count &lt;=
0 ))<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; then<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; echo DOWN - $0 timed out<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fi<br>&nbsp; &nbsp; &nbsp; &nbsp; fi<br>&nbsp; &nbsp; &nbsp; &nbsp; ;;<br>&nbsp; stop|restart|reload|force-reload|condrestart|try-restart)<br>&nbsp; &nbsp; &nbsp; &nbsp; ;;<br>&nbsp; status)<br>&nbsp; &nbsp; &nbsp; &nbsp; if [[ -n $IBDEVICE &amp;&amp; -f $IBDEVICE/state
]]<br>&nbsp; &nbsp; &nbsp; &nbsp; then<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;$IBDEVICE
is $(&lt; $IBDEVICE/state) $(&lt; $IBDEVICE/rate)&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; else<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;No IBDEVICE
found&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; fi<br>&nbsp; &nbsp; &nbsp; &nbsp; ;;<br>&nbsp; *)<br>&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Usage: ibready {start|stop|status|restart|reload|force-reload|condrestart|try-restart}&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; exit 2<br>esac<br>exit ${RETVAL}<br>&#8212;&#8212;&#8212;&#8212;<br><br>&nbsp; -- ddj<br>Dave Johnson<br><br>On Mar 8, 2018, at 6:10 AM, Caubet Serrabou Marc (PSI) &lt;</font><a href=mailto:marc.caubet@psi.ch target=_blank><font size=3 color=blue><u>marc.caubet@psi.ch</u></font></a><font size=3>&gt;
wrote:<br></font><font size=2 face="Tahoma"><br>Hi all,<br><br>with autoload = yes we do not ensure that GPFS will be started after the
IB link becomes up. Is there a way to force GPFS waiting to start until
IB ports are up? This can be probably done by adding something like After=network-online.target
and Wants=network-online.target in the systemd file but I would like to
know if this is natively possible from the GPFS configuration.<br><br>Thanks a lot,<br>Marc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>_________________________________________<br>Paul Scherrer Institut <br>High Performance Computing<br>Marc Caubet Serrabou<br>WHGA/036<br>5232 Villigen PSI<br>Switzerland<br><br>Telephone: </font><a href="tel:+41%2056%20310%2046%2067" target=_blank><font size=2 color=blue face="Tahoma"><u>+41
56 310 46 67</u></font></a><font size=2 face="Tahoma"><br>E-Mail: </font><a href=mailto:marc.caubet@psi.ch target=_blank><font size=2 color=blue face="Tahoma"><u>marc.caubet@psi.ch</u></font></a><font size=3><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at </font><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__spectrumscale.org&amp;d=DwMFaQ&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&amp;m=u-EMob09-dkE6jZbD3dTjBi3vWhmDXtxiOK3nqFyIgY&amp;s=Cn4NIxkWXmTOrwjnMFpO8KxH1BvuZLdC5_C9fwPSQCg&amp;e=" target=_blank><font size=3 color=blue><u>spectrumscale.org</u></font></a><br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwMFaQ&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&amp;m=u-EMob09-dkE6jZbD3dTjBi3vWhmDXtxiOK3nqFyIgY&amp;s=JCfJgq6pZnKUI6d-rIgJXVcdZh7vmA5ypB1_goP_FFA&amp;e=" target=_blank><font size=3 color=blue><u>http://gpfsug.org/mailman/listinfo/gpfsug-discuss</u></font></a><tt><font size=2>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at </font></tt><a href=http://spectrumscale.org/ target=_blank><tt><font size=2 color=blue><u>spectrumscale.org</u></font></tt></a><font size=3 color=blue><u><br></u></font><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&amp;m=u-EMob09-dkE6jZbD3dTjBi3vWhmDXtxiOK3nqFyIgY&amp;s=JCfJgq6pZnKUI6d-rIgJXVcdZh7vmA5ypB1_goP_FFA&amp;e=" target=_blank><tt><font size=2 color=blue><u>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&amp;m=u-EMob09-dkE6jZbD3dTjBi3vWhmDXtxiOK3nqFyIgY&amp;s=JCfJgq6pZnKUI6d-rIgJXVcdZh7vmA5ypB1_goP_FFA&amp;e=</u></font></tt></a><font size=3><br><br><br><br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at </font><a href=http://spectrumscale.org/ target=_blank><font size=3 color=blue><u>spectrumscale.org</u></font></a><font size=3 color=blue><u><br></u></font><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target=_blank><font size=3 color=blue><u>http://gpfsug.org/mailman/listinfo/gpfsug-discuss</u></font></a><font size=3><br></font><br><tt><font size=2>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss"><tt><font size=2>http://gpfsug.org/mailman/listinfo/gpfsug-discuss</font></tt></a><tt><font size=2><br></font></tt><br><br></div><BR>