HP StorageWorks Storage Mirroring Scripting Guide (T2558-96327, April 2009)

4 - 1
Establishing a
Connection
After you have created a replication set, you can establish a connection by connecting the replication
set to a target.
1. If you do not know which replication set you will be connecting to the target machine, the
repset list command will display the available replication sets for that source.
2. Connect the replication set to the target by using the connect command.
NOTE: As noted in the Scripting Guide Introduction on page 1-1, this guide does not explain
Storage Mirroring features and functions, only the scripting aspects of Storage Mirroring.
For details on the different features and functions, see the Storage Mirroring User’s
Guide.
Command REPSET LIST
Description Lists all replication set names for the currently selected source
Syntax
REPSET LIST
Command CONNECT
Description Establishes a connection between a replication set and a target machine
Syntax
CONNECT <repset> TO <target> MAP EXACT
| MAP BASE <
target_path>
| MAP <
source_path> TO <target_path> [,...]
[MIRROR | NOMIRROR] [, REPLICATE | NOREPLICATE]
[, MONITOR | NOMONITOR] [, ORPHANS | NOORPHANS]
[, COMPRESSION <
level>] [CLEARRESTOREREQUIRED]
[ROUTE=<
target_IP>]
Options
repset—Name of the replication set
target—Name of the target, an IP address on the target, or a virtual IP
address
MAP EXACT—Specifies that the replication set data will be sent to the
same logical volume on the target (c:\data and d:\files is copied to
c:\data and d:\files, respectively)
MAP BASE target_path—Substitute a complete path, including the
volume, for target_path and the data will be replicated to
target_path\SrcVolName on the target machine