HP StorageWorks Storage Mirroring for Linux Getting Started (T2558-96077, February 2008)

20
9. After you have added all of the rules, save the replication set by using the repset save command.
10. Connect the repset to the target by using the connect command.
Your Storage Mirroring connection is now established. To configure advanced options for a connection, see the Storage
Mirroring User’s Guide.
Command REPSET SAVE
Description Saves all replication set rules for the currently selected source
Syntax
REPSET SAVE
Command CONNECT
Description Establishes a connection between a replication set and a target machine
Syntax
CONNECT <repset> TO <target_machine> MAP EXACT | BASE <target_path> |<source_path> TO
<target_path> [,...]
[MIRROR | NOMIRROR] [, REPLICATE | NOREPLICATE]
[, MON
ITOR | NOMONITOR][, ORPHANS | NOORPHANS]
Options
! repset—Name of the replication set
! target_machine—Name of the target machine, an IP address on the target machine, or a virtual IP
address
! MAP EXACT—Specifies that the replication set data will be sent to the same logical volume on the
target
! MAP BASE—The replication set data will be sent to the locations specified below:
! connect repset to target—If mappings are not specified with the command, map base
will be used by default. The data will be replicated to
/SrcName/RepsetName/SrcVolName
on the target machine
! connect repset to target 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
! connect repset to target map base source_path TO target_path—Custom location
that specifies each directory on the source and where that data will be copied to on the target
machine
! ...—Indicates that the source_path TO target_path option can be used more than once for each
source directory in the replication set
! MIRROR—Automatically initiates a mirror when the connection is established
! NOMIRROR—Does not initiate a mirror when the connection is established
! REPLICATE—Automatically initiates replication when the connection is established
! NOREPLICATE—Does not initiate replication when the connection is established
! MONITOR—Specifies that the target is going to monitor the specified source machine for failover.
The source machine must have already been defined as a monitor machine.
! NOMONITOR—Specifies that the target is not going to monitor the source machine for failover
! ORPHANS—Removes orphan files on the target
! NOORPHANS—Does not remove orphan files on the target
Examples
! connect “Customer Data” to jersey map exact
! connect marketing to jersey map base /home/username
Notes ! The default settings for this command are mirror, replicate, nomonitor, and noorphans.
! Options that contain non-alphanumeric characters must be enclosed in quotation marks.