<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_Changing_the_headnode_IP_address</id>
	<title>Rocks: Changing the headnode IP address - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_Changing_the_headnode_IP_address"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_Changing_the_headnode_IP_address&amp;action=history"/>
	<updated>2026-05-05T00:05:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_Changing_the_headnode_IP_address&amp;diff=2471&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;In this example we want to change the IP address to a local viglen network address. ===== Change the frontend IP address, Rocks &lt;= 5.1 ===== * Tested on Rocks 4.x - 5.1 &lt;syntaxhighlight&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_Changing_the_headnode_IP_address&amp;diff=2471&amp;oldid=prev"/>
		<updated>2013-05-13T09:43:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In this example we want to change the IP address to a local viglen network address. ===== Change the frontend IP address, Rocks &amp;lt;= 5.1 ===== * Tested on Rocks 4.x - 5.1 &amp;lt;syntaxhighlight&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In this example we want to change the IP address to a local viglen network address.&lt;br /&gt;
===== Change the frontend IP address, Rocks &amp;lt;= 5.1 =====&lt;br /&gt;
* Tested on Rocks 4.x - 5.1&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rocks set host interface ip cluster.hpc.org eth1 172.28.10.59 # [sets up the networks table]&lt;br /&gt;
rocks set host interface gateway cluster eth1 172.28.1.242&lt;br /&gt;
&lt;br /&gt;
rocks set var Kickstart PublicBroadcast 172.28.255.255 # app_globals&lt;br /&gt;
rocks set var Kickstart PublicAddress 172.28.10.59&lt;br /&gt;
rocks set var Kickstart PublicNetwork 172.28.0.0  &lt;br /&gt;
rocks set var Kickstart PublicGateway 172.28.1.242&lt;br /&gt;
rocks set var Kickstart PublicDNSServers 172.28.100.3&lt;br /&gt;
&lt;br /&gt;
rocks sync config&lt;br /&gt;
&lt;br /&gt;
*note* update the files in /etc/sysconfig/network-scripts manually  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; with Rock 5.2, mysql.sock file is created in /var/opt/rocks/mysql/mysql.sock. However mysql still refer mylsq.sock in /var/lib/mysql. Create a soft link to point /var/lib/mysql/mysql.sock to /var/opt/rocks/mysql/mysql.sock&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; With Rock 5.2.2, rocks mysql database is startup from /opt/rocks/bin/mysql  &lt;br /&gt;
&lt;br /&gt;
===== Change the frontend IP address, Rocks &amp;gt;=5.2 =====&lt;br /&gt;
* Set the host attributes&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
rocks set host interface ip [frontend] eth1 172.28.10.58  # [update the network table]&lt;br /&gt;
&lt;br /&gt;
rocks set attr Kickstart_PublicBroadcast 172.28.255.255 # [update global_attibutes table]&lt;br /&gt;
rocks set attr Kickstart_PublicAddress 172.28.10.58&lt;br /&gt;
rocks set attr Kickstart_PublicNetwork 172.28.0.0&lt;br /&gt;
rocks set attr Kickstart_PublicGateway 172.28.1.242&lt;br /&gt;
rocks set attr Kickstart_PublicDNSServers 172.28.100.3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: update global_routes table with SQL statement (doesn&amp;#039;t seems to be a rocks cmd for it)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@headnode ~]# /opt/rocks/bin/mysql -u root -p&lt;br /&gt;
Enter password:&lt;br /&gt;
Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
Your MySQL connection id is 8&lt;br /&gt;
Server version: 5.1.33 Source distribution&lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the buffer.&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; connect cluster&lt;br /&gt;
Reading table information for completion of table and column names&lt;br /&gt;
You can turn off this feature to get a quicker startup with -A&lt;br /&gt;
&lt;br /&gt;
Connection id:    9&lt;br /&gt;
Current database: cluster&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; update global_routes set Network=&amp;quot;172.28.10.58&amp;quot; where Netmask=&amp;quot;255.255.255.255&amp;quot; and Gateway=&amp;quot;10.1.1.1&amp;quot;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Update the following files manually: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
* /etc/sysconfig/network-scripts/ifcfg-eth1&lt;br /&gt;
* /etc/sysconfig/static-routes&lt;br /&gt;
* /etc/sysconfig/network&lt;br /&gt;
* /etc/resolv.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart networking and sync the configuration&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
service network restart&lt;br /&gt;
rocks sync config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/2011-March/051691.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Change Headnode/Frontend Domain Name =====&lt;br /&gt;
* Tested on Rocks 4.x - 5.1&lt;br /&gt;
* Update the app_globals table using the &amp;#039;&amp;#039;&amp;#039;rocks&amp;#039;&amp;#039;&amp;#039; command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
rocks set var Info ClusterURL http://fotcluster2.fot.plymouth.ac.uk&lt;br /&gt;
rocks set var Kickstart PublicHostname fotcluster2.fot.plymouth.ac.uk&lt;br /&gt;
rocks set var Kickstart PublicDNSDomain fotcluster2.fot.plymouth.ac.uk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update the networks table using SQL: (not sure what is the rocks command here)&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
  update networks set Name=&amp;quot;fotcluster2.fot.plymouth.ac.uk&amp;quot; where ID=2 and Device=&amp;quot;eth1&amp;quot;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update the following files manually:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
* /etc/sysconfig/network&lt;br /&gt;
* /etc/resolv.conf&lt;br /&gt;
* /etc/httpd/conf.d/rocks.conf: ServerName &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If using Torque/Maui, then also edit the following:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt; &lt;br /&gt;
/opt/torque/server_name&lt;br /&gt;
/opt/pbs.default&lt;br /&gt;
/opt/torque/server_priv/acl_hosts&lt;br /&gt;
/opt/torque/server_priv/managers&lt;br /&gt;
/opt/maui/maui.cfg&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart networking, sync the configuration and reboot&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
service network restart&lt;br /&gt;
rocks sync config&lt;br /&gt;
reboot to get the new FQDN name&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>