tpm purge-thl
Version availability
Available in 7.0.0 and later.
For convenience, a wrapper script tungsten_purge_thl is also available. In
all the examples below, simply replace tpm purge-thl with tungsten_purge_thl
or vice versa.
Usage
tpm purge-thl [args]
| Option | Description | Version |
|---|---|---|
--autoAliases: -A | Automatically execute any needed commands that it is possible to handle. Edits to the configuration are not possible at this time. | |
--debugAliases: -d | Debug mode. | |
--helpAliases: -h | ||
--i-am-sure | Bypass the "Are You Sure?"" prompt when using --auto. | |
--infoAliases: -i | ||
--pathAliases: -p | Use to supply full path to replicator executables used for thl and trepctl if not in default location. Default: Taken from $CONTINUENT_ROOT | |
--quietAliases: -q | ||
--testAliases: -t | ||
--thl | Use to supply full path to replicator executables used for thl if not in default location. Ignores --path if supplied.Default: Taken from $CONTINUENT_ROOT | |
--trepctl | Use to supply full path to replicator executables used for trepctl if not in default location. Ignores --path if supplied.Default: Taken from $CONTINUENT_ROOT | |
--verboseAliases: -v | Verbose Output. |
The tpm purge-thl command is designed to assist with identifying the safe removal of THL based on the following rules:
- Gather the last applied seqno from all Replica nodes and take the lowest one
- Find the current THL file which contains that seqno, then locate the previous one
- Constructs a
thl purgecommand to remove thl thru the last seqno in the prev file
A replicator service name name may be optionally specified as the last argument, for example:
shell> tpm purge-thl -A alpha
The default behavior is to display the needed commands for the admin to execute manually.