Jawab Adding a server name to the hosts file

  • 1 lipca 2011 15:09
     
     

    We are running HPC R2 SP1 with clustered head nodes. I want to add entry to the host file for a file server that is on the private network for the cluster nodes to be able to input and output data from. So essentially i would like to see an entry like private.fileservername on headnodes and compute nodes for this file server

    I found googling around that the following command is supposed to do that:

    PS C:\Windows\System32> Set-HpcNetwork -PrivateDnsRegistrationType WithConnectionDnsSuffix

    The problem is i have no example of this command being used anywhere. If the server name was serverA and the ip was 192.168.0.1 what should the command look like if i wanted to add a host record in the host file

    thank you,

Wszystkie odpowiedzi

  • 15 lipca 2011 20:09
     
     Odpowiedz

    The command you mention is used when DNS server is around and you'd want your nodes to register. I think this is not what you wanted to do though.

    If your file server has a static IP then the easiest way would be to update the hosts files yourself. You could use clusrun command to execute a command on all the nodes to append a line with the name-ip mapping something like clusrun echo "192.168.0.1 serverA" >> c:\Windows\System32\drivers\etc\hosts

     

    • Oznaczony jako odpowiedź przez Vega1x1 2 sierpnia 2012 04:44
    •