Attach a Repository (repositoryAttach)

The repositoryAttach command attaches an existing repository to the grid, making it available for use.

ttGridAdmin repositoryAttach name
                             -path path
                             -method mount|scp
                             [-address internalAddress]

Options

The repositoryAttach command has the options:

Option Description

name

Name of the repository to attach.

-path path

Fully qualified path to the parent directory where the repository is located.

For -method mount, this is the full NFS path, such as /net/mysys2/repositories.

For -method scp, this is the full path, such as /repositories, on the system indicated by -address.

-method mount|scp

Indicates how grid instances access the repository. Supported options are mount or scp.

  • mount: The repository is accessed through an NFS mount on each grid host.

  • scp: The repository is accessed by each grid host using scp through passwordless SSH.

Note: The -method setting for repositoryAttach must match the setting that was used for repositoryCreate when the repository was created.

-address internalAddress

For repositories accessed through scp, this option is required and indicates the DNS name or IP address of the system where the repository is located.

Also see Address Formats.

Examples

This example attaches a repository /repositories/repo1 that is located on the system mysys2, using -method scp.

% ttGridAdmin repositoryAttach repo1 -path /repositories -method scp 
-address mysys2.example.com
Repository repo1 attached

Note:

This command is typically used to attach a repository that was created from another grid, so that you can restore a backup of a database from one grid into another grid. It can also be used to reattach a repository to the grid where it was created, if it was detached.