xCAT
2.12
  • Overview
  • Install Guides
  • Admin Guide
    • Basic Concepts
    • Manage Clusters
      • IBM Power LE / OpenPOWER
        • Configure xCAT
        • Hardware Discovery & Define Node
        • Hardware Management
        • Diskful Installation
        • Diskless Installation
        • Using Updatenode
        • Parallel Commands
        • Virtual Machines
      • x86_64
    • References
  • Advanced Topics
  • Troubleshooting
  • Developers
  • Need Help
  • Security Notices
xCAT
  • Docs »
  • Admin Guide »
  • Manage Clusters »
  • IBM Power LE / OpenPOWER »
  • Hardware Discovery & Define Node »
  • MTMS-based Discovery »
  • Discovery »
  • Set static BMC IP using different IP address (recommended)
  • Edit on GitHub

Set static BMC IP using different IP address (recommended)ΒΆ

The following example outlines the MTMS based hardware discovery for a single IPMI-based compute node.

Compute Node Information Value
Model Type 8247-22l
Serial Number 10112CA
Hostname cn01
IP address 10.1.2.1

The BMC IP address is obtained by the open range dhcp server and the plan in this scenario is to change the IP address for the BMC to a static IP address in a different subnet than the open range addresses. The static IP address in this example is in the same subnet as the open range to simplify the networking configuration on the xCAT management node.

BMC Information Value
IP address - dhcp 172.30.0.1
IP address - static 172.20.2.1
  1. Detect the BMCs and add the node definitions into xCAT.

    Use the bmcdiscover command to discover the BMCs responding over an IP range and automatically write the output into the xCAT database. You must use the -w option to automatically write the output into the xCAT database.

    To discover the BMC with an IP address of 172.30.0.1, use the command:

    bmcdiscover --range 172.30.0.1 -z -w
    

    The discovered nodes will be written to xCAT database:

    # lsdef node-8247-22l-10112ca
    Object name: node-8247-22l-10112ca
        bmc=172.30.0.1
        cons=ipmi
        groups=all
        hwtype=bmc
        mgt=ipmi
        mtm=8247-22L
        nodetype=mp
        postbootscripts=otherpkgs
        postscripts=syslog,remoteshell,syncfiles
        serial=10112CA
        nodetype=mp
    
  2. Pre-define the compute nodes:

    Use the bmcdiscover command to help discover the nodes over an IP range and easily create a starting file to define the compute nodes into xCAT.

    To discover the compute nodes for the BMCs with an IP address of 172.30.0.1, use the command:

    bmcdiscover --range 172.30.0.1 -z > predefined.stanzas
    

    The discovered nodes have the naming convention: node-<model-type>-<serial-number>

    # cat predefined.stanzas
    node-8247-22l-10112ca:
      objtype=node
      groups=all
      bmc=172.30.0.1
      cons=ipmi
      mgt=ipmi
      mtm=8247-22L
      serial=10112CA
    
  3. Edit the predefined.stanzas file and change the discovered nodes to the intended hostname and IP address.

    1. Edit the predefined.stanzas file:

      vi predefined.stanzas
      
    2. Rename the discovered object names to their intended compute node hostnames based on the MTMS mapping:

      node-8247-22l-10112ca ==> cn01
      
    3. Add a ip attribute and give it the compute node IP address:

      ip=10.1.2.1
      
    4. Remove nodetype and hwtype if defined in the predefined.stanza.

    5. Repeat for additional nodes in the predefined.stanza file based on the MTMS mapping.

    In this example, the predefined.stanzas file now looks like the following:

    # cat predefined.stanzas
    cn01:
      objtype=node
      groups=all
      bmc=172.30.0.1
      cons=ipmi
      mgt=ipmi
      mtm=8247-22L
      serial=10112CA
      ip=10.1.2.1
    
  4. Set the chain table to run the bmcsetup script, this will set the BMC IP to static.

    chdef cn01 chain="runcmd=bmcsetup"
    
  5. Set the target osimage into the chain table to automatically provision the operating system after the node discovery is complete.

    chdef cn01 -p chain="osimage=<osimage_name>"
    
  6. Change the BMC IP address

    Set the BMC IP address to a different value for the predefined compute node definitions.

    To change the dhcp obtained IP address of 172.30.0.1 to a static IP address of 172.20.2.1, run the following command:

    chdef cn01 bmc=172.20.2.1
    
  7. Define the compute nodes into xCAT:

    cat predefined.stanzas | mkdef -z
    
  8. Add the compute node IP information to /etc/hosts:

    makehosts cn01
    
  9. Refresh the DNS configuration for the new hosts:

    makedns -n
    
  10. [Optional] Monitor the node discovery process using rcons

    Configure the conserver for the discovered node to watch the discovery process using rcons:

    makeconservercf node-8247-22l-10112ca
    

    In another terminal window, open the remote console:

    rcons node-8247-22l-10112ca
    
  11. Start the discovery process by booting the discovered node definition:

    rsetboot node-8247-22l-10112ca net
    rpower node-8247-22l-10112ca on
    
  12. The discovery process will network boot the machine into the diskless xCAT genesis kernel and perform the discovery process. When the discovery process is complete, doing lsdef on the compute nodes should show discovered attributes for the machine. The important mac information should be discovered, which is necessary for xCAT to perform OS provisioning.

Next Previous

© Copyright 2015, IBM Corporation. Revision ba3e1532.

Built with Sphinx using a theme provided by Read the Docs.