Changing an AIX's name --- how to do it easily?

Steve Burling srb at eh.ifs.umich.edu
Thu Jun 14 22:38:48 AEST 1990


Here's the technique used by one of the other guys on the project
to change ps/2 system name:

1.  replace all occurrences of the old system name with the
    new system name in the following files:
	/etc/fsmap
	/etc/fstab
	/etc/hosts
	/etc/ports
	/etc/site
	/etc/system.bk
	/generic/install/siteinfo

2.  build and install a kernel with the new name:
	a. cd /usr/sys
	   newkernel

3.  rename the (only) special device file in the following directory
    from the old system name to the new system name:
	/generic/dev

4.  change /<LOCAL> to the new system name:
	a.  boot the os boot floppy
	b.  run the os maintenance disk
	c.  get a single user shell
	d.  mount /dev/hd35 /mnt
	    cd /mnt
	    mv <oldname> <newname>
	    cd /
	    umount /dev/hd35
	e.  exit the single user shell and boot from the hard disk
    note:  /dev/hd35 above is magic; you'll have to mount all of the
    /dev entries on the floppy one by one to find the one which
    represents /<LOCAL> on the hard disk.

No guarantees -- make sure you have a backup...

		-- Steve

--------------------------------------------------------------
Steve Burling                      Internet: srb at ifs.umich.edu
Institutional File System Project  BITNET: usersrb at umichum



More information about the Comp.unix.aix mailing list