Timeline to run the DLPAR scripts

The AIX® Live Update notifications are run on both original and surrogate partitions.

The order of execution of the phases is as follows:

Original node Surrogate node
LVUP_CHECK Priority 1
If error occurs,
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
This script is invoked regardless of phase run.
 
...  
LVUP_CHECK Priority 10
If error occurs,
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
DR_CHECK; Return code (RC) is checked.
If error occurs,
DR_POST_ERROR
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
Alternate disk install Boot the surrogate node
  DR_CHECK; RC is checked.
If error occurs,
DR_POST_ERROR
Terminate Live Update operation
  LVUP_CHECK Priority 10
If error occurs,
DR_POST_ERROR
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
  ...
  LVUP_CHECK Priority 1
If error occurs,
DR_POST_ERROR
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
If error occurs on the surrogate node,
DR_POST_ERROR
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
LVUP_PRE (applications) Priority 1
If error occurs,
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
...  
LVUP_PRE (applications) Priority 10
If error occurs,
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
DR_PRE (applications); RC is not checked.

This DR_PRE script is run for the processes that are being migrated.

 
Mirror volume group  
  DR_PRE (applications); RC is not checked.

This DR_PRE script is run for the running base processes.

  LVUP_PRE (application) Priority 10

This DR_PRE script is not run for the base process, but it is available for the migrated processes.

If error occurs,
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
  ...
  LVUP_PRE (application) Priority 1
If error occurs,
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
If error occurs on the surrogate node,
DR_POST_ERROR
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
Applications are frozen, network is blocked  
LVUP_PRE (Kernel) Priority 1
If error occurs,
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
...  
LVUP_PRE (Kernel) Priority 10
If error occurs,
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
DR_PRE (Kernel); RC is checked.
If error occurs,
DR_POST_ERROR
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
The DR_POST_ERROR script is run once for both the kernel and application DR_PRE scripts.
 
  If error occurs on the original node,
DR_POST_ERROR
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
The DR_POST_ERROR script is run once for both the kernel and application DR_PRE scripts.
Split volume group  
  Import volume group
  DR_PRE (Kernel); RC is checked.
If error occurs,
DR_POST_ERROR
  LVUP_PRE (Kernel) Priority 10
If error occurs,
DR_POST_ERROR
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
  ...
  LVUP_PRE (Kernel) Priority 1
If error occurs,
DR_POST_ERROR
LVUP_ERROR Priority 1
...
LVUP_ERROR Priority 10
Terminate Live Update operation
If error occurs on the surrogate node,
DR_POST_ERROR
LVUP_ERROR Priority 10
...
LVUP_ERROR Priority 1
Terminate Live Update operation
 
  Migrated applications are unfrozen, network is unblocked
  Point of no return
DR_POST script is run; RC is not checked.

(For cleanup of files if the Live Update migration is not acceptable to the customer.)

DR_POST script is run; RC is not checked.

(For migrated applications.)

LVUP_POST (application) Priority 1 LVUP_POST (application) Priority 10
...
...
LVUP_POST (application) Priority 10 LVUP_POST (application) Priority 1
  Original LPAR deleted, Surrogate UUID updated
  LVUP_COMPLETE (application) Priority 10
  ...
  LVUP_COMPLETE (application) Priority 1