Restoring 128 Port Adapter Configuration After mksysb


Contents

About This Document
What to Restore
Back Up Current ODM
Restore ODM from mksysb
Extract Missing Information

About This Document

A mksysb is designed to archive the root volume group on a given system, and to be able to restore the rootvg back to the same system with the same hardware configuration. Because the restore process is so specific on how the object database (ODM) is recreated, sometimes devices connected through port adapters are NOT restored correctly, even though the mksysb is restored back onto the exact same system from which it was made.

This document explains how to correct this situation and restore the ODM port adapter, tty, and printer information back to its previous state. This information is valid for AIX 3.2.5 through 4.2.0.

WARNING: When cloning a mksysb from one system to another, port adapter, tty, and printer device configuration information needs to be recreated if the adapter cards are different in any way, including being positioned in different slots.

WARNING: This information can NOT be used to migrate the configuration from one level of AIX to another. For example, do NOT use this information when migrating from AIX 3.2.5 to 4.1.


What to Restore

Determine what type of information needs to be restored. For example, is information needed for the serial adapter information, ttys, printers, or all of the above?

If serial adapter information is needed, select the adapter used by the system. This label will be referenced for use later in this document. The choices are:

RS - MCA native 8-port or 16-port adapter
CXMA - MCA 128-port adapter
CXIA - ISA 8-port, and 128-port adapters
LION - 64-port adapter

NOTE: For the examples in this document, CXMA will be used. Be sure to use the appropriate label for the adapter.


Back Up Current ODM

Before changing the ODM, archive the existing configuration by executing the following instructions:

    cd /etc/objrepos 
    tar -cvf /tmp/objrepos.old

Restore ODM from mksysb

To restore ODM from mksysb in AIX 3.2 and AIX 4.1, execute the following command:

For AIX 3.2:

             cd /tmp 
             tctl -f /dev/rmt0.1 fsf 3 
             tar -xvf /dev/rmt0 ./etc/objrepos 

For AIX 4.1:

             cd /tmp 
             restore -s4 -xdvf /dev/rmt0.1 ./etc/objrepos 

Extract Missing Information

  1. Extract ONLY the ODM information that requires correction by executing the following commands:
        export ODMDIR=/tmp/etc/objrepos 
        rm /tmp/odm.out 
    
    1. Serial adapter information

      Execute the following commands:

          odmget -q "name like cxma*" CuDv >>odm.out 
          odmget -q "name like cxma*" CuAt >>odm.out 
      
    2. RAN information

      Execute the following commands:

          odmget -q "name like sa*"   CuAt >>odm.out 
          odmget -q "name like sa*"   CuDv >>odm.out 
      
    3. TTY information

      Execute the following commands:

          odmget -q "name like tty*"  CuAt >>odm.out 
          odmget -q "name like tty*"  CuDv >>odm.out 
      
    4. Printer information

      Execute the following commands:

          odmget -q "name like lp*"   CuAt >>odm.out 
          odmget -q "name like lp*"   CuDv >>odm.out 
      
  2. Delete ONLY the ODM information that requires correction by executing the following commands:
        export ODMDIR=/etc/objrepos 
    
    1. Serial adapter information

      Execute the following commands:

          odmdelete -o CuAt -q   "name like cxma*" 
          odmdelete -o CuDv -q   "name like cxma*" 
      
    2. RAN information

      Execute the following commands:

          odmdelete -o CuAt -q   "name like sa*" 
          odmdelete -o CuDv -q   "name like sa*" 
      
    3. TTY information

      Execute the following commands:

          odmdelete -o CuDv -q   "name like tty*" 
          odmdelete -o CuAt -q   "name like tty*" 
          odmdelete -o CuDvDr -q "value3 like tty*" 
      
    4. Printer information

      Execute the following commands:

          odmdelete -o CuAt -q   "name like lp*" 
          odmdelete -o CuDv -q   "name like lp*" 
          odmdelete -o CuDvDr -q "value3 like lp*" 
      
  3. Add the saved information to the new ODM.
        odmadd odm.out 
        savebase 
    
  4. Reboot the system. Upon reboot, missing/dev and /etc/inittab entries will be created.
        sync;sync;sync 
        shutdown -Fr 
    

Restoring 128 Port Adapter Configuration After mksysb: mksysb.128port.fix.325-42.bak ITEM: FAX
Dated: 99/05/21~00:00 Category: bak
This HTML file was generated 99/06/24~12:42:10
Comments or suggestions?
Contact us