Enabling Broadcom FCoE

Posted on Posted in FCoE, Linux, RHEL 6, Storage

Following on from my previous post on the topic on BL460c Gen8 and the missing HBA, I thought I’d provide a quick script to automate the required installation of rpms and associated config changes, so here you go;

<p>echo &quot;Installing Pre-Reqs for FCoE on Broadcom NICs...&quot;</p>
<p>yum install -y lldpad lldpad-libs fcoe-utils</p>
<p>echo &quot;Configuring FCoE...&quot;</p>
<p>cd /etc/fcoe</p>
<p>DEVICES=&quot;eth2 eth3&quot;<br />
<p>for i in $DEVICES; do<br />
cp cfg-ethx cfg-$i<br />
sed -i 's/DCB_REQUIRED=&quot;yes&quot;/DCB_REQUIRED=&quot;no&quot;/g' cfg-$i<br />
<p>echo &quot;Starting lldpad service...&quot;</p>
<p>/sbin/chkconfig lldpad on<br />
/sbin/service lldpad start</p>
<p>for i in $DEVICES; do<br />
lldptool set-lldp -i $i adminStatus=disabled<br />
COUNT=$[COUNT+1]<br />
<p>ADMINSETCOUNT=`grep adminStatus /var/lib/lldpad/lldpad.conf | wc -l`</p>
<p>if [ $ADMINSETCOUNT == $COUNT ]; then<br />
echo &quot;adminStatus appears to have been set correctly&quot;<br />
else<br />
echo adminStatus has not been set correctly, you should investigate this further!&quot;<br />
echo &quot;Useful URL - http://h20564.www2.hp.com/hpsc/doc/public/display?docId=mmr_kc-0115755-3&quot;<br />
<p>echo &quot;Restarting services after changes made&quot;<br />
/sbin/service lldpad restart<br />
/sbin/service fcoe restart</p>
<p>echo &quot;Setting FCoE service to start on boot...&quot;<br />
/sbin/chkconfig fcoe on</p>
<p>echo &quot;Enable Ethernet interfaces to start on boot&quot;</p>
<p>for i in $DEVICES; do<br />
sed -i 's/ONBOOT=no/ONBOOT=yes/g' ifcfg-$i<br />

The above does make the assumption that you are using eth2 and eth3 for FCoE.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.