Skip to main content
Common Reference

tpm copy

Applies to: Tungsten Clustering for MySQL
Version availability

Available in 7.0.3 and later.

tpm copy automates the act of copying the shared SSL keys generated during installation to other cluster nodes as part of the post-installation workflow.

Usage
tpm copy [args]

This command should only be run on ONE node, and should only be needed once, right after initial installation has completed on all nodes, and before the Tungsten processes have been started.

note

This tool should only be needed for INI-based installations, and requires SSH access between the nodes to function properly.

See the table below for a list of valid arguments:

OptionDescriptionVersion
--all
Aliases: -a
Copy appropriate files in both the generated and share source directories to the list of nodes.7.1.0
--debug
Aliases: -d
Debug mode.
--doiniCopy the /etc/tungsten/tungsten.ini configuration file to the list of nodes.7.1.0
--dryrun
Aliases: -n
Do not execute the copy commands, display only.7.1.0
--exampleShow the manual steps taken by tpm copy --init to copy the certificate files to other nodes.7.2.1
--extra
Aliases: -x
Display the copy command executed.7.1.0
--gen
Aliases: -g
Sync all files in the /opt/continuent/generated directory to the list of nodes.7.1.0
--help
Aliases: -h
--hostsSpecify a comma-separated list of node names as seen in tpm reverse (default: all nodes in clusters as shown below)
--i-am-sureConfirm you want the files copied and that the installs are done on all nodes.
--info
Aliases: -i
--installCopy needed files ([jpt]* .[jpt]*) in the /opt/continuent/share directory to the list of nodes (The same as running --share)8.0.0
--listList the default nodes shown below (all valid nodes in all clusters)
--local
Aliases: -
Copies the running passwords.store in share/ to the generated/ directory on the local node only, used only with --passwords (i.e. cp /opt/continuent/share/passwords.store /opt/continuent/generated/passwords.store) To also sync the generated/ directory to the node list, specify --gen as well.7.1.0
--long
Aliases: -l
Show the command output when run.7.1.0
--passwordsCopy just the /opt/continuent/share/passwords.store file to the list of nodes (included when using --share)7.1.0
--quiet
Aliases: -q
--shareCopy needed files ([jpt]* .[jpt]*) in the /opt/continuent/share directory to the list of nodes7.1.0
--timeoutSpecify the ssh/scp Timeout as an integer in seconds (default: 3)
-vVerbose Output.

With no options, prompt to continue, then, by default, copy the needed security files from /opt/continuent/share/ to all nodes on all clusters, skipping the localhost. To bypass the interactive pause, you may specify --i-am-sure to confirm that all nodes are done installing, and that none of the Tungsten processes have been started yet.

This tool uses OS commands ssh, scp and uptime to function.

The scp and ssh commands will be called with two options:

  • -o StrictHostKeyChecking=no
  • -o ConnectTimeout=[timeout in seconds, default 3]

The files specified by:

  • /opt/continuent/share/[jpt]*
  • /opt/continuent/share/.[jpt]* will be copied from the local host to the same directory on all hosts in the target list, excluding the local node.

The default security key location path (/opt/continuent/share/) may be changed (although NOT recommended) by using the tpm option security-directory