lt_patch

lt_patch — the LightDB patch tool

Synopsis

lt_patch init [-i patchid]

lt_patch make

lt_patch install [-D ltdata] [-l lthome]

lt_patch remove [-D ltdata] [-l lthome] [-f] -i patchid

lt_patch list [-l lthome] [-i patchid]

Description

lt_patch help ensure your LightDB software stays current and secure. it enables the application and rollback of patches to database on a selected LightDB home (LTHOME).

lt_patch parses patch configuration and performs the patching operations without user intervention.It can:

  • Perform kinds of checks.

  • Apply the patch.

  • Rollback the patch.

Options

-l
--lthome

Specifies the file system location of the LightDB software. If this option is omitted, the environment variable LTHOME is used.

-D
--ltdata

Specifies the file system location of the LightDB instance. If this option is omitted, the environment variable LTDATA is used.

-i
--patch-id

Specifies the unique id of one patch.

-f
--force

Ignore errors while executing uninstall shell script.

-V
--version

Print the lt_patch version and exit.

-?
--help

Show help about lt_patch command line arguments, and exit.

Overview of the Patch Process

Obtaining the patches you need: the first step is to determine what patches you need. Care about follow items of one patch:

  • Name: patch-1.0-8085

  • Apply Version: 13.8-22.4

  • Apply CPU: x86_64

  • Apply OS: kylinV10sp1

Applying the Patch to the Desired Targets (LTHOME).

Note

Before performing any patch task, always read the patch README file for any special patching instructions.

Usage

Apply one patch: uncompress your obtained patch package and cd into the patch directory, then run follow command:

$ lt_patch install -l /home/lightdb/stage/lightdb-x

Rollback one patch:

$ lt_patch remove -l /home/lightdb/stage/lightdb-x -i patch-1.0-8085

Query patch information (list all patches information):

$ lt_patch list -l /home/lightdb/stage/lightdb-x

Query patch information (list one patch information):

$ lt_patch list -l /home/lightdb/stage/lightdb-x patch-1.0-8085

Note

"lt_patch init" and "lt_patch make" is for internal developers only.