Cloning AIX 4.1 hosts
Preparation:
- export /home1, /home2, /usr/local1 /var/spool/mail to 132.230.74.60
/usr/etc/chnfsexp -d '/home1' -t 'rw' -c '132.230.74.60,tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
/usr/etc/chnfsexp -d '/home2' -t 'rw' -c '132.230.74.60,tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
/usr/etc/chnfsexp -d '/usr/local1' -t 'rw' -c '132.230.74.60,tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
/usr/etc/chnfsexp -d '/var/spool/mail' -t 'rw' -c '132.230.74.60,tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
- stop AFS: /ruf/etc/stop.AFS
- stop NIS: /usr/sbin/rmyp -c
- change IP address to 132.230.74.60:
chdev -l 'en0' -a netaddr='132.230.74.60' -a state=up
- change password to ".matthew"
- unmount /var/afs/cache
- run "mkszfile" and edit /image.data to correct file system sizes
- mksysb /dev/rmt0
Restore master:
- restore password
- restore IP address:
chdev -l 'en0' -a netaddr='132.230.74.?' -a state=up
- configure NIS-client:
/usr/sbin/chypdom -B tpoly
/usr/sbin/mkclient -B
- restart AFS: /ruf/etc/start.AFS
- unexport filesystems on tpoly2
/usr/etc/chnfsexp -d '/home1' -t 'rw' -c 'tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
/usr/etc/chnfsexp -d '/home2' -t 'rw' -c 'tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
/usr/etc/chnfsexp -d '/usr/local1' -t 'rw' -c 'tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
/usr/etc/chnfsexp -d '/var/spool/mail' -t 'rw' -c 'tpoly1,tpoly3,tpoly4,tpoly5,tpoly6' '-B'
Create clone
- attach Exabyte drive to new host
- use System Management Diskette to allow booting from tape (this
can be tricky so be sure to let it use BOOTP (?) during startup to
figure out which devices are bootable)
- boot from tape and install
- boot again from tape and enter maintenance shell and edit
/etc/inittab so as not to start NFS and rc.local. Also rename
/etc/auto.master so as not to have it try to mount the file systems.
- login with ".matthew" and change password
- set IP address:
chdev -l 'en0' -a netaddr='132.230.74.?' -a state=up
- configure NIS-client:
/usr/sbin/chypdom -B tpoly
/usr/sbin/mkclient -B
- create AFS cache: /ruf/etc/make.afscache size-in-MB vol-group
- Reexport filesystems to new host on NFS server. Add to /etc/hosts
on tpoly2 and on host itself and distribute.
- Restore inittab and auto.master
- restart AFS: /ruf/etc/start.AFS
- Define new address in DNS with MX record.
- Add information to ethernet and hardware database. Add to lslpp
software WWW information.
- Add to /.rhosts and set up ssh
host id.
- Integrate in toall system.
- Add hostname in /etc/sendmail.cw to allow mail server to accept
mail for new host.
- Add hostname to /etc/hosts.lpd on server and to toall.