Restoring 128 Port Adapter Configuration After mksysb


Contents

About this document
What to restore
Back up current ODM
Restore ODM from mksysb or Sysback
Extract missing information

About this document

A mksysb is designed to archive the root volume group on a system and restore the rootvg back to the same system with the same hardware configuration. Because the restoration process is specific as to how the Object Data Manager (ODM) is recreated, sometimes devices connected through port adapters are NOT restored correctly, even though the mksysb was restored back on to 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 to its previous state.

This information is valid for AIX versions 3.2.5 through 4.x.

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

WARNING: Do NOT use this information 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:

CXMA - MCA 128-port adapter
CXIA - ISA 128-port adapters
CXPA - PCI 128-adapter
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 or Sysback

To restore ODM from mksysb in AIX 3.2 and AIX 4.x, 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.x:

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

When restoring the ODM from Sysback, the following commands assume that the backup was made to a local tape drive (rmt0). If the tape drive is on a remote host, include the flag -h <hostname> within the command for both versions of Sysback.

If any assistance is required in restoring the data, please contact the Systape group.

To find the Sysback version, enter lslpp -l | grep sysback.

Version 3 Sysback

If you created a full system backup with the sysback command, use the following command to restore the /etc/objrepos directory to the /tmp directory, otherwise, contact the Systape Group for more assistance.

	sysrestore -f /dev/rmt0 -d -v rootvg -D /tmp /etc/objrepos

Version 4 Sysback

	sysrestore -f /dev/rmt0 -tD -D /tmp /etc/objrepos

The preceding commands will place a copy of the /etc/objrepos directory in the /tmp directory, as a result, the full path will be /tmp/etc/objrepos.

NOTE: Ensure that space exists between -D /tmp and /etc/objrepos.


Extract missing information

  1. Extract ONLY the ODM information that requires correction. To do this, execute the following commands:
    	export ODMDIR=/tmp/etc/objrepos 
    	rm /tmp/odm.out 
    
    1. Serial adapter information

      Execute the following commands:

          	odmget -q "name like cxia*" CuDv >>odm.out 
          	odmget -q "name like cxia*" CuAt >>odm.out
          	odmget -q "name like cxpa*" CuDv >>odm.out
          	odmget -q "name like cxpa*" CuAt >>odm.out
          	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 cxia*"
              odmdelete -o CuDv -q   "name like cxia*"
              odmdelete -o CuAt -q   "name like cxpa*"
              odmdelete -o CuDv -q   "name like cxpa*"
              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
    



[ Doc Ref: 90605212514786     Publish Date: Dec. 03, 2001]