Checklist for Manually Cloning a Unix Server


Here are the key items necessary to manually match the unix file server configuration on one file server to another file server.  Please note that it is much easier and more reliable to use automated methods of cloning server configuration such as HP's Ignite UX product, or IBM's Sysback product.

Guidelines:


1.  Initial OS Installation

Create Filesystem
Install OS Files
Configure Basic Networking

2.  User Configuration

Backup the important user configuration files:

Replace these files with copies from the source server


Copy/Import/Mount home directories as needed
Copy custom environmental files/profile files

3.  NIS Configuration (if applicable)

Duplicate the NIS role of the server: Verify the configuration files have been properly updated to use NIS:

4.  Filesystem Configuration

Local Filesystem Configuration:

List the Filesystems and compare them with the existing filesystems:
( on HP-UX to list local filesystems: bdf | sed 1d | xargs -n 6 | grep -v :/, to list NFS filesystems: bdf | sed 1d | xargs -n 6 | grep -c :/, to list local filesystem type:   grep -v :/ /etc/fstab | awk '{print $2 "\t" $3}')
Create any filesystems that are missing on the new system
Change the size of existing filesystems on the new system as needed


NFS Filesystems:

Move the data to the new system

5.  Startup/Shutdown Configuration

Startup scripts
Shutdown scripts
Link scripts to startup and shutdown

/sbin/init.d
/sbin/rc.*
/etc/inittab


6.  Service Configuration

/etc/inetd.conf
/etc/services

7.  Additional Networking Configuration 

Change these parameters as needed to configure the networking Copy the required networking configuration files from the original server

8.  Scheduling Configuration

Copy the configuration associated with crontab and at:
 

9.  Printing Configuration

Identify and configure (migrate configuration if possible from original server):

10.  System Logging Configuration

/etc/syslog.conf

11.  OS Configuration

Version (uname -a)
Kernel Parameters (HP-UX "kmtune" will list the tuning parameters)
Installed Patches/Maintenance Release Bundles

12.  Application Software Configuration

Can it be copied/restored from tape, or does it require an installation?
License Keys
License Manager Processes
Hardware Dependancies
Application Patches/Updates
Locally Installed Software/Utilities/Scripts (/usr, /opt . . .)

Configuration Files

13.  NFS Export Configuration

What is going to be exported
Who can access
How will it be accessed - ro, rw
Who can be root
/etc/exports
exportfs

14.  Apply Custom Procedures/Configuration

Security Hardening

15. Final Configuration if Replacing the Original Server

Hostname Change - original server must be shutdown
IP Address Change - original server must be shutdown
Copy /etc/hosts from the original server - original server must be shutdown if this file is used