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.
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.
Before changing the ODM, archive the existing configuration by executing the following instructions:
cd /etc/objrepos tar -cvf /tmp/objrepos.old
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
export ODMDIR=/tmp/etc/objrepos rm /tmp/odm.out
Execute the following commands:
odmget -q "name like cxma*" CuDv >>odm.out odmget -q "name like cxma*" CuAt >>odm.out
Execute the following commands:
odmget -q "name like sa*" CuAt >>odm.out odmget -q "name like sa*" CuDv >>odm.out
Execute the following commands:
odmget -q "name like tty*" CuAt >>odm.out odmget -q "name like tty*" CuDv >>odm.out
Execute the following commands:
odmget -q "name like lp*" CuAt >>odm.out odmget -q "name like lp*" CuDv >>odm.out
export ODMDIR=/etc/objrepos
Execute the following commands:
odmdelete -o CuAt -q "name like cxma*" odmdelete -o CuDv -q "name like cxma*"
Execute the following commands:
odmdelete -o CuAt -q "name like sa*" odmdelete -o CuDv -q "name like sa*"
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*"
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*"
odmadd odm.out savebase
sync;sync;sync shutdown -Fr