Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Change System Name - Is this procedure still valid?
@ 2003-06-24 13:02 JasperH
  2003-06-24 17:41 ` Peter da Silva
  2003-06-24 18:43 ` Bruno
  0 siblings, 2 replies; 3+ messages in thread
From: JasperH @ 2003-06-24 13:02 UTC (permalink / raw)


I found the following procedure for changing my Alpha' s system name.
Is it still valid?
Any additional information I need before trying it?
My version is 4.0f
Many Thanks!
======================================
QUESTION: How do you rename an ALPHA Digital UNIX system hostname?

ANSWER:

To rename a Digital UNIX system hostname, follow the steps below.

Assume that the old hostname is "oldname" and the new one is "newname."

As root:

        1.  # rcmgr set HOSTNAME newname

        2.  Edit the /etc/hosts file and make the following change

                From:
                #
                127.0.0.1 localhost
                16.72.0.156 oldname

                To:
                #
                127.0.0.1 localhost
                16.72.0.156 newname

        3.  Reboot the system at a convenient time.

                # shutdown -r now

        4.  Edit the system configuration file so you can rebuild
            the kernel the next time it is needed.  The next kernel
            rebuild, you will want to do "doconfig -c NEWNAME," after
            doing the following commands:

                # cd /sys/conf
                # cp OLDNAME NEWNAME
                # vi NEWNAME

            From:
                ident   "OLDNAME"

            To:
                ident   "NEWNAME"

        5.  Move the options' HOSTNAME.list file to NEWNAME.list:

                # cd /sys/conf
                # cp OLDNAME.list  NEWNAME.list

        6.  Move the kernel rebuild subdirectory to the NEWNAME:

                #  cd  /sys
                #  mv  OLDNAME NEWNAME

        7. If the system was part of a network, the appropriate hosts
           files on the other systems will also have to be edited to
           reflect the change.

NOTE****If you are using LSM, please see the man pages for voldctl
        for instructions on changing the hostid

LSM changes -

  /sbin/voldctl hostid
      Change the host ID in the /etc/vol/volboot file and on all disks in
      disk groups currently imported on this machine. It may be desirable to
      change the Logical Storage Manager host ID for your machine if you are
      also changing the network node name of your machine.

      If some disks are inaccessible at the time of a hostid operation, it
      may be necessary to use the voldisk clearimport operation
 to clear out the old host ID on those disks when they become
reaccessible.
 Other-wise, you may not be able to re-add those disks to their disk
groups.

                                       Note

         Take care when using this command. If the system crashes before the
         hostid operation completes, some disk groups may not reimport
         automatically.
=====================================




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Change System Name - Is this procedure still valid?
  2003-06-24 13:02 Change System Name - Is this procedure still valid? JasperH
@ 2003-06-24 17:41 ` Peter da Silva
  2003-06-24 18:43 ` Bruno
  1 sibling, 0 replies; 3+ messages in thread
From: Peter da Silva @ 2003-06-24 17:41 UTC (permalink / raw)


In article <3ef84b47$0$228@hades.is.co.za>, JasperH <jmh@somchem.co.za> wrote:
> I found the following procedure for changing my Alpha' s system name.
> Is it still valid?

>         1.  # rcmgr set HOSTNAME newname

Check.

>         2.  Edit the /etc/hosts file and make the following change
> 
>                 From:
>                 #
>                 127.0.0.1 localhost
>                 16.72.0.156 oldname
> 
>                 To:
>                 #
>                 127.0.0.1 localhost
>                 16.72.0.156 newname

Check.

Also, if you're using DNS, update the matching host/zone/whatever files
you're using to maintain that.

>         3.  Reboot the system at a convenient time.
> 
>                 # shutdown -r now

You can generally get the same result by running 'hostname newname' and
restarting a few programs, but this is safer.

Don't forget that you may need to rerun mailsetup or otherwise edit your
mail configuration.

