locked
Adding multiple nodes at the same time RRS feed

  • Question

  • We're trying to add multiple nodes simultaneously. However, for the sake of management, we want to add node in correct physical order. This can be done by gradually bring up each node and wait for it to appear in the node list, but it takes quite sometime to establish this.

    Are there anyways to populate the MAC address of each node to force the node name in HPC Cluster Manager? If this can be done, we can just add MAC address and power on every nodes at the same time.
    Tuesday, April 29, 2008 10:50 AM

Answers

  •  

    You can generate Node XML through the UI by highlight a bunch of nodes and saying "Export to XML."  Also, when importing the XML, it will take an XML file with many nodes.

     

    We hope to (at some point) release a tool for editing this XML so it will be easier to manipulate the files

     

    -Josh

    Wednesday, April 30, 2008 11:31 PM

All replies

  • You can do this by creating a node XML file for your nodes.  This will allow you to key on nodes based on either hardware GUID or MAC address.  Here an example to give you an idea of the format:

     

    Code Snippet
    <?xml version="1.0" encoding="utf-8"?>
    <Nodes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instancehttp://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A< A>>" xmlns:xsd="http://www.w3.org/2001/XMLSchemahttp://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A< A>>" xmlns="http://schemas.microsoft.com/HpcNodeConfigurationFile/2007/12">
     '>http://schemas.microsoft.com/HpcNodeConfigurationFile/2007/12">http://schemas.microsoft.com/HpcNodeConfigurationFile/2007/12">
     ; <Node
        Name="JBARNARDCN01"
        Domain="REDMOND"
        MachineGuid="{00000000-0000-0000-0000-000e0c6c4deb}">
        <Location
          DataCenter="25/2527"
          Rack="1"
          Chassis="2" />
        <Template
          Name="Shuttle CN Template" />
        <MacAddress>000E0C6C4DEB</MacAddress>
        <MacAddress>00301BB5C9AD</MacAddress>
        <Tag>ComputeNodes</Tag>
      </Node>
      <Node
        Name="JBARNARDCN02"
        Domain="REDMOND"
        MachineGuid="{00000000-0000-0000-0000-000e0c6c4d93}">
        <Location
          DataCenter="25/2527"
          Rack="1"
          Chassis="3" />
        <Template
          Name="Shuttle CN Template" />
        <MacAddress>00301BB74BB9</MacAddress>
        <MacAddress>000E0C6C4D93</MacAddress>
        <Tag>ComputeNodes</Tag>
      </Node>
      <Node
        Name="JBARNARDCN03"
        Domain="REDMOND"
        MachineGuid="{00000000-0000-0000-0000-000e0c6c3f7c}">
        <Location
          DataCenter="25/2527"
          Rack="1"
          Chassis="4" />
        <Template
          Name="Shuttle CN Template" />
        <MacAddress>00301BB75771</MacAddress>
        <MacAddress>000E0C6C3F7C</MacAddress>
        <Tag>ComputeNodes</Tag>
      </Node>
    </Nodes>

     

    You can then add these nodes to the system by clicking "Add Node" in Node Management and selecting the option to "Import Node XML."

     

    Also, once you've got everything set up (all nodes joined) and settings entered, you can save node details out to XML by highlighting them in Node Management, Right-Clicking, and saying "Export Node XML."  This will allow you to more easily maintain correct Node Naming, location settings, template settings, PID's, etc . . .  It's a good idea to do this once you've got everything configured the way that you want, as it will make it easier to rebuild your cluster in the future if necessary.

    Tuesday, April 29, 2008 5:04 PM
  • Thank you very much. I tried the method you suggest and it works.

    I wrote a script to generate XML from existing node and replacing hostname and mac address with correct entry for each node. I think it'll be better if there's GUI or command line to do this without having to write the script. May be adding CSV list of mac/machine GUID and host name?

    However, adding each node XML through the GUI is not a very effective way if we large amount of nodes. If possible, I think there should be command line or GUI to do this for multiple nodes at the same time.

    I believe PowerShell may have some interface to do this tasks. But we don't have PowerShell 2.0 CTP installed yet. I personally believe that it should at least have command line interface since this is quite a common case, in my experience.
    Wednesday, April 30, 2008 6:57 AM
  •  

    You can generate Node XML through the UI by highlight a bunch of nodes and saying "Export to XML."  Also, when importing the XML, it will take an XML file with many nodes.

     

    We hope to (at some point) release a tool for editing this XML so it will be easier to manipulate the files

     

    -Josh

    Wednesday, April 30, 2008 11:31 PM