Add a Storage Group to an Archive
A storage group is added to an archive using the
nuocmd add storage-group command, which associates the storage group with a specific archive.
A new storage group is created if the storage group specified in the command does not exist in the database.
When a storage group is added to an archive, the storage group and other storage groups associated with that archive will be in service by the Storage Manager (SM) started with that archive.
nuocmd add storage-group command takes the following arguments:
The name of the database
The name of the storage group
The ID of the archive
To view the available archives, run the
nuocmd show archives command. For example:
nuocmd show archives --db-name tpsgtest
 server0 : /var/opt/production-archives/tpsgtest @ tpsgtest [journal_path = ] [snapshot_archive_path = ] RUNNING [SM] p18/localhost:48008 [start_id = 4] [server_id = server0] [pid = 25183] [node_id = 1] [last_ack = 2.26] MONITORED:RUNNING  server0 : /var/opt/production-archives/tpsgtestsm2 @ tpsgtest [journal_path = ] [snapshot_archive_path = ] PROVISIONED
To add a storage group to an archive, run the
nuocmd add storage-group command. For example:
nuocmd add storage-group --db-name tpsgtest --sg-name SG0 --archive-id 1
nuocmd add storage-group --db-name tpsgtest --sg-name SG1 --archive-id 2
In this example, the storage group
SG0 is added to the archive with archive-id
1 and storage group
SG1 is added to archive with archive-id
2 in the