OpenHPC: Setup the IPMI BMC Network in OpenHPC

From Define Wiki
Revision as of 10:41, 25 August 2016 by David (talk | contribs)
Jump to navigation Jump to search
  • EDIT: Needs to be verified as the process didnt work first time / then i manaually scripted

Add the Warewulf IPMI module

 yum install warewulf-ipmi-ohpc
# rebuild the VNFS to include the IPMI init scripts 
 wwvnfs -y --chroot=/opt/ohpc/admin/images/centos7.2-hfi/

Now add the IPMI modules to the nodes

  • Assumes compute nodes have already been added
# Example
    wwsh -y ipmi set ${c_name} --autoconfig=1                \
                               --ipaddr=${c_bmc[$i]}         \
                               --netmask=${bmc_netmask}      \
                               --username="${bmc_username}"  \
                               --password="${bmc_password}"

# In practice / quick script. there will be better ways
#!/bin/bash

for ((i=2; i<10; i++))
do
        echo "wwsh -y ipmi set node00${i} --autoconfig=1 --ipaddr=10.10.10.10${i} --netmask=255.255.255.0 --username=ADMIN --password=ADMIN"
done

for ((i=10; i<=52; i++))
do
        echo "wwsh -y ipmi set node0${i} --autoconfig=1 --ipaddr=10.10.10.1${i} --netmask=255.255.255.0 --username=ADMIN --password=ADMIN"
done

Check and confirm the IPMIs are configured

[root@head ~]# wwsh ipmi list 
NAME                AUTO    IPMI_IPADDR    IPMI_NETMASK  
================================================================================
node001.plymouth... no      UNDEF          UNDEF         
node002.plymouth... yes     10.10.10.102   255.255.255.0 
node003.plymouth... yes     10.10.10.103   255.255.255.0 
node004.plymouth... yes     10.10.10.104   255.255.255.0 
node005.plymouth... yes     10.10.10.105   255.255.255.0 
node006.plymouth... yes     10.10.10.106   255.255.255.0 
node007.plymouth... yes     10.10.10.107   255.255.255.0 
node008.plymouth... yes     10.10.10.108   255.255.255.0 
node009.plymouth... yes     10.10.10.109   255.255.255.0 
node010.plymouth... yes     10.10.10.110   255.255.255.0 
...