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.

The 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

  • An SM does not have to be running using the archive to add a storage group to it.

  • By default, when no storage groups have been added, only the UNPARTITIONED storage group is available.

  • You can use the nuocmd add storage-group command to add a storage group to an archive with a running SM or one that does not have a running SM.

  • For more information, see show archives and add storage-group


To view the available archives, run the nuocmd show archives command. For example:

nuocmd show archives --db-name tpsgtest
[1] 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
[2] 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 tpsgtest database.