This section describes the Missing Options Resolution Procedure performed by Diagnostics when a change in the system configuration has been detected. This procedure can be run to clean up the system configuration database, or to determine why previously detected resources are no longer found by the AIX operating system.
Each time the system boots from an AIX installed hardfile, the device
configuration database (CuDv) that is stored on the hardfile from
the previous IPL is compared against the resources detected on the current IPL.
Detectable resources that were found
on the previous IPL but not the current IPL are marked as MISSING. Devices
that were found on the current IPL, but not present in the previous IPL are
marked as NEW.
The customized device entry CuDv
chgstatus field is set to the changed status for each resource. These
changed status values can be found in /usr/include/sys/cfgdb.h file.
When booting a system in normal mode, a message is written to the console if
any devices have been detected as MISSING. This message states:
"A device that was previously detected could not be found.
Run diag -a to update the system configuration."
The diag -a command can then be run to process the missing options resolution
procedure.
When booting a system in online service mode, the missing options resolution procedure is run automatically if any missing devices were detected.
The following sections describe how the Diagnostic Controller presents information to the Diagnostic Applications that get invoked during Missing Options.
Missing Options Resolution procedure can be run in online concurrent mode by using the following command:
% diag -a // Runs in Customer Mode OR % diag -a -A // Runs in Advanced Mode
The first screen seen by the user is the MISSING RESOURCE Menu, 801020.
The following TMInput is an example of the input given to the Diagnostic Application when running the diag -a command.
TMInput: exenv = 4 // Concurrent Environment advanced = 0 // Customer Mode system = 0 // Option Checkout dmode = 4 // System Verification date = "-s START -e NOW"// START = NOW - 24 hours. loopmode = 1 // Not in Loop Mode lcount = 0 lerrors = 0 console = 1 // Console Available parent = "parent0" // Parent of resource to test parentloc = "AB-CD" // Parent's Location Code dname = "resource0" // Name of resource to test dnameloc = "AB-CD" // Resource's Location Code child1 = "child0" // Missing Child of Resource state1 = 3 // State of Child is MISSING childloc1 = "AB-CD" // Child's Location Code child2 = "" state2 = 0 childloc2 = ""
The following TMInput is an example of the input given to the Diagnostic Application when running the diag -a -A command.
TMInput: exenv = 4 // Concurrent Environment advanced = 1 // Advanced Mode system = 0 // Option Checkout dmode = 4 // System Verification date = "-s START -e NOW"// START = NOW - 24 hours. loopmode = 1 // Not in Loop Mode lcount = 0 lerrors = 0 console = 1 // Console Available parent = "parent0" // Parent of resource to test parentloc = "AB-CD" // Parent's Location Code dname = "resource0" // Name of resource to test dnameloc = "AB-CD" // Resource's Location Code child1 = "child0" // Missing Child of Resource state1 = 3 // State of Child is MISSING childloc1 = "AB-CD" // Child's Location Code child2 = "" state2 = 0 childloc2 = ""
Missing Options Resolution procedure is run automatically in online service mode when "Diagnostics or Advanced Diagnostics" selection is made from the FUNCTION SELECTION Menu.
When booting a system in online service mode, the OPERATING INSTRUCTIONS Menu and the FUNCTION SELECTION Menu are displayed in phase 1 by the service mode boot script. Once a selection is made, the selection is stored in /etc/lpp/diagnostics/data/fastdiag file, and phase 2 of the boot process commences.
The Diagnostic Application that gets called due to a missing child resource, after selecting 'Diagnostic Routines' from the FUNCTION SELECTION menu, gets a TMInput shown below:
TMInput: exenv = 2 // Standalone Environment advanced = 0 // Customer Mode system = 0 // Option Checkout dmode = 4 // System Verification date = "-s START -e NOW"// START = NOW - 24 hours. loopmode = 1 // Not in Loop Mode lcount = 0 lerrors = 0 console = 1 // Console Available parent = "parent0" // Parent of resource to test parentloc = "AB-CD" // Parent's Location Code dname = "resource0" // Name of resource to test dnameloc = "AB-CD" // Resource's Location Code child1 = "child0" // Missing Child of Resource state1 = 3 // State of Child is MISSING childloc1 = "AB-CD" // Child's Location Code child2 = "" state2 = 0 childloc2 = ""
The Diagnostic Application that gets called due to a missing child resource, after selecting 'Advanced Diagnostic Routines' from the FUNCTION SELECTION menu, gets a TMInput shown below:
TMInput: exenv = 2 // Standalone Environment advanced = 1 // Advanced Mode system = 0 // Option Checkout dmode = 4 // System Verification date = "-s START -e NOW"// START = NOW - 24 hours. loopmode = 1 // Not in Loop Mode lcount = 0 lerrors = 0 console = 1 // Console Available parent = "parent0" // Parent of resource to test parentloc = "AB-CD" // Parent's Location Code dname = "resource0" // Name of resource to test dnameloc = "AB-CD" // Resource's Location Code child1 = "child0" // Missing Child of Resource state1 = 3 // State of Child is MISSING childloc1 = "AB-CD" // Child's Location Code child2 = "" state2 = 0 childloc2 = ""
Missing Options Resolution procedure is not run during Standalone Diagnostics. The reason for this is that there is no previous configuration database for the Diagnostic Controller to compare against with the new devices detected at boot time.
Therefore, only the NEW RESOURCES menu is seen during Standalone Diagnostics. This menu presents a list of all the resources found in the system at the time the Standalone Diagnostics were booted.
The user is given a list of choices to make during this time. If the system contains ISA adapters, then these adapters will not appear in the list. ISA adapters are not detectable, therefore an option is presented to the user to help in the configuration of these adapters.
The following describes the steps performed by the Diagnostic Controller when running the Missing Options Procedure.
If "The resource has not been moved, removed or turned off" was chosen:
If "The resource has been turned off and should remain in the system configuration" was chosen:
Once all the missing devices have been processed through one of the selections above, then perform the following: