The tpm option
purge-thl
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
construct a thl purge command 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.
The tungsten_purge_thl can be used as a read-only option to generate the commands required to purge manually.
Table 9.19. tpm purge-thl Options
Option | Description |
---|---|
--auto , -A | Automatically execute any needed commands that it is possible to handle. Edits to the configuration are not possible at this time. |
--debug , -d | Enable additional debug output. |
--help , -h | Show help text |
--i-am-sure | Bypass the "Are You Sure?" prompt when using --auto. |
--info , -i | |
--path , -p | Use to supply full path to replicator executables used for thl and trepctl if not in default location. |
--quiet , -q | |
--test , -t | |
--thl | Use to supply full path to replicator executables used for thl if not in default location. Ignores --path if supplied |
-d , --debug | Use to supply full path to replicator executables used for trepctl if not in default location. Ignores --path if supplied |
--verbose , -v |