Bright:Hostname Change

From Define Wiki
Jump to navigation Jump to search

Manual way

To change a node's hostname, the typical CENTOS hostname changing procedure can be followed:

  • Edit the /etc/sysconfig/network file and change the HOSTNAME variable to the desired name
  • Run
hostname <new hostname>
  • Reboot the node node for all the changes to be visible in the CMGUI

CMGUI

The device listed under Head Nodes or Nodes in the resource tree is selected and its Settings tab selected from the tabbed pane. The hostname is changed by modifying the Hostname property and clicking on Save. When setting a hostname, a domain is not included. After the change, as suggested by cmgui, the head node must be rebooted.

Error creating thumbnail: File missing

CMSH

In cmsh, the hostname of a node can also be changed, via device mode:

[root@bright70 ~]# cmsh
[bright70]% device use bright70
[bright70->device[bright70]]% set hostname foobar [foobar->device*[foobar*]]% commit
[foobar->device[foobar]]%
Tue Jan 22 17:35:29 2013 [warning] foobar: Reboot required: Hostname \ changed
[foobar->device[foobar]]% quit

Everything should work fine by now. The only thing noted is that when a compute node pings the new head node's hostname, the old hostname is visible (although the IP is resolved). If this is a problem, re-install the compute nodes.