Dennis,

Thank you very much for the detailed information.
Glad to see that you actually spend some time to have done so with a little
bit of effort. I'm going to apply this to my cluster and see how this works
for me.

Quick question:
If I were just going to change the IP of the compute nodes. I think we
don't have to stop xcatd and mysql as indicated in step 11, right? Also no
need to change server IP as mentioned in step 12, right?

Regards,
Simon (Yang) Yan
Technical Support Specialist
Platform Computing, IBM Systems and Technology Group

IBM Technical Computing community is now on IBM developerWorks SMC
https://www.ibm.com/developerworks/servicemanagement/tc/
You can find Best Practices, Integration Scenarios, Deployment Docs in the
Wiki and do Technical Q & A in the Forum in the community on SMC.



From:   Dennis Zheleznyak <[email protected]>
To:     xCAT Users Mailing list <[email protected]>
Date:   03/26/2014 08:45 PM
Subject:        Re: [xcat-user] Change node IP/hostname without reprovisioning?



Hi Yang,

I had the same issue a few weeks back, I had to change the IP address of
the xCAT server and the nodes.
Although you don't need  to change the address of the main server but I
documented everything and these are the steps I took:

### Change xCAT's Server IP Address ###
## To change the IP address of the xCAT server and the nodes, follow these
steps ##
1. tabprune -a auditlog                                    # Deletes the
audit logs.
2. tabprune -a eventlog                                   # Deletes the
event logs.
3. xcatsnap -d /root/xcat_ip-change    # Take a snapshot of xCAT DB.
4. lsxcatd -a                                                # Verifry
which services xCAT uses.
5. dumpxCATdb -p /root/xcat_search && cd /root/xcat_search && grep -r <Old
xCAT's server IP> .     # Dump xCAT tables to a directory and search for
thd old IP.
6. tabedit <tables from the previous step>     # Edit the tables to match
the new IP address.
7. lsdef -t node -l | grep " <Old xCAT's server IP>"      # Dump all
information about a node and search for the old IP.
*** Optional ***
lsdef -t node -w conserver=" <Old xCAT's server IP>"      # In case
conserver is used, search for old mentioned IP address.
chdef -t node cn1-cn4 conserver= <New xCAT's server IP>   # Change the old
Ip to the new one.
*** Optional ***
8. nodels pux[1-5] hosts.ip                         # Verify that the new
IP matches the desired one.
9. makehosts                                          # Updated
the /etc/hosts file using xCAT.
10. vi /etc/hosts                                           # Change the
server's IP address
11. service xcatd stop && service mysqld stop         # Stop both services
to update xCAT mysql server address.
12. vi /etc/xcat/cfgloc                                 # Change the IP
address from the old one to the new one.
13. vi /etc/sysconfig/network-scripts/ifcfg-eth1      # Change the IP of
the network card.
14. service network restart                      # Restart the service to
apply the IP change.
15. service mysqld start           # Start MySQL.
16. mysql -u root -p                                    # Log into the
mySQL server as root.
17. GRANT ALL on xcatdb.* TO xcatadmin@'hostname' IDENTIFIED BY
'Password';    # To grant the new server permissions to the server.
18. service xcatd start                                     # Start xCAT.
19. makedns -n                                                 # Create new
DNS entries.
20. makedhcp -d compute                     # Delete the old DHCP entries.
21. makedhcp -a                              # Create new DHCP entries.
*** Optional ***
makeconservercf                             # Make cons server if used.
*** Optional ***
22. nodeset compute boot                       # Regenrate the files
in /tftpboot/pxelinux.cfg

Hope it helps,
Dennis.




On Wed, Mar 26, 2014 at 2:22 PM, Lissa Valletta <[email protected]> wrote:
  Are you just trying to change the hostname  or are you also trying to
  change the ip address.   If ip address,  then I believe reinstall will be
  the best way to make sure all the system config files are set correctly.
  I think you would want to reinstall just to make sure you changes really
  worked, so if you have to reinstall in the future you will have no
  issues.

  Lissa K. Valletta
  8-3/B10
  Poughkeepsie, NY 12601
  (tie 293) 433-3102



  Inactive hide details for Yang BR Yan ---03/26/2014 08:08:50 AM---Dear
  All, When I'm searching for a solution to change IP/hostYang BR Yan
  ---03/26/2014 08:08:50 AM---Dear All, When I'm searching for a solution
  to change IP/hostname for a compute node,

  From: Yang BR Yan <[email protected]>
  To: "xCAT Users Mailing list" <[email protected]>,
  Date: 03/26/2014 08:08 AM
  Subject: [xcat-user] Change node IP/hostname without reprovisioning?




  Dear All,

  When I'm searching for a solution to change IP/hostname for a compute
  node, I've found this article:
  
http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Changing_the_Service_and_compute_nodes_Hostname_and/or_IP


  The article per se is great for addressing the issue but the solution
  seems require a reprovision(reinstall) of the node. So I wonder if
  there's a way to do the same without a reprovisioning?

  Regards,
  Simon (Yang) Yan
  Technical Support Specialist
  Platform Computing, IBM Systems and Technology Group

  IBM Technical Computing community is now on IBM developerWorks SMC
  https://www.ibm.com/developerworks/servicemanagement/tc/

  You can find Best Practices, Integration Scenarios, Deployment Docs in
  the
  Wiki and do Technical Q & A in the Forum in the community on SMC.
  ------------------------------------------------------------------------------

  Learn Graph Databases - Download FREE O'Reilly Book
  "Graph Databases" is the definitive new guide to graph databases and
  their
  applications. Written by three acclaimed leaders in the field,
  this first edition is now available. Download your free book today!
  http://p.sf.net/sfu/13534_NeoTech
  _______________________________________________
  xCAT-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/xcat-user


  ------------------------------------------------------------------------------

  Learn Graph Databases - Download FREE O'Reilly Book
  "Graph Databases" is the definitive new guide to graph databases and
  their
  applications. Written by three acclaimed leaders in the field,
  this first edition is now available. Download your free book today!
  http://p.sf.net/sfu/13534_NeoTech
  _______________________________________________
  xCAT-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------

Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to