>         4.  Edit the system configuration file so you can rebuild
>             the kernel the next time it is needed.  The next kernel
>             rebuild, you will want to do "doconfig -c NEWNAME," after
>             doing the following commands:
> 
>                 # cd /sys/conf
>                 # cp OLDNAME NEWNAME
>                 # vi NEWNAME
> 
>             From:
>                 ident   "OLDNAME"
> 
>             To:
>                 ident   "NEWNAME"

I don't think this part is actually necessary. You an build a kernel with
any file and ident name you want - it doesn't need to match the system name.

In fact it's not unusual to have more than one kernel config file on a system.

-- 
#!/usr/bin/perl
$/="%\n";chomp(@_=<>);print$_[rand$.]

Peter da Silva, just another Perl poseur.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Change System Name - Is this procedure still valid?
  2003-06-24 13:02 Change System Name - Is this procedure still valid? JasperH
  2003-06-24 17:41 ` Peter da Silva
@ 2003-06-24 18:43 ` Bruno
  1 sibling, 0 replies; 3+ messages in thread
From: Bruno @ 2003-06-24 18:43 UTC (permalink / raw)


Yes, I confirm that is still valid with 4.0F.
Bruno

"JasperH" <jmh@somchem.co.za> wrote in message news:<3ef84b47$0$228@hades.is.co.za>...
> I found the following procedure for changing my Alpha' s system name.
> Is it still valid?
> Any additional information I need before trying it?
> My version is 4.0f
> Many Thanks!
> ======================================
> QUESTION: How do you rename an ALPHA Digital UNIX system hostname?
> 
> ANSWER:
> 
> To rename a Digital UNIX system hostname, follow the steps below.
> 
> Assume that the old hostname is "oldname" and the new one is "newname."
> 
> As root:
> 
>         1.  # rcmgr set HOSTNAME newname
> 
>         2.  Edit the /etc/hosts file and make the following change
> 
>                 From:
>                 #
>                 127.0.0.1 localhost
>                 16.72.0.156 oldname
> 
>                 To:
>                 #
>                 127.0.0.1 localhost
>                 16.72.0.156 newname
> 
>         3.  Reboot the system at a convenient time.
> 
>                 # shutdown -r now
> 
>         4.  Edit the system configuration file so you can rebuild
>             the kernel the next time it is needed.  The next kernel
>             rebuild, you will want to do "doconfig -c NEWNAME," after
>             doing the following commands:
> 
>                 # cd /sys/conf
>                 # cp OLDNAME NEWNAME
>                 # vi NEWNAME
> 
>             From:
>                 ident   "OLDNAME"
> 
>             To:
>                 ident   "NEWNAME"
> 
>         5.  Move the options' HOSTNAME.list file to NEWNAME.list:
> 
>                 # cd /sys/conf
>                 # cp OLDNAME.list  NEWNAME.list
> 
>         6.  Move the kernel rebuild subdirectory to the NEWNAME:
> 
>                 #  cd  /sys
>                 #  mv  OLDNAME NEWNAME
> 
>         7. If the system was part of a network, the appropriate hosts
>            files on the other systems will also have to be edited to
>            reflect the change.
> 
> NOTE****If you are using LSM, please see the man pages for voldctl
>         for instructions on changing the hostid
> 
> LSM changes -
> 
>   /sbin/voldctl hostid
>       Change the host ID in the /etc/vol/volboot file and on all disks in
>       disk groups currently imported on this machine. It may be desirable to
>       change the Logical Storage Manager host ID for your machine if you are
>       also changing the network node name of your machine.
> 
>       If some disks are inaccessible at the time of a hostid operation, it
>       may be necessary to use the voldisk clearimport operation
>  to clear out the old host ID on those disks when they become
> reaccessible.
>  Other-wise, you may not be able to re-add those disks to their disk
> groups.
> 
>                                        Note
> 
>          Take care when using this command. If the system crashes before the
>          hostid operation completes, some disk groups may not reimport
>          automatically.
> =====================================


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-24 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-24 13:02 Change System Name - Is this procedure still valid? JasperH
2003-06-24 17:41 ` Peter da Silva
2003-06-24 18:43 ` Bruno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox