lvupdateRegKE Command

Purpose

The lvupdateRegKE command is used to register a command to be used to load a kernel extension on the surrogate logical partition (LPAR) during the AIX® Live Update operation.

Syntax

lvupdateRegKE  [ -a kext_path -c command | -r kext_path | -l ]

Description

The Live Update operation includes an opportunity to load specific kernel extensions before the workload resumes execution on the updated surrogate LPAR. This command manages the list of kernel extensions to be loaded on the surrogate partition when it is started. This command can be used to add a kernel extension to the list along with loading and configuring the kernel extension. It also provides options to remove a kernel extension from the list or to display the list of kernel extensions. The list is placed in the /etc/liveupdate/lvup_preload_KE file. To be loaded at the start of the surrogate LPAR, a kernel extension must be included in that file, and must be loaded on the original LPAR when the Live Update operation starts.
Note: The command that is to be registered with the lvupdateRegKE command must be present in one of the following file systems: /, /var, /usr, /opt, /tmp. Also, the kernel extension to be loaded by this command must be present in one of these file systems.

Parameters

Item Description
kext_path A string of up to 1024 characters that specifies the full path of a kernel extension.
command A string of up to 1024 characters that specifies a command to be used to load a kernel extension on the surrogate LPAR before the applications are resumed.

Flags

Item Description
-a kext_path Adds a kernel extension to the list of kernel extensions to be loaded during the Live Update operation.
Note: If the -a flag is specified, the -c flag is required.
-c command Loads the kernel extension. Command arguments can be included by double-quoting the string.
-l Lists the set of kernel extensions that are loaded during a Live Update operation and the commands that are specified to load them.
-r kext_path Removes a kernel extension from the list.

Examples

  1. To list all the commands that are registered to load kernel extensions during the Live Update operation, enter the following command:
    # lvupdateRegKE -l
  2. To register a command to load a kernel extension on the surrogate LPAR during the Live Update operation, enter the following command:
    # lvupdateRegKE -a /usr/lib/drivers/mykext -c "/opt/myapp/bin/load_kext -x -y"
  3. To remove a command that was previously registered to load a kernel extension during the Live Update operation, enter the following command:
    # lvupdateRegKE -r /usr/lib/drivers/mykext