Creating a mksysb image from an AIX VM in Skytap

This article describes how to add a NIM master to an existing Skytap environment that contains an AIX VM and to create a mksysb image from the AIX VM.

Step 1 - Add a NIM master to the environent

Add a NIM master to the environment that contains the AIX VM that you want to back up. See Creating an environment from a template.

Step 2 – Configure the Skytap AIX VM as a NIM client

  1. Expand the AIX hard disk size by 5 GB.

    For instructions about extending an AIX hard disk, see Adding or extending a virtual disk.

  2. Change the hostname of the Skytap AIX VM to aix72tl2sp2.

    For instructions about changing the VM hostname, see Editing a VM hostname or primary IP address.

  3. From the command line, type chvg -g rootvg.
  4. Make sure bootps and tfptd are uncommented in /etc/inetd.conf.
  5. Change the permissions for tftpd with the command: chmod 555 /usr/sbin/tftpd.
  6. Add the AIX VM to the NIM Master.
    1. From the command line, type smit niminit.
    2. Enter the following values (and leave the rest as default):

      • Machine Name (to identify the client on the NIM master): aix72tl2sp2.
      • Primary Network Install Interface: en0
      • Host Name of Network Install Master: nimmaster.example.com
      • Communication Protocol used by client: shell

Step 3 – Check resources on the local NIM Master

  1. From the command line, type lsnim. You should see the client listed as type machines.

    Optional: From the command line, type lsnim -l {resource name}. This should list the details for the client. cstate should be ready for a NIM operation.

Step 3 – Create a mksysb image from the client

On the NIM master:

  1. Make sure that /etc/hosts on both the NIM master and the client include the IP address and fully qualified domain name for both the NIM master and the client.

    For example:

     10.0.0.1     nimmaster.example.com
     10.0.0.2     aix72tl2sp2.example.com
     10.0.0.3     aix71tl5sp2.example.com
    
  2. From the command line, type smit nim.
  3. Select Perform NIM Administration Tasks > Manage Resources > Define a Resource.

    If you have multiple clients, you’ll be prompted to select a NIM client.

  4. Select mksysb.
  5. Provide values for the following:

    • Resource name: aix72tl2sp2mksysb1
    • Server of Resource: master
    • Location of Resource: /export/mksysbimages/aix72tl2sp2mksysb
    • CREATE system backup image?: yes
    • NIM CLIENT to backup: [use F4 to select the appropriate client machine]
    • EXPAND /tmp if needed?: yes
    • Create MAP files?: yes
  6. From the command line, type lsnim to verify that the resource has been added.
  7. From the command line, type nim -o define -t spot -a server=master -a source=aix72tl2sp2mksysb1 -a location=/export/spot/aix72tl2sp2spot aix72tl2sp2spot 1.
  8. From the command line, type lsnim to verify that the resource has been added.

To create an AIX VM in Skytap from the msksysb image, see Restoring a mksysb image to an AIX VM.