HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

7 - 3
Controlling mirroring
You can stop, start, pause, or resume a mirror.
Mirror Stop
Mirror Start
Command MIRROR STOP
Description Stops a paused mirror
Syntax
MIRROR STOP <con_id | *>
Options con_id—Connection ID assigned to the source/target connection
*—Specifies all connection IDs
Examples
mirror stop 1
mirror stop *
Command MIRROR START
Description Initiates the mirror process
Syntax
MIRROR START <con_id> [CLEAN
| DIFFERENT [,NEWER] ,CHECKSUM | NOCHECKSUM]
[ORPHANS |NOORPHANS] [CALC
ULATE | NOCALCULATE]
[CLEARRESTOREREQUIRED]
Options
con_id—Connection ID assigned to the source/target connection
CLEAN—Deletes all files in the specified target path prior to mirroring
DIFFERENT—Mirrors only those files that are different based on the file date, time, and/or size
NEWER—Mirrors only those files that are newer on the source than on the target
CHECKSUM—Mirrors only those blocks that are different based on block checksum comparisons
NOCHECKSUM—Does not perform a checksum comparison when mirroring files
ORPHANS—Moves or deletes orphan files on the target
NOORPHANS—Does not move or delete orphan files on the target
CALCULATE—Calculate the size of the replication set prior to mirroring
NOCALCULATE—Does not calculate the size of the replication set prior to mirroring
CLEARRESTOREREQUIRED—Clears the restore required flag and initiates the mirror
Examples
mirror start 1 different, newer
mirror start 2 different, checksum orphans calculate
Notes The default settings for this command are noorphans and calculate.
The Cleaner option must be enabled in order for the clean option to function. See Server
Settings
on page 12-1 for more information on using this Storage Mirroring program setting.