Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and
12.212, Commercial Computer Soft ware, Computer Software Documentation, and Technical Data for Commercial Items are licensed
to the U.S. Government under vendor’s standard commercial license.
The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth
in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting
an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
Microsoft, Windows, Windows XP, and Windows NT are U.S. registered trademarks of Microsoft Corporation.
Oracle is a registered US trademark of Oracle Corporation, Redwood City, California.
Linux is a U.S. registered trademark of Linus Torvalds.
This document is a quick reference for job commands and job templates that are provided with HP
StorageWorks Replication Solutions Manager (the replication manager). For additional information
regarding replication manager concepts and troubleshooting, see the HP StorageWorks ReplicationSolutions Manager online help and HP StorageWorks Replication Solutions Manager user guide.
Intended audience
This reference is intended for HP StorageWorks Replication Solutions Manager operators and
administrato
Related documentation
To find the following documents, browse to the Manuals page of the HP Business Support Center web site:
ttp://www.hp.com/support/manuals. In the Storage section, click Storage soft ware and then select
h
the product.
rs.
Replication
• HP StorageWorks Replication Solutions Manager online h elp
• HP StorageW
• HP StorageWorks Replication Solutions Manager job command reference
• HP StorageWorks Replication Solutions Manager command line user interface reference
• HP Storage
• HP StorageWorks Replication Solutions Manager installation guide
Other
• HP StorageWorks EVA replication software consolidated release notes
• HP StorageWorks EVA software compatibility reference
• HP StorageWorks Comma nd View EVA license key installation instructions
• HP StorageWorks Business Copy EVA administrator guide
• H P StorageWorks Continuous Access EVA administrator guide
Solutions Manager
orks Replication Solutions Manager user guide
Works Replication Solutions Manager administrator guide
HP StorageWorks Replication Solutions Manager 4 .0.1
9
Page 10
Document conven
Table 1 Document conventions
tions and symbols
Convention
Blue text: Table 1
Blue, underlined text: http://www.hp.com
Bold text
Italic textText emphasis
Monospace text
Monospa
Monospace, bold text
ce, italic text
Element
Cross-reference links and e-mail addresses
website addresses
• Keys th at are p
• Text typed in
• GUI elements
menu and lis
• File and directory names
• System output
• Code
• Commands, their arguments, and argument values
• Code variables
• Command variables
Emphasized monospace text
ressed
to a GUI element, such as a box
that are clicked or selected, such as
t items, buttons, tabs, and check boxes
CAUTION:
Indicates that failure to follow directions could result in damage to equipment or data.
IMPORTANT:
Provides clarifying information or specific instructions.
NOTE:
Provides additional information.
TIP:
Provides helpful hints and shortcuts.
HP technical support
For worldwide technical support information, see the HP support website:
ttp://www.hp.com/support
h
Before contacting HP, collect the following information:
• Product model names and numbers
• Technical support registration number (if applicable)
• Product serial numbers
• Error messages
• Operating system t ype and revision level
10
About this reference
Page 11
• Detailed questions
Subscription s
HP recommends t
h
ttp://www.hp
After register
firmware updat
ervice
hat you register your product at the Subscriber’s Choice for Business website:
.com/go/e-updates
ing, you will receive e-mail notification of product enhancements, new driver versions,
es, and other product resources.
HP websites
For additional information, see the following HP websites:
•h
ttp://www.hp.com
•http://www.hp.com/go/storage
•http://www.hp.com/service_locator
•http://www.hp.com/support/manuals
•http://www.hp.com/support/downloads
Documentation feedback
HP welcomes
To make comments and suggestions about product documentation, please send a message to
storagedocsFeedback@hp.com. All submissions become the property of HP.
your feedback.
Product feedback
To make comments and suggestions about HP Replication Solutions Manager, HP Business Copy EVA, or
HP Continuous Access EVA, please send a message to EVAReplication@hp.com.
HP StorageWorks Replication Solutions Manager 4 .0.1
11
Page 12
12
About this reference
Page 13
1Jobconcepts,templatesand
commands
Job concepts
Job language overview
The job language provides a simple and structured way to automate replication and other storage related
tasks. A typical job consists of commands, assignments (variables), branching instructions, labels,
comments and exits. Jobs with launch commands often include transactions. See also imported jobs.
When a job is running or has been run, it is called a job instance. Job instances are displayed in the
Jobs Run History tab.
The format of a job-instance name is the job name, plus a sequence number. For example, the job named
daily_backup when run two times would have job instance names of daily_backup-1 and daily_backup-2.
14
Job concepts, templates and commands
Page 15
Aborted job instances
In some cases, a job instance may not stop when it is aborted. This can happen if the instance is hung
while executing a command to a low level device.
When the replic
ation manager server is stopped and restarted, all aborted job instances are cancelled.
Arguments
Most job commands include arguments. When a command is initially entered in a job, default values
may appear in command arguments. In some cases, there are no defaults and you must specify a value.
Required arguments are denoted by % characters. In the following example,%stor_unc_name% indicates
that a value must be entered for the UNC name of the storage volume.
The Editing Task window allows you to create assignments (variables) that refer to specific resources or
that reference the results of a command.
In the following example, a lengthy UNC-formatted name is stored in a variable on line 5. When the job
is run, a snapclone is created by the command on line 10, which refers to the variable.
In the next example, the results of a command are saved in a variable when the job is run. On line 7, the
UNC name of the snapshot is stored in the variable $Rep1. Then on line 13 the variable is referenced
to delete the snapshot.
HP StorageWorks Replication Solutions Manager 4 .0.1
15
Page 16
Usage
Assignments are:
• Local to each job and cannot be referenced across jobs.
• Notcasesensitive.
Format
• The first two characters must be a dollar sign ($) followed by an alpha character. No special
• Upper and lower c ase, alpha and numeric are allowed.
• Underscores
Branches
Branches and labels are typically used to hand le errors and to create jobs that can be looped repeatedly.
In line 9 of the following example, the command branches to label E1 on line 30 if there is an error
when the command is executed.
• Default. If the command fails, abort the job at this task (line).
• None.Us
• Onerror Goto. If the command fails, go to the label. Execute the command at the label.
• Onerror Pauseat. If the command fails, go to the label and pause the job. When the job is
• Onsucc
Commands
When you include a command in a job, the command’s arguments and default values are displayed in
the job editor window. Argument names that appear with red % markers indicate that specificvalues
arerequired. Seejobarguments. For example:
Snapc
You must edit the command and select or enter values for any required arguments. After editing, the
command displays the argument value as normal text, in quotes.
Some commands return a result that can be assigned to a variable. The variable can then be referenced
inasucceedingstepinthejob. Seealsojobassignments.
The following table lists command result values and formats. See also resource names and UNC formats.
Job command
//
AddAllOracleTablespacesToRepository
AddDrGroupMember
AddOracleAr
AddOracleTablespacesToRepository
AddReplicaToReplicaRepository
AddReplicasToReplicaRepository
CombineLists
ConvertStorageVolumeIntoContainerCombined list of resources (UNC)
ConvertStorageVolumesInManagedSetIntoContainers
chiveLogFilesToRepository
entbranch ^
Command result value (format)
-
-
-
-
-
-
-
Combined list of resources (UNC)
List of container names (UNC)
ConvertStorageVolumesIntoContainers
ConvertStorageVolumesIntoContainersUsingRepositoryList of container names (UNC)
CreateContainer
CreateContainerForHostDiskDevice
CreateContainersForHostVolume
CreateContainersForHostVolumeGroup
CreateDiskDevice
CreateDrGroup
CreateDrGroupFromHostVolume
CreateHostVolumeHost volume name (UNC)
CreateHostVolumeDiscreteHost volume name (UNC)
CreateH
CreateHostVolumeGroupHost volume group name (UNC)
CreateHostVolumesUsingRepositoryList of host volume names (UNC)
CreateO
ostVolumeFromDiskDevices
racleRepository
List of container names (UNC)
Container name (UNC)
Managed set name of virtual disk
containers (simple)
Managed set name of virtual disk
containers (simple)
Managed set name of virtual disk
containers (simple)
-
DR group name (UNC)
DR group name (UNC)
Host vol
Oracle r
ume name (UNC)
epository name (UNC)
CreateReplicaRepositoryReplica repository name (simple)
CreateRestoredHostVolumesUsingRepositoryList of host volume names (UNC)
StorageVolume
Create
evolumename(UNC)
Storag
HP StorageWorks Replication Solutions Manager 4 .0.1
17
Page 18
Job command
DeleteContaine
DeleteDrGroup
DeleteDrGroupMember
DeleteHostVolume
DeleteHostVolumeGroup
DeleteHostVolumesUsingRepository
DeleteOracl
DeleteReplicaRepository
DeleteStorageVolume
DeleteStorageVolumes
DeleteStorageVolumesInManagedSet
DeleteStorageVolumesUsingRepository
DetachMirr
DiscoverDiskDevice
DiscoverDiskDevices
DiscoverDiskDevicesForDrGroup
DiscoveryRefresh (obsolete)
Exit
Export
FailoverDrGroup
FailoverDrGroups
FlushCac
ForceFullCopyDrGroup
r
eRepository
orclones
he
Command result value (format)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
FractureHostDiskDeviceMirrorcloneName of the fractured mirrorclone (UNC)
HP StorageWorks Replication Solutions Manager 4 .0.1
21
Page 22
Comments
The comment command can be used to add comments to a job. You can also comment-out other
commands. See also job comment command.
E-mail from jobs
A job (each job instance) can send e-mail messages.
Job instances can send e-mail messages that you write and they can also send predefined job status
notification messages. See SendEmail and SetNotificationPolicy, respectively.
Exits
Exit command
failure. HP recommends the following best practices for using exit commands:
• Include at least one successful exit command in a job.
• Include a su
termination.
• If you create branches in a job to handle failures, conclude each with a failure exit command.
See job exit
Implicit jobs
When responding to certain requests, the replication manager may create and immediately run a job.
Such jobs are called implicit jobs. Implicit jobs are not saved and cannot be edited.
s identify termination points in a job and can help provide confirmation of success or
ccessful exit command for each branch of the job that can result in successful
command.
When an implicit job runs, it appears in the Monitor Job window and the Events pane. See also job
implicit job startup.
Implicit
job startup
When clicking OK or Finish to perform an action on a resource, the window or wizard immediately closes
and the Monitor Job window appears. This is normal operation. To p erform your requested action, the
replicat
It is not n
continues to run.
Imported jobs
Replication manager jobs that have been imported from legacy HP Business Copy 2.X jobs include
special comments to help resolve potential command conversion issues. For example:
ion manager creates and starts an implicit job.
ecessary to leave the Monitor Job window open. If you close the window, the implicit job
22
Job concepts, templates and commands
Page 23
import note >
legacy job start >
Line
Task
1
// This job was im
2
// which included the following operations:
// [line 1] SNAP UNIT Array2 Cats\ACTIVE $BCV1 SNAPCLONE_HSV
indicate the job was created by importing a legacy job.
• Line 3 shows (as a comment) the first legacy job command that was encountered. All legacy
commands are displayed in this manner.
• Line 12 ind
icates that all legacy job commands have been listed.
• Line 15 indicates the start of the replication manager template that has been applied to create an
equivalent job.
• Line 20 ind
icatesarequiredargument. Seejob arguments.
Job commands list
The following commands can be included in jobs. The replication type indicates if the command is
specifically for use with the local or remote replication features of a storage system. Storage family
indicates the storage system family that the command supports. Some commands cannot be used unless
a host agent is running on the target host.
Job commandCommand
//general
AddAllO
AddDrGroupMember >
AddOracleArchiveLogFilesToRepositoryOracle
AddOracleTablespacesToRepositoryOracle
AddReplicaToReplicaRepositoryhost volumelocal
AddReplicasToReplicaRepositoryhost volumelocal
Combi
racleTablespacesToRepository
neLists
Replication
category
Oracle
DR group
al
gener
HP StorageWorks Replication Solutions Manager 4 .0.1
HP StorageWorks Replication Solutions Manager 4 .0.1
~yes
29
Page 30
Job templates l
Job templates provide frameworks and guidelines for creating typical jobs.
ist
Template name (alphabetical order)Replication
Remarks
type
Empty template
Fracture host
Instant restore storage volumes to other storage volumeslocal
Mount existing storage volumes
Perform cascaded replication
Perform planned failover
Perform unplanned failover
Replicate (
Replicate host disk devices, mount to a hostlocalrequires host agent
Replicate host volume group, mount components to a hostlocalrequires host agent
Replicate host volume group, mount entire group to a hostlocalrequires host agent
Replicate host volumeslocalrequires host agent
Replicate host volumes via pre-allocated replication, mount to a hostlocalrequires host agent
Replicat
Replicate host volume, mount components to a hostlocalrequires host agent
volumes, mount to a host
via snapclone) a host volume multiple times, mount to a host
e host volumes, mount to a h ost
-
localrequires host
-
remote and
local
remote
remote
localrequires ho
localrequires
requires host agent
requires host agent
requires host agent
agent
st agent
host agent
Replicate host volumes, mount to a host, then to a different hostlocalrequires host agent
Replicat
Replicate storage volumeslocal
Replicate storage volumes via pre-allocated replicationlocal
Replica
Replicate tablespaces via pre-allocated replication, mount to a hostlocal
Replicate tablespaces, mount to a hostlocal
Restore Oracle tablespaceslocal
Setup Continuous Access
Throttle replication I/O
Unmount and delete existing host volumes
Unmount existing host volumes
* Template can be modified for use without a host agent.
e raw storage volumes, mount (raw) to a host
te tablespaces
localrequires
local
remote
remote
-
-
requires host
agent, Oracle
requires host
agent, Oracle
requires host
agent, Oracle
requi
agent
requires host agent
requires host agent
host agent
res host
,Oracle
30
Job concepts, templates and commands
Page 31
Labels
Labels are used in conjunction with branches. See job branches.
Usage
Labels are:
• Local to each job and cannot be referenced across jobs.
• N ot case sensitive.
Format
• Must be at least two characters and end with a colon.
• Upper and lowe
• Underscores are allowed; spaces are not allowed.
Pause and continue
Pause
A pause actio
state.
• You can use a GUI action, a pause command within the job, or a CLUI command.
• When using a
• When using the GUI or CLUI, the job instance t ypically completes the current step, then halts before
starting the next step. However, if the step is an interrupt-enabled wait command, the job instance
immediately halts. Interrupt-enabled wait commands include: Wait, WaitForJob and WaitUntil.
n or command halts execution of a running job instance and places the job in a paused
r case, alpha and numeric are allowed.
pause command within a job, execution is halted on the pause step.
Continue
A continue action or command resumes execution of a job instance that is paused,orwaiting.See
job status and states.
• You can use a GUI action or CLUI command.
• When used for a waiting job instance, the wait is ended and execution continues at the next step.
• When used for a paused job instance, execution typically continues at the next step.
However, if the job instance was paused on an interrupt-enabled wait command, the wait
condition is checked before continuing. If the wait condition has been detected, then the next
step is executed. Otherwise, the job instance waits for the condition to be detected before
starting the next step.
For example, i f a job command specifiesa10-minutewaitandthecontinueoccursafter20
minutes, the next step would be immediately executed. If the continue occurs after 5 minutes, the
job instance would wait 5 minutes before starting the next step.
Resource names and UNC formats
Resources in a SAN are identified in several ways, including UNC format. UNC (Universal or Uniform
Naming Convention) identifies a resource in terms of its hierarchical location in a network.
See the following for name and UNC formats: DR groups, enabled hosts, host volumes, Oracle,
esystems,andvirtual disks (storage volumes)
storag
Resource names in job commands
When you initially enter a command in a job, the command’s resource arguments are displayed
as %variable% names, for example:
HP StorageWorks Replication Solutions Manager 4 .0.1
Name formats and examples for resource types follow.
DR groups
Name format (UNC)
\\array name\path\DR group name
Enabled hosts
The job editor and command validation accept these formats.
aspecific resource from an Editing Task menu, the resource names are presented in a
other format, as appropriate for the resource. If you enter a resource name from the
Example
\\ArrayA2\DrGrpPets
Identifies the DR group named DrGrpPets on the storage
array named ArrayA2
Name format (other)
Computer network name
Fully qualified network name
IP address
Host volumes
Applies to standard host volumes, volume groups, logical volumes, and host volume components such as
partitions and slices.
Name format (UNC)OS specificexample
\\host name\path\host volume name
Example
HostA6
HostA6.SiteA.corp
88.15.42.
Each example identifies an enabled host using an
accepted format
AIX
HP-UX
Linux
OpenVMS
Solaris
Tru64 UNIX
Windows\\HostA2\E:\pets\cats
101
\\HostA2\/home/cats
\\HostA2\/users/cats
\\HostA2\/var/cats
\\HostA2\CATS
\\HostA2\/usr/cats
\\HostA2\/users/cats
32
Job concepts, templates and commands
For each OS, identifies the path and file named Cats
on the enabled host named HostA2
\\HostA2\Cats_db
IdentifiestheOracledatabasenamedCats_db on the
enabled host named HostA2
\\HostA2\Catalog 20051218.024153
Identifies the repository named Catalog
20051218.024153 on the enabled host named
HostA2.
Example
ArrayA2
Identifies the storage array named ArrayA2
Example
\\ArrayA2\Cats
Identifies the storage volume named Cats on the storage
array named ArrayA2.
Simultaneous job instances
There are limits for the number of job instances that can be running simultaneously. Job instances that are
paused or waiting are counted as running instances. See job status and states.
Maximum running job instances
Total
Per specific enabled host
AIX
HP-UX
Linux1
OpenVMS
Solaris
Tru64 U
Windows
NIX8
Any number of job instances can
be started. Additional instances
8
are queued and run as others are
completed.
8
The replication manager does not
actively limit the number of job
8
instances per specific enabled host.
However, HP does not support more
than the maximums shown.
1
8
4
HP StorageWorks Replication Solutions Manager 4 .0.1
33
Page 34
Status and stat
Job status
The collection of all jobs may have one of the following status conditions. These status conditions appear
in the resources pane.
es
Job instance states
Ajobinstance
Icon
Job task states
An individual job task (command) within a job instance my have one of the following states. These states
appear in the Monitor Job window.
Icon
Status
When last checked, new information on jobs was not available.
When last checked, new information on jobs was available.
may have one of the following states. These states appear in the Run History tab.
Job instance stateJob instance description
AbortedAborted by a user while the job was running.
CompletedCompleted an
ExecutingRunning
FailedFinished but the exit status was failed.
PausedRunning, bu
Paused/Error
StalledRunning, but is halted due to an unexpected condition.
Waiting
Running, but is paused due to an error condition.
Running, bu
dtheexitstatuswassuccess.
t is paused by a job command or user action.
t is executing a planned wait.
Icon
none
Transactions
A transaction is a special block of lines that is executed as an entity. It consists of two parts: Do and
Always. Transactions are typically used with jobs that launch external activities.
In the following example, a launch command on line 9 suspends host I/O to a storage volume (virtual
disk). The transaction begins at line 10 and ends on line 16. The Do consists of lines 10 through 12,
and the Always consists of lines 13 through 16.
34
Task stateTask de scription
Not executedThe task (command) has not been executed or is a comment.
Completed
Failed
PausedThejobinstancewaspausedonthistask.
Paused/ErrorThe job instance was paused with an error on this task.
In this example, if the snapshot command in the Do portion of the transaction fails, for whatever reason,
the launch
transact
command in the Always portion is executed to resume host I/O to the storage volume. This
ion helps ensure that host I/O is not suspended indefinitely.
Validation
Validation refers to the use of resource validation commands in a job and subsequently performing
a validation of the job. Job validation, especially at run time, helps ensure that a job instance runs
successfully.
The values that you enter for arguments within job commands are checked in the job editor only for
compliance with basic syntax rules. See job command arguments.
Resource validation commands
There ar
or the status of the resource.
For example, ValidateStorageVolume checks for the availability of a specific virtual disk on a specific
storage
and if i
e several types of resource validation commands. Each t ype validates a different type of resource
system, while ValidateSnapcloneStorageVolume checks whether the storage volume is available
HP recommends placing resource validation commands together, in the first lines of a job. They can be
preceded by comments, but not by other types of commands.
Resource validation processing
Jobs can be run and validated for resources from the GUI or the CLUI. When done from the GUI, a new
job instance is displayed in the Monitor Job window. Validation processing generally occurs as follows.
• Normal. If the line is a validation command, it is executed. If successful, the next line is executed.
If not successful, the job is stopped with a failure status.
• Validate-only. If the line is a comment, SetVariable command or validation command, it is
executed. If successful, the next line is checked. If not successful, the job is stopped with a failure
status. When the first command is encountered that is not a SetVariable or validation command,
the job is stopped with a success status.
HP StorageWorks Replication Solutions Manager 4 .0.1
35
Page 36
• Skip validation. If the line is a validation command it is ignored.
In the validate-only and skip validation cases, job transactions and branches within validation commands
are ignored.
Resource validation processing in transactions
Special cases exist for validation commands in a transaction block:
• Validate-only
. The validation command in the transaction block is not executed.
• Skip validation. The validation command in the transaction block is executed.
See also job transactions.
Wait/nowait argument
Some job commands include a wait/nowait argument. Values are:
• Wait. When the job is run, issue the command, then wait until the command has been completed
before going to the next task in the job.
• Nowait. When the job is run, issue the command, then immediately go to the next task in the job.
In general, use wait when you need to ensure that all aspects of a command have been performed by
the command before any other task in the job is p erformed. Use nowait, when other tasks in the job
do not depend its c ompletion.
Wait/nowait for discovery
When you include a local replication command in a job, the wait/nowait for discovery argument requires
that you specify whether or not to wait until the new replica is discovered before executing the next step.
Choices are wait and nowait. For example, in the job below, the replication ma nag er waits at line 7 until
the new replica is discovered, before executing line 8.
With both choices, the replica is instantly created on the storage system. With the nowait choice, the
replication manager immediately executes the next job step, whether or not its database of resources has
been updated with the new replica i nformation. With the wait choice, the replication manager does not
execute the next step until its database of resources has been updated with the new replica information.
al use of nowait with wait-for-discovery commands
Typic
wait for discovery option is typically used in conjunction with the WaitForStorageVolumeDiscovery
The no
and Wa
itForStorageVolumesDiscovery commands to minimize the amount of time that a database is
suspended while being locally replicated.
For example, the general structure of a job to replicate a database might be:
1.A launch command suspends the database I/O.
2. A local replication command instantaneously creates a replica. The command uses the nowait
ion so that the next step (resuming I/O) is immediately executed.
opt
3. A la
unch command resumes the database I/O.
4. With I/O resumed, a WaitForStorageVolumeDiscovery command causes the job to wait until the
replica is detected by a forced discovery of storage volumes. The helps ensure that subsequent
steps that involve the new replica, for example a mount step, will b e valid.
36
Job concepts, templates and commands
Page 37
Job templates
Empty template
Template summary
Provides a series of comments that outline the basic structure of a job. After generating this template
you must add individual job commands to accomplish specifictasks.
Template options
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Example
This template was generated to create the basic structure of a job. No template option was selected.
Line
Task
1
// This is an empty job template.
2
//
3
//
4
//Waitforusertoinitiaterollback.
5
Pause ()
6
//
7
// Rollback.
8Exit(SUCCESS)
9
//
10
// Failure exit - no rollback needed.
11
E1: Exit (FAILURE)
Fracture host volumes, mount to a host (template)
Template summary
A. Fractures the mirrorclones of storage volumes that underlie a host volume on an enabled host.
B. Presents the fractured mirrorclones to a second enabled host (creates a new host volume).
C. Mounts the new host volume on the second enabled host.
D. Pauses the job.
E.After continuing, unmounts and d eletes the new host volume from the second enabled host;
unpresents the mirrorclones; then resynchronizes the mirrorclones with their sources.
Template options
• Number
• Sus pend source before replication . Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
of volumes to replicate. Adds commands for each host volume
HP StorageWorks Replication Solutions Manager 4 .0.1
37
Page 38
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Considerations
• Tru64 UNIX.Whe
source before
Example
This template was generated to fracture and mount one host volume on an enabled host. No other
template options were selected.
Line
1
2
n replicating AdvFS volumes that have he avy I/O, select the option Suspend
replication.
Task
// Fracture host volume and mounting it to a host.
Instant restore storage volumes to other storage volumes (template)
Template su
Template options
mmary
A. Disables (flushes)thewritecacheofthestoragevolume(virtualdisk)torestorefrom.
B. Converts the storage volume to restore to into a container.
C. Copies (restores) from the storage volume (by snapclone) to the container.
D. Re-enables the write cache of the source storage volume.
NOTE:
This temp
• Number of volumes. Adds commands for each storage volume to restore from.
• Sus pend source before replication . Adds launch commands for interacting with an enabled host,
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
late cannot be used with some older versions of controller software.
for example to suspend and resume host application I/O.
See SetNotificationPolicy.
Comments
• This template cannot be used with some older versions of controller software.
• HP recommends that you perform restores of host volumes using the GUI.
HP StorageWorks Replication Solutions Manager 4 .0.1
39
Page 40
Example
This template was generated to copy (restore) one storage volume. No other template options were
selected.
Line
Task
1
// Synchronize storage volume(s) to other storage volume(s)
2
//
3
// Assign some variables that will be used in this job.
A. Creates a host volume by presenting an existing* storage volume to an enabled host.
B. Mounts the host volume.
C. Pauses the job until continued by a user.
D. After continuing, unmounts and deletes the host volume.
*Astoragevolumethatiscreatedbymeansotherthanthisjob. Thevolumemustexistandbeinthe
replication manager database when this job is run.
torage volumes (template)
Template opt
• Number of volumes to replicate. Adds commands for each volume.
• Launch back
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
Comments
• This template cannot be used with HP-UX host volumes.
• When used with Tru64 UNIX hosts, this template supports only UFS file systems.
Example
This template was generated to mount one existing storage volume on a host. No other template
options
ions
up after replication. Adds a launch command for interacting with an enabled host,
for example
See SetNotificationPolicy.
were selected.
,tostartatapebackup.
HP StorageWorks Replication Solutions Manager 4 .0.1
41
Page 42
Line
Task
1
// Mount existin
2
//
3
// Assign some variables that will be used in this job.
Performs a three-site cascaded replication. Sites 1 and 2 have an existing remote replication relationship.
Remote replication between sites 2 a nd 3 is temporarily added and point in-time snapclone copies of the
storage v
A. Configure
B. Halts the job (waits) to ensure that data on the destination disks is identical to the source disks
C. When rea
D. Returns the existing DR group pair to its prior operational settings.
olumes at site 1 are remotely replicated to site 3.
s an existing DR group pair for synchronous replication with failsafe on unavailable
member data protection.
(DR grou
p normalization).
dy, continues the job and makes point-in-time snapclone copies of the storage volumes
at site 2 (which are identical to those at site1).
42
Job concepts, templates and commands
Page 43
E.Presents the snapclones to a host at site 2. (This is required by some controller software versions
before the snapclones can be members of a DR group.
F.Creates a new DR group pair that contains the snapclone copies at site 2.
G. Halts the job (waits) to ensure that the snapclones are remotely replicated to new storage
volumesatsite3.
H. Deletes the newly created DR group pair for sites 2 and 3, but retains the new storage volumes
at site 3.
When the job is completed, point-in-time copies of the storage volumes at site 1 exist at site 3.
Guidelines apply.
Template Options
• Num b er of virtual disks in DR group. Adds commands for each virtual disk.
• Suspend source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Include e-m
See SetNotificationPolicy.
Comments
• Guidelines apply.
Example
ail notification. Adds a command for e -ma il notification of the job instance status.
This template was generated to perform one iteration of the cascaded replication involving one virtual
disk. No ot
Line
1
2
3
4
5
6
7
8
9
10
11
12
13
14
her template options were selected.
Task
// Perform cascaded replication.
//
// This template assumes that you have three storage systems located at three different sites:
// Site 1: Contains a source DR group.
// Site 2: Contains a destination DR group.
// Site 3: After the script completes, it will contain a snapclone of the virtual disk.
//
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
45
Page 46
Perform planned
Template summary
Performs a failover of two sites in the case where the source site resources and link remain available.he
DR group pair contains one storage volume (virtual disk) at the source and destination sites.
A. Stops an application on the enabled host at site 1 (if necessary).
B. Unmountsthehostvolumeontheenabledhostatsite1.
C. Performs a failover from site 1 to site 2.
D. Discovers the host volume at site 2
E.Mounts host volume on the enabled host at site 2.
F.Starts applications on enabled host at site 2.
Guidelines apply.
Template options
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Comments
• Guidelines apply.
Example
failover (template)
This templ
contains one virtual disk. No template option was selected.
ate was generated to per form one iteration of a planned failover of a DR group pair that
46
Job concepts, templates and commands
Page 47
Line
Task
1
// Perform a plan
2
//
3
// Assign some variables that will be used in this job.
4
$site_2_array = SetVariable(%site_2_array%)
5
$site_1_host = SetVariable(%site_1_host%
6
$site_2_host = SetVariable(%site_2_host%)
7
$site_1_host
8
//
9
// Validate that resources are as expected.
10
ValidateHost ($site_1_host)
11
ValidateHost ($site_2_host)
12
ValidateStorageSystem ($site_2_array)
13
//
14
// Execute any necessary commands on the host to get the volumes ready to dismount,
15
// such as export volumegroups, stop the local application running on the volume(s), etc.
// Execute any necessary commands on the remote host to get the volumes ready to mount,
28
// such as import volumegroups, fsck volumes, etc.
29
// Mount devices on the remote host.
30
// Start the application on the remote host.
31P a us e( )
32
//
33Exit (SUCCESS
34
//
HP StorageWorks Replication Solutions Manager 4 .0.1
47
Page 48
Perform unplann
Template summary
Performs an unplanned failover of two sites in the case where the source site resources or link is no longer
available. The DR group pair contains one storage volume (virtual disk) at the source and destination sites.
A. Performs a failover from site 1 to site 2.
B. Discoversthehostvolumeonanenabledhostatsite2.
C. Pauses the job prior to mounting the host volume on the enabled host at site 2.
Template options
• Inc lude e-ma
See SetNotificationPolicy.
Comments
• Guidelines apply.
IMPORTANT:
During actual emergencies, HP recommends that you manually perform a failover by using the Failover
action in the GUI.
ed failover (template)
il notification. Adds a command for e-mail notification of the job instance status.
Example
This template was generated to perform one iteration of an unplanned failover of a DR group pair
containing one virtual disk.
48
Job concepts, templates and commands
Page 49
Line
Task
1
// Perform an unp
2
// Since it is ’unplanned’, we do not quiesce or unmount the source volumes.
3
//
4
// Assign some v
5
$site_2_array = SetVariable(%site_2_array%
6
$site_2_host = SetVariable(%site_2_host%)
7
//
8
// Validate that resources are as expected.
9
ValidateHost ($site_2_host)
10
ValidateStor
11
//
12
// Failover all DR groups to the remote site.
13
FailoverDrGroups ( %DR_group_name_list%, FALSE )
14
//
15
// Do a bus scan for the new volumes, make sure that new devices are seen by multipath driver.
16
// Repeat the Discover for each DR group.
17
// This assumes that the devices are presented on the site 2 host
// Execute any necessary commands on the remote host to get the volumes ready to mount,
21
// such as import volumegroups, fsck volumes, etc.
22
// Mount devi
23
// Start the application on the remote host.
Pause()
24
25
//
26Exit (SUCCESS)
27
//
Replicate (
via snapclone) a host volume multiple times, mount to a host (template)
Template summary
A. Replicate the same host volume more than once, via snapclone.
B. Between each snapclone, wait for the previous one to normalize.
C. Mount the replicas on a host.
D. Pause.
E.Delete the mounted host volumes.
F.Delete the storage volumes.
ces on the remote host.
HP StorageWorks Replication Solutions Manager 4 .0.1
49
Page 50
Template options
• Number of times to snapclone. Adds commands for each snapclone.
• Su s p end source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Considerati
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
Example
This template was generated to replicate a host volume one time No other template options were selected.
ons
source before replication.
50
Job concepts, templates and commands
Page 51
Line
Task
1
// Make multiple
2
// This requires normalization between each snapclone.
HP StorageWorks Replication Solutions Manager 4 .0.1
51
Page 52
Replicate host
disk devices, mount to a host (template)
Template summary
A. Locally replicates (copies) the storage volumes that underlie a raw host volume on an enabled
host.
B. Presents the underlying storage volume copies to a second enabled host (creates a new raw
host volume).
C. Pauses the job.
D. After continuing, removes the raw host volume from the second enabled host.
E.Unpresents and deletes the storage volume copies from the storage system
Template options
• N um ber of volumes to replicate. Adds commands for each volume.
• Su s p end source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Use snapc
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Example
This template was generated to replicate one raw host volume and duplicate it on another enabled
host. No other template options were selected.
lone instead of snapshot. Generates a template that uses snapclone replication.
52
Job concepts, templates and commands
Page 53
Line
Task
1
// Replicate hos
2
//
3
// Assign some variables that will be used in this job.
Replicate host volume group, mount components to a host (template)
Template summary
A. Locally
host.
B. Presents the underlying storage volume copies to a second enabled host (creates a new host
volume g
replicates (copies) the storage volumes that underlie a host volume group on an enabled
roup).
HP StorageWorks Replication Solutions Manager 4 .0.1
53
Page 54
C. By default, mounts the components (logical volumes) in the new host volume group on the
second enabled host.
Optionally, use raw disk I/O (do not mount the replicated components).
D. Pauses the job.
E.After continuing, unmounts the new volume group components from the second enabled host,
unpresents and deletes the storage volume copies from the storage system.
Template options
• Number of comp
for each component.
To use raw disk I/O, instead of mounting, enter zero (0). No mount or unmount commands
are added.
• Su s p end source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
• Use s napc lo
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Comments
• Tru64 UNIX. Replication is not supported when an AdvFS domain spans partitions.
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
source before replication.
onents to mount. Enter 1 or more. Adds mount and unmount commands
ne instead of snapshot. Generates a template that uses snapclone replication.
Example
This template was generated to locally replicate one host volume group and mount one of its components
(logical volume). No other template options were selected.
54
Job concepts, templates and commands
Page 55
Line
Task
1
// Replicate a ho
2
//
3
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
55
Page 56
Replicate host
volume group, mount entire group to a host (template)
Template summary
A. Locally replicates (copies) the storage volumes tha t underlie a host volume group on an enabled
host.
B. Presents the underlying storage volume copies to a second enabled host (creates a new host
volume group).
C. Mounts all of the components (logical volumes) in the new host volume group on the second
enabled host.
D. Pauses the job.
E.After continuing, unmounts the new volume group components from the second enabled host,
unpresents and deletes the storage volume copies from the storage system.
Template options
• Number of v
• Su s p end source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
• Use snap
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
olume groups to replicate. Adds commands for each component.
clone instead of snapshot. Generates a template that uses snapclone replication.
Comments
• Tru64 UNIX. Replication is not supported when an AdvFS domain spans partitions.
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
Example
This template was generated to locally replicate one host volume group and mount all of its components
(logical volumes). No other template options were selected.
source before replication.
56
Job concepts, templates and commands
Page 57
Line
Task
1
// Replicate hos
2
//
3
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
57
Page 58
Replicate host v
Template summary
A. Locally replicates (copies) the storage volumes that underlie a host volume on an enabled host.
B. Pauses the job.
C. After continuing, deletes the storage volume copies from the storage system.
Template Options
• N um ber of volumes to replicate. Adds commands for each volume.
• Su s p end source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Use s napc lo
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Considerations
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
source before replication.
Example
This template was generated to replicate one host volume. No other template options were selected.
olumes (template)
ne instead of snapshot. Generates a template that uses snapclone replication.
58
Job concepts, templates and commands
Page 59
Line
Task
1
// Replicate hos
2
//
3
// Assign some variables that will be used in this job.
Replicate host volumes, mount to a host (template)
Template summary
A. Locally replicates (copies) the storage volumes that underlie a host volume on an enabled host.
B. Presents the underlying storage volume copies to a second enabled host (creates a new host
volume).
C. Mounts the new host volume on the second enabled host.
D. Pauses the job.
E.After continuing, unmounts the new host volume from the second enabled host, unpresents and
deletes the storage volume copies from the storage system.
Templa
te options
• Number of volumes to replicate. Adds commands for each volume.
• Sus pen
for exa
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
d source b efore replication. Adds launch commands for interacting with an enabled host,
mple to suspend and resume host application I/O.
HP StorageWorks Replication Solutions Manager 4 .0.1
59
Page 60
• Use s napc lon e instead of snapshot. Generates a template that uses snapclone replication.
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Considerations
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
source before replication.
Example
This template was generated to replicate one host volume and mount it on an enabled host. No other
template options were selected.
60
Job concepts, templates and commands
Page 61
Line
Task
1
// Replicate hos
2
//
3
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
61
Page 62
Replicate host v
Template summary
Involves five enabled hosts, EH1 through EH5*.
A. Locally replicates (copies) the storage volumes that underlie a host volume on an EH1.
B. Presents the underlying storage volume copies to EH2 (creates a new host volume).
C. MountsthenewhostvolumeonEH2,launchesabackupprocessonEH3,andwaitsforthe
process to complete. After completion, unmounts and deletes the new host volume from EH2.
D. Mounts the new host volume on EH4, launches a backup process on EH5, and waits for the
process to complete. After completion, unmounts and deletes the new host volume from EH4.
E.Unpresents and deletes the storage volume copies from the storage system.
* EH1 though EH5 are labels in the summar y only. They are not variables in the template.
olumes, mount to a host, then to a different host (template)
Template op
• Number of volumes to replicate. Adds commands for each volume.
• Suspend sou
• Use snapclone instead of snapshot. Generates a template that uses snapclone replication.
• Include e-mail notification. Adds a comma nd for e-ma il notification of the job instance status.
Comments
• Linux. Do not use this template with Linux volume groups.
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
Example
This template was generated to replicate one host volume and mount it on two d ifferent enabled hosts.
No other
Line
1
2
3
tions
rce before replication. Adds launch commands for interacting with an enabled host,
for exampl
See SetNot
source before replication.
Task
// Replicate host volume(s), mount to a host, then to a different host.
//
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
63
Page 64
49Exit (SUCCESS
50
//
51
// Failure exit - no rollback needed.
52E 1: E xit (FAI LURE
Replicatehostvolumesviapreallocatedreplication, mount to a host (template)
Template summary
A. Disables (flushes)thewritecacheofthestoragevolumesthatunderlieahostvolumeonan
enabled host.
B. Locally replicates (copies) the storage volumes that underlie the host volume to containers.
C. Re-enablesthewritecacheofthesourcestoragevolumesthatunderliethehostvolume.
D. Waits for the container copies to become storage volume copies and be discovered.
E.Presents the underlying storage volume copies to a second enabled host (creates a new host
volume group).
F.Mounts the new host volume on the second enabled host.
G. Pauses the job.
H. After continuing, unmounts the new host volume from the second enabled host, unpresents and
deletes the storage volume copies from the storage system.
I.Converts the storage volume copies back into containers.
NOTE:
This template cannot be used with some older versions of controller software.
Template options
• Number of volumes to replicate. Adds commands for each volume.
• S uspend source before replication. Adds launch com mands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
• Use snapclone instead of snapshot. Generates a template that uses preallocated snapclone
replication.
• Include e-mail notification. Adds a comma nd for e-ma il notification of the job instance status.
See SetNotificationPolicy.
Comments
• This template cannot be used with some older versions of controller software.
• Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend
source before replication.
Example
This template was generated to replicate one host volume. No other template options were selected.
Line
Task
1
// Replicate host volume(s) via pre-allocated replication, and mount to a host.
2
//
64
Job concepts, templates and commands
Page 65
3
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
67
Page 68
Replicate raw st
Template summary
A. Locally replicates (copies) raw storage volumes.
B. Presents the storage volume copies to an enabled host (creates a raw host volume).
C. Pauses the job.
D. After continuing, removes the raw host volume from the enabled host.
E.Unpresents and deletes the storage volume copy from the storage system.
Template options
• Number of vo
• Use s napc lon e instead of snapshot. Generates a template that uses snapclone replication.
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNot
Example
This template was generated to locally replicate one storage volume. No other template options were
selected.
orage volumes mount (raw) to a host (template)
lumes to replicate. Adds commands for each volume.
ificationPolicy.
68
Job concepts, templates and commands
Page 69
Line
Task
1
// Replicate raw
2
//
3
// Assign some variables that will be used in this job.
age volumes via preallocated replication (template)
Template summary
A. Disables (flushes)thewritecacheofastoragevolume.
B. Locally replicates (copies) the storage volume to a container.
C. Re-enablesthewritecacheofthestoragevolume.
NOTE:
This template cannot be used with some older versions of controller software.
Template options
• Number of volumes to replicate. Adds commands for each volume.
• Suspend source before replication. Adds launch commands for interacting with an enabled host,
for example to suspend and resume host application I/O.
• Use snapclone instead of snapshot. Generates a template that uses preallocated snapclone
replication.
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Considerations
• Tru64 UNIX. When replicating virtual disks with AdvFS volumes that have heavy I/O, select
the option Suspend source before replication.
Example
This template was generated to replicate one storage volume. No other template options were selected.
HP StorageWorks Replication Solutions Manager 4 .0.1
71
Page 72
Line
Task
1
// Replicate sto
2
//
3
// Assign some variables that will be used in this job.
A. Create a repository that contains the desired database components.
B. Quiesce the Oracle database by putting it in ‘hot backup’ mode.
C. Replicate the tablespace(s).
D. Put the database back into normal operating mode.
E.Pause.
F.Delete the storage volume(s).
G. Delete the repository.
e tablespaces (template)
Template op
• Use s napclone instead of snapshot. Generates a template that uses s napclone replication.
• Include e-m
• Keep replicas. Generates a template that does not include a pause and rollback section for
Example
This template was generated to replicate Oracle tablespaces, with no template options selected.
Line
1
2
3
4
5
6
7
8
9
tions
ail notification. Adds a command for e -ma il notification of the job instance status.
Replicate Oracle tablespaces, mount to a host (template)
Template s
ummary
A. Create a repository that contains the desired database components.
B. Quiesce t
C. Replicate the tablespace(s).
D. Put the database back into normal operating mode.
E.Mount th
F.Pause.
G. Delete the mounted host volume(s).
H. Delete t
I.Delete the repository.
he Oracle database by putting it in ‘hot backup’ mode.
e host volume(s) on a host.
he storage volume(s).
74
Job concepts, templates and commands
Page 75
Template options
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
• Use s napclone instead of snapshot. Generates a template that uses s napclone replication.
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
• Keep replicas. Generates a template that does not include a pause and rollback section for
deleting the replicas.
Example
This template was generated to replicate Oracle tablespaces, with no template options selected.
Line
Task
1
// Replicate Oracle tablespace(s), and mount the volumes to a host.
2
//
3
// Assign some variables that will be used in this job.
Replicate Oracle tablespaces via preallocatted replication, mount to a host
(template)
Template summary
A. Create a r
B. Quiesce the Oracle database by putting it in ‘hot backup’ mode.
C. Flush the cache on the storage volumes used by the host volumes.
D. Replica
E.Restore the writeback cache on the storage volumes.
F.Put the database back into normal operating mode.
G. Mount t
H. Pause.
I.Delete the mounted host volume(s).
J.Conver
epository that contains the desired database components.
te the tablespace(s) into containers.
he host volume(s) on a host.
t the storage volumes ba ck into empty containers.
76
Job concepts, templates and commands
Page 77
K. Delete the repository.
NOTE:
This template cannot be used with some older versions of controller software.
Template options
• Launch backup after replication. Adds a launch command for interacting with an enabled host,
for example, to start a tape backup.
• Use s napclone instead of snapshot. Generates a template that uses s napclone replication.
• Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
• Keep replicas. Generates a template that does not include a pause and rollback section for
deleting the replicas.
Comments
• This template cannot be used with some older versions of controller software.
Example
This template was generated to replicate Oracle tablespaces, with no template options selected.
Line
Task
1
// Replicate Oracle tablespace(s) via pre-allocated replication, and mount the volumes to a host.
2
//
3
// Assign some variables that will be used in this job.
Establishes and configures a D R group pair and initiates remote replication b et ween two sites. The DR
group pair contains one storage volume (virtual disk) at the source and destination sites.
A. Creates a DR group pair that contains the source storage volume that is to be remotely
replicated. The source DR group is at site 1. The destination DR group is at site 2.
B. Configures the remote replication with failsafe on unavailable member data protection, I/O
mode, and the destination host I/O access mode.
C. Initiates (resumes) remote replication between the sites.
D. Presents the destination storage volume to an enabled host at site 2.
Guidelines apply.
Template options
• Inc lude
See SetNotificationPolicy.
e-mail notification. Adds a command for e-mail notification of the job instance status.
Comments
• Guidelines apply.
80
Job concepts, templates and commands
Page 81
Example
This template was generated to create one DR group pair.
Line
Task
1
// Setup Contin
2
//
3
// Assign some variables that will be used in this job.
HP StorageWorks Replication Solutions Manager 4 .0.1
81
Page 82
Throttle repli
cation I/O (remote replication template)
IMPORTANT:
Jobs generated by this template are intended to be run only in conjunction with a log merge or full-copy
events on a single storage system.
Template summary
Suspends remote replication in non-critical DR group pairs until critical DR group pairs have normalized
across the two sites. The DR groups must be source groups on a single storage system.
The terms critical and non-critical used in the template do not refer to the critical operational status. For
the purpose of us ing the template, you can consider any DR group to be critical or non-critical.
A. Suspends the remote replication of the non-critical DR group pairs.
B. Halts the job (waits) until the critical DR group pairs have normalized across the two sites.
C. After normalization is completed, resumes the remote replication in the non-critical D R group
pairs.
Template options
• Number of non-c ritical DR groups in the CA configuration. Adds commands for the non-critical
DR groups.
• Inc lude e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Example
This template was generated to perform one iteration of throttling I/O for source DR groups on one
storage system.
82
Job concepts, templates and commands
Page 83
Line
Task
1
// Throttle repl
2
// so that critical DR groups will have the best performance.
Adds a storage volume to a source DR group and a corresponding storage volume (a remote copy) to a
destination DR group.
In other words, this command establishes a remote copy relationship between storage volumes on the
source and destination storage arrays.
Syntax an
When init
UNC DR G roup Name (%drgroup_unc_name%). Select or enter the UNC name of the source DR group to
which the storage volume is to be added.
UNC Storage Volume Name (%storvol_unc_name%). Select or enter the UNC name of the source storage
volume to be added to the source DR group.
Destination Disk Group. Select or enter the UN C name of the disk group on the destination storage
system in which the destination storage volume (remote copy) is to be added. If omitted, a default is
applied when the job is run.
Destination Storage Volume Name. Enter the name for the destination storage volume (remote c opy). If
omitted, the replication manager applies a default when the job is run.
Destination RAID LeveI. Select the redundancy level (Vraid) for the remote copy. Choices are RAID0,
RAID1, RAID5, and same. The default value is same.
Exampl
es
Comments
• Associated validation command s. ValidateStorageSystem, ValidateStorageVolume
darguments
ially inserted into a job, the command syntax and default arguments are:
AddDrGroupMember ( %drgroup_unc_name%, %storvol_unc_name%, "", "", SAME )
AddDrGroupMember ( "\\ArrayA2\DrGrpPets", "\\ArrayA2\Cats", "\\ArrayB7\DskGrp3", "Cats",
SAME )
86
Job concepts, templates and commands
Page 87
• Ag ent and license prerequisites. Requires remote replication licenses on the source and
destination storage systems.
• Com ma nd result value. None. For a complete list, see command result values.
• OS specifics.None
• The maximum number of virtual disks per DR group is controller software dependent.
• See resource names and UNC formats.
AddOracleArchiveLogFilesToRepository
Adds applicable Oracle archived log files to a specific repository. The appropriate files are automatically
added by reference to the enabled host and database specified by the repository.
Syntax and arguments
When initially inserted into a job, the command syntax and default arguments are:
AddOracleA
UNC Oracle Repository Name (%oraclerepository_unc_name% ). Select or enter the UNC name of the
repository
UNC Oracle Repository Name (%oraclerepository_unc_name% ). Select or enter the UNC name of the
Oracle repository to which the tablespaces are to be added.
UNC Oracle Tablespaces N ames (%oracletablespace_unc_names% ). Select or enter the UNC names of
the Oracle tablespaces to be added to the repository.
itially inserted into a job, the command syntax and default arguments are:
Replica Repository Name (%replica_repository_name%). Select or enter the name of the replica
repository to which the storage volume replica is to be added.
UNC Storage Volume Name (%storvol_unc_name%). Select or enter the UNC name of the storage volume
replica th
Replica Repository Name (%replica_repository_name%). Select or enter the name of the replica
repository to which the storage volume replicas are to be added.
UNC Storage Volume Names (%storvol_unc_names%). Select or enter the UNC names of the storage
volume replicas to be added to the replica repository. See argument list. Or, select a variable used in a
prior step that represents the storage volumes.
Converts each storage volume that underlies an Oracle database to a container. The appropriate storage
volumes are automatically converted by reference to the enabled host and database specified by the
repositor
Syntax and arguments
y.
When initially inserted into a job, the command syntax and default arguments are:
UNC Oracle Repository Name (%oraclerepository_unc_name% ). Select or enter the UNC name of the
repository the enabled host and database whose underlying storage volumes are to be converted to
contain
• Ag ent and license prerequisites. Requires a host agent.
• Com ma nd result value. None. For a complete list, see command result values.
• OS specifics.None
• See resource names and UNC formats.
• This command may also cause other devices to appear on the host when its bus is scanned.
CreateDrGro
Creates a DR g
DR group.
up
Syntax and arguments
When initially inserted into a job, the command syntax and default arguments are:
CreateDrGr
0, FALSE )
DR Group Name (%drgroup_name%). Enter a name for the new source DR group.
UNC Storage Volume Name (%storvol_unc_name%). Select or enter the UNC name of a source storage
volume to b
Destinati
storage system on which the destination DR group will be created.
Destination Disk G roup. Select or enter the name of the disk group on the destination storage system
in which the destination storage volume (remote copy) will be created. If omitted, a default is applied
when the job is run.
Destinat
If you do
when the job is run.
Destination RAID Level. Select or enter the redundancy level for the remote copy. Choices are RAID0,
RAID1, R
Source Log Disk Group. Select or enter the name of the disk group in which to create the source storage
volume (virtual disk). If omitted, a default is applied when the job is run.
Destination Log Disk Group. Select or enter the name of the disk group in which to create the destination
storage volume (remote copy). If omitted, a default is applied when the job is run.
and result value. DR group nam e (simple). For a complete list, see command result values.
HP StorageWorks Replication Solutions Manager 4 .0.1
95
Page 96
• Guidelines apply.
• The maximum number of virtual disks per DR group and other properties are controller software
dependent.
• Values for the following properties can be specified in the CreateDrGroup command. These
properties can be changed later, in another job, by using the comma nds shown.
Default values
Property
Auto suspendFalse (disabled)False (disabled)SetDrGroupAutoSuspend
Maximum log disk size
Name (of DR gr
* The name of the source DR group is specifiedintheCreateDrGroupcommand.Bydefaultthenameforthe
destination DR group is the same as the source.
oup)
SourceDestination
0(nomax)0(nomax)
**
Job command
SetDrGroupMaxLogSize
SetDrGroupN
ame
• Values for the following properties cannot be specified in the CreateDrGroup command. These
properties can be changed in the same job, or in another job, by using the commands shown.
Default val
Property
Comment
Destination access mode
Failsafe mode
(failsafe on unavailable member)
Failsafe on link-down/power-upEnabledEnabled
HomeTrue
I/O mode (write mode)
SourceDestination
blankblank
None (no I/
DisabledDisabled
SynchronousSynchronousSetDrGroupIoMode
ues
O)
None (no I/
False
Job command
SetDrGroupComments
SetDrGroupDestinationAccess
O)
SetDrGroupFailsafe
SetDrGroupFailsafeOnLinkDow
nPowerUp
SetDrGro
upHome
Suspension modeResumedResumedSetDrGroupSuspend
• After a DR
group pair is created, you can a dd more virtual disks. See AddDrGroupMember.
• When a job is run, some job arguments may specify features that are not available on the
target array.
• See reso
urce names and UNC formats.
CreateDrGroupFromHostVolume
Creates a DR g roup pair by specifying a host volume as the source. The storage volumes that underlie
the host volume are added to the source DR group and corresponding destination storage volumes
are added to the destination DR group.
Syntax and arguments
When initially inserted into a job, the command syntax and default arguments are:
DR Group Name (%drgroup_name%). Enter a name for the new source DR group.
UNC Host Volume Name (% hostvol_unc_name%). Select or enter the UNC name of a source host volume
to be included in the source DR group. The host volume must be an existing disk.
96
Job concepts, templates and commands
Page 97
Examples
Destination Storage System Name (%dest_storsys_name%). Select or enter the name of destination
storage system on which the destination DR group will be created.
Destination Disk G roup. Select or enter the name of the disk group on the destination storage system
in which the destination storage volume (remote copy) will be created. If omitted, a default is applied
when the job is run.
Destination Storage Volume Name. Enter the name for the destination storage volume (remote copy) . If
you do not enter a name, the same name as the source storage volume is automatically assigned. If
omitted, a default is applied when the job is run.
Destination RAID Level. Select or enter the redundancy level for the remote copy. Choices are RAID0,
RAID1, R AID5, and same.
Source Log Disk Group. Select or enter the name of the disk group in which to create the source storage
volume (virtual disk). If omitted, a default is applied when the job is run.
Destination Log Disk Group. Select or enter the name of the disk group in which to create the destination
storage volume (remote copy). If omitted, a default is applied when the job is run.
Maximum Log Disk Size (MB). Enter a maximum size for the log disk. An entry of zero indicates
no preference for the maximum size.
AutoSuspend on Link Down. Select or enter a mode. Choices are true (enabled) and false (disabled).
These exam
Comments
• Assoc
• Ag ent and license prerequisites. Requires a host agent on the source host. Requires remote
• Com ma
• OS specifics. Yes. See examples above.
• Guidelines apply.
• The m
ples show host volume mount points. Device names can also be used.
replication licenses on the source and destination storage systems.
nd result value. DR group nam e (simple). For a complete list, see command result values.
aximum number of virtual disks per DR group and other properties are controller software
dependent.
HP StorageWorks Replication Solutions Manager 4 .0.1
97
Page 98
• Values for the following properties can be specified in the CreateDrGroupFromHostVolume
command. These properties can be changed later, in another job, by using the commands shown.
Default values
Property
Auto suspend on links
down mode
Maximum log disk size
Name (of DR gro
* The name of the source DR group is specified in the CreateDrGroupFromHostVolume command. By default
the name for the destination DR group is the same as the source.
Source UNC Host Volume (%src_hostvol_unc%). Select or enter the UNC name of a host volume that has
been previously replicated within the job.
Storag
in the job.
Target Host (%target_host%). Select or enter the name or IP address of the enabled host on which the
host v
reated in a prior host volume replication step in the same job.
e Volume List (%storvol_snap_list%). Select the variable assigned to the previous replication
olumeistobecreated.
98
Job concepts, templates and commands
Page 99
Examples
Theseexamplesshowhostvolumemountpoints. Devicenamescanalsobeused. Therequiredreplication
step that precedes the host volume creation step is marked with asterisks (**).
• Ag ent and license prerequisites. Requires a host agent.
• Com ma nd resu
• OS specifics. Yes. See examples above.
HP-UX.Ifthesource host volume uses HP-UX PVLinks for multiple paths, the replica will have only one
path defined.
Windows. Creating the host volume on the same host as the original may produce undesirable results.
Windowswritesasignaturetothedisksandthesame signature will be on both the source and the
new copy.
• This command uses the previously replicated, underlying storage of an existing host volume.
• The storage
• To mount the host volume, use the MountHostVolume command.
Source UNC Host Volume (%src_hostvol_unc%). Select or enter the UNC name of a host volume that has
been previously replicated and presented within the job.
Storage
in the job. See argument list.
Target Host (%target_host%). Select or enter the name or IP address of the enabled host on which the
host volume is to be created.
100
icated storage volumes to create a new host volume on an enabled host. The replicated storage