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 |
---|---|
|
Specifies the name for the repository. This is the name of the directory that will be created under the parent directory specified by |
|
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 For |
|
Indicates how grid instances access the repository. Supported options are
Note: If you will later use |
|
For repositories accessed through 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 throughscp
, 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 userepositoryAttach
to access it from other grids.