opascpall (8) - Linux Manuals
NAME
opascpall
(Linux) Copies files or directories from the current system to multiple hosts in the fabric. When copying large directory trees, use the -t option to improve performance. This option tars and compresses the tree, transfers the resulting compressed tarball to each node, and untars it on each node.
Use this tool for copying data files, operating system files, or applications to all the hosts (or a subset of hosts) within the fabric.
NOTE: This tool can only copy from this system to a group of systems in the cluster. To copy from hosts in the cluster to this host, use opauploadall.
user@ style syntax cannot be used when specifying filenames.
Syntax
opascpall [-p] [-r] [-f hostfile] [-h 'hosts'] [-u user] source_file ... dest_file opascpall -t [-p] [-f hostfile] [-h 'hosts'] [-u user] [ source_dir[ dest_dir]]Options
- --help
- Produces full help text.
- -p
- Performs copy in parallel on all hosts.
- -r
- Performs recursive copy of directories.
- -t
-
Performs optimized recursive copy of directories using tar. dest_dir is optional. If dest_dir is not specified, it defaults to the current directory name. If both source_dir and dest_dir are omitted, they both default to the current directory name.
- -h hosts
- List of hosts to copy to.
- -f hostfile
- File with hosts in cluster. Default is /etc/sysconfig/opa/hosts file.
- -u user
- User to perform copy to. Default is current user code.
source_file - Name of files to copy from this system, relative to the current directory. Multiple files may be listed.
source_dir - Name of directory to copy from this system, relative to the current directory.
dest_file or dest_dir - Name of the file or directory on the destination system to copy to, relative to the home directory of the specified user. An absolute path name may be specified.
Example
# copy a single fileopascpall MPI-PMB /root/MPI-PMB
# efficiently copy an entire directory tree
opascpall -t -p /usr/lib/opa-ff/src/mpi_apps /usr/lib/opa-ff/src/mpi_apps
# copy a group of files
opascpall a b c /root/tools/
# copy to an explitly specified set of hosts
opascpall -h 'arwen elrond' a b c /root/tools
HOSTS='arwen elrond' opascpall a b c /root/tools
Environment Variables
The following environment variables are also used by this command:
- HOSTS
-
List of hosts; used if -h option not supplied.
- HOSTS_FILE
-
File containing list of hosts; used in absence of -f and -h.
- FF_MAX_PARALLEL
-
When the -p option is used, maximum concurrent operations are performed.