Difference between revisions of "Bright:Hostname Change"
Jump to navigation
Jump to search
(Created page with "To change the Head node's hostname, the typical CENTOS hostname changing procedure must be followed: * Edit the /etc/sysconfig/network file and change the HOSTNAME variable to...") |
|||
| Line 1: | Line 1: | ||
| − | To change | + | == 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 | * Edit the /etc/sysconfig/network file and change the HOSTNAME variable to the desired name | ||
* Run | * Run | ||
hostname <new hostname> | hostname <new hostname> | ||
| − | * Reboot the | + | * 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. | ||
| + | |||
| + | == 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. | 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. | ||
Revision as of 18:36, 16 December 2014
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.
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.