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