Create a Repository (repositoryCreate)

The repositoryCreate command creates a new repository that will be available for the grid.

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

Options

The repositoryCreate command has the options:

Option Description

name

Specifies the name for the repository. This is the name of the directory that will be created under the parent directory specified by -path.

-path path

Fully qualified path to the parent directory where the repository is to be created. This directory must already exist on the system(s) where the repository will be located and be readable and writable by the instance administrator.

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: If you will later use repositoryAttach for the repository being created, the -method setting for repositoryAttach must match the setting you are using for repositoryCreate.

-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 created.

Also see Address Formats.

Examples

This example creates a repository /repositories/repo1 on the system mysys2, using scp. The instance administrator must have write permission for /repositories.

% ttGridAdmin repositoryCreate repo1 -path /repositories -method scp 
-address mysys2.example.com
Repository repo1 created

This example creates the repository using mount.

% ttGridAdmin repositoryCreate repo1 -path /repositories -method mount
Repository repo1 created

The repository.json file has information about the repository.

Notes

  • The repository directory is created synchronously and has permissions of 700. For repositories accessed through NFS mount, the repository directory is path/name. For repositories access through scp, the repository directory is @address:path/name.

  • The repository is available for use as soon as it is created.

  • Once a repository is created with repositoryCreate, you can use repositoryAttach to access it from other grids.