lvupdateInit Command

Purpose

Manages the list of entries to be added to the /etc/inittab file that is used to start the surrogate partition during the AIX® Live Update operation.

Syntax

To add an entry to the /etc/inittab file in the surrogate partition, use the following syntax:
lvupdateInit -a [-i Identifier] { [ Identifier ] : [ RunLevel ] : [ Action ] : [ Command ] }
To list the entries to be added to the /etc/inittab file in the surrogate partition, use the following syntax:
lvupdateInit -l
To remove an entry from the list to be added to the /etc/inittab file in the surrogate partition, use the following syntax:
lvupdateInit -r -i Identifier

Description

The Live Update operation creates a customized root volume group (rootvg) to start the surrogate partition and prepare it for the Live Update operation. When the surrogate partition is started, it runs commands in a customized /etc/inittab file and other scripts like /etc/rc.tcpip. The /etc/inittab file is customized to exclude the services that are moved from the original partition during the mobility phase.

Some services that are running on the original partition might choose not to be check-pointed and keep running on the original partition. In such cases, this command can be used to add that service to the /etc/inittab file for the surrogate partition so that it is restarted during the Live Update operation. The /etc/liveupdate/lvup_inittab file contains a list of command entries to be added to the customized /etc/inittab file.

Parameters

Item Description
Identifier A 14-character parameter that uniquely identifies an object. The Identifier must be unique. If the Identifier is not unique, the command is unsuccessful.
RunLevel A 20-character parameter that defines the run levels in which the Identifier parameter can be processed. Each process started by the init command can be assigned with one or more run levels in which it can be started.
Action A 20-character parameter that informs the init command how to process the Command parameter that you specify. Refer to the mkitab command for a list of valid actions that are recognized by the init command.
Command A 1024-character field that specifies the shell command to be run.
Attention: To avoid possible corruption of system files, the stdin, stdout, and stderr files must be specified in the Command parameter with redirection, or they must be explicitly opened by the program being run by the command line.

Flags

Item Description
-a Adds an entry to the /etc/liveupdate/lvup_inittab file.
-i Identifier Specifies an identifier for the new entry.
-r Identifier Removes an entry from the /etc/liveupdate/lvup_inittab file.
-l List the entries in the /etc/liveupdate/lvup_inittab file.

Examples

  1. To add an entry to the /etc/inittab file that is used to start the Live Update operation in the surrogate partition, enter the following command:
    # lvupdateInit -a -i myserver  myserver:2:once:/opt/myapp/start_my_server
  2. To remove an entry from the /etc/inittab file of the surrogate partition, enter the following command:
    # lvupdateInit -r -i myserver
  3. To list the entries to be incorporated into the /etc/inittab file of the surrogate partition, enter the following command:
    # lvupdateInit -l