Xhier Renumber/Rename a machine

See also ChangeXhierIrixHostname. ST#54572 is the primary motivation for this.

Xhier steps

  • Look in /software/xhier/data/access-rights
    • This tells you what servers control the various regions
  • Comment out xhier hosts in root rhost file of target machine
  • On Arch Master - look under /software/xhier,dev/data/{client-requests,client-types,distfiles}
    - These are built from remote machine

Renumber Script

Note You want the waterloo-network package installed - it has a renumber command.

Create a renumber_mappings file:

129.97.74.18 129.97.84.215
blackshadow.math blackshadow.cs
129.97.74.1 129.97.84.1

This particular host is a bit tricky, because it thinks its hostname is blackshadow, not blackshadow.math. Except DNS was backwards to that. I'm trying to fix that too.

Note: this file seems to take any pair of strings, changing any occurrence of string1 to string2. So, if you're just renumbering, but not renaming, you should be able to have a file like:

129.97.74.18 129.97.84.215
129.97.74.1 129.97.84.1

Run renumber:

# renumber -m renumber_mappings 
No match
renumber FYI: /etc/defaultrouter needs to be changed
Index: /etc/defaultrouter
1c1
< 129.97.74.1
---
> 129.97.84.1
=======
renumber FYI: /fsys1/.software/local/os-extras/data/gateway needs to be changed
Index: /fsys1/.software/local/os-extras/data/gateway
1c1
< 129.97.74.1
---
> 129.97.84.1
=======
renumber FYI: /fsys1/.software/regional/os-extras/config/regional/mailname needs to be changed
Index: /fsys1/.software/regional/os-extras/config/regional/mailname
2c2
< blackshadow.math.uwaterloo.ca
---
> blackshadow.cs.uwaterloo.ca
=======
renumber FYI: /fsys1/.software/local/xhier/config/local/allowed-types needs to be changed
Index: /fsys1/.software/local/xhier/config/local/allowed-types
5c5
< regional=blackshadow.math.uwaterloo.ca
---
> regional=blackshadow.cs.uwaterloo.ca
=======
renumber FYI: /fsys1/.software/regional/xhier/data/default-allowed-types/regional needs to be changed
Index: /fsys1/.software/regional/xhier/data/default-allowed-types/regional
2c2
< blackshadow.math.uwaterloo.ca
---
> blackshadow.cs.uwaterloo.ca
=======
# 

OK, that looks good. But I don't think it got the OS stuff. Solaris 8:

  1. /etc/hostname.*
  2. /etc/nodename
  3. /etc/hosts
  4. /etc/net/ticlts/hosts
  5. /etc/net/ticots/hosts
  6. /etc/net/ticotsord/hosts
  7. (/etc/dumpadm.conf?)
  8. (/etc/netmasks?)
  9. /etc/resolv.conf

One will have to muck about a great deal with xhier itself in order to convince it that it hasn't lost its mind.

Reboot system

After making all these changes it may be advisable to reboot the system and make sure that it still works

Run Xhier Local Maintenance

Finally, it would be a good idea to run xh-local-maintenance to have it check that everything is working properly

Renumber and rename rees.math to services16.student.cs

Since rees.math is db2 server, we don't know for sure whether renumbering or renaming would break db2. We first renumber it, test db2, then rename, test db2 again. We did the following:

Renumbering

  • Lowered TTL to 5 minutes.
  • Changed IP of rees.math from 129.97.204.28 to 129.97.152.24 in DNS.
  • Waited for the new IP to take effect.
  • Updated /etc/hosts to reflect rees' new IP (for reboot)
  • Changed /software/os-extras/data/gateway, /etc/defaultrouter to "129.97.152.1"
  • Changed switch port (dccore-nnsw37 1/25) from subnet 204 to 152
  • Run "ifconfig hme0 inet 129.97.152.24 netmask 255.255.255.0 broadcast 129.97.152.255 up"
  • Rebooted rees.math
  • Tested db2. It worked fine.

Renaming

  • Changed the name of 129.97.152.24 from rees.math to services16.student.cs in DNS.
  • Waited for the new name to take effect
  • Run "xhinstall -u local_rees.math.uwaterloo.ca"
  • Changed
          /etc/hostname.hme0
          /etc/nodename
          /etc/net/ticlts/hosts
          /etc/net/ticots/hosts
          /etc/net/ticotsord/hosts
          to be services16.student.cs
          
  • Run hostname `cat etc/hostname.hme0`
  • After testing db2, changed the follwoing files:
        on services16.student.cs
        /fsys/.software/local/nsdata/conf/named.local
        /fsys/.software/share/local_rees.math.uwaterloo.ca/.admin/{HostMaintained
        ,Synopsis,Install,Options}
    
         on student.cs
        /.software/regional/sendmail-8.13/config/regional/clients
        /software/setpw/data/config/setpw.config
        /software/setpw/data/config/hosts/hosts.misc.rdist
        /.software/regional/finger-gnu/config/regional/clients
        
        removed 
        /.software/regional/xhier/data/region/packages/rees.math
    
       on cscf.cs
        /fsys1/.software/admin/xhier/data/access-rights
        /fsys1/.software/admin/cscf-specific/export/hosts/{solaris.student.cs,student.cs}
        /.software/admin/lpr/data/hosts.equiv.lpd
    
       on capo
        /fsys1/.software/share/cf-specific/export/hosts/cscf_clients
        /.software/share/undergrad.math/data/hosts.equiv
        
  • Pushed undergrad.math, cf-specific, lpr, xhier down
  • re-install sendmail-8.13 on services0{2,4}.student.cs
  • Checked services16.student.cs was added to /software/cf-specific/export/hosts/cscf_clients and run xh-install lpr_quota on print.cs to make printing work
  • Renamed package local_rees.math.uwaterloo.ca to local_services16.student.cs.uwaterloo.ca and installed it. on student.cs installed finger-gnu,setpw, and accounts (to updtae /.software/local/accounts/export/hosts/regional_siblings at least it is used for motd)
  • Changed NetApps filers fs02.student.cs: /etc/{hosts,hosts.equiv,exports,netgroup} to export files to services16.student.cs
  • Ask MFCF to export files to erverses16 from fs01.student.math
  • Tested db2 one more time and rebooted the machine.
  • Restored TTL.

-- MikePatterson - 03 Aug 2006

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r8 - 2012-09-06 - BillInce
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback