SUMMARY: renaming a server without rebooting

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Tue Mar 25 2003 - 10:53:09 EST


I asked:

> I am looking to rename a server without doing a reboot. I only want to
> change the name, not the IP. I would like to run this procedure by folks
> and see if anyone sees anything that I forgot. This server does NOT run
> NIS and does not mount or export any filesystem.
>
> * edit DNS nameserver:
> oldname A record changed to newname A record.
> oldname added as CNAME to newname.
>
> * modify /etc/net/ticlts,
> /etc/net/ticots,
> /etc/net/ticotsord,
> /etc/hostname.hme0,
> /etc/nodename
> /etc/hosts
>
> * run command "hostname" to actually change it.
>
> * check ntp.conf that may refer to the oldname.
>
> Thanks, and I will summarize.

Summary:

An important caveat: remember that any processes started before the rename
will keep the old name until they are terminated.
Also, remember /var/crash/hostname. And, if necessary, also look at
/etc/printers.conf and /etc/mail/sendmail.cf.

As it turned out, a reboot window was opened shortly after I sent this,
so I did the above changes and then rebooted for good measure.

Thanks to:

Gaziz Nugmanov <sunman@lists.gaziz.ca>
"Walt Sullivan" <Walt.Sullivan@meriton.com>
"Homan, Charles (NE)" <Charles.Homan@GDC4S.Com>

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:03 EDT