HP StorageWorks 2300 Family Modular Smart Array CLI reference guide (500912-002, July 2010)

HP StorageWorks 2000 G2 Modular Smart Array CLI Reference Guide 41
create task
Description Creates a task that can be scheduled. You can create a task to take a snapshot of a master volume,
to copy a snapshot or a master volume to a new standard volume, or to reset a snapshot.
CAUTION: Before scheduling a reset snapshot task, consider that if the snapshot is mounted to a
host operating system, the snapshot must be unmounted before the reset is performed; leaving it
mounted can cause data corruption. You should create a scheduled job on the host to unmount the
snapshot prior to resetting the snapshot.
Syntax To create a task to take a snapshot:
create task type TakeSnapshot master-volume volume snapshot-prefix prefix
retention-count # name
To create a task to reset a snapshot:
create task type ResetSnapshot snapshot-volume volume name
To create a task to copy a volume:
create task type VolumeCopy source-volume volume dest-vdisk vdisk dest-prefix
prefix [modified-snapshot yes|no] name
Parameters type TakeSnapshot|ResetSnapshot|VolumeCopy
The task type:
TakeSnapshot: Takes a snapshot of a master volume.
ResetSnapshot: Deletes the data in the snapshot and resets it to the current data in the
associated master volume. The snapshot's name and other volume characteristics are not
changed.
CAUTION: Before scheduling a reset snapshot task, consider that if the snapshot is mounted to a
host operating system, the snapshot must be unmounted before the reset is performed; leaving it
mounted can cause data corruption.
VolumeCopy: Copies a snapshot or a master volume to a new standard volume. The command
creates the destination volume you specify, which must be in a vdisk owned by the same
controller as the source volume.
master-volume volume
Name or serial number of the volume to take a snapshot of. For syntax, see Command syntax.
snapshot-prefix prefix
Optional. A label to identify snapshots created by this task. Snapshot names have the format
prefix_s001 through prefix_s1023.
retention-count #
Optional. The number of snapshots with this prefix to retain. When a new snapshot exceeds this
limit, the oldest snapshot with the same prefix is deleted.
snapshot-volume volume
Name or serial number of the snapshot to reset. For syntax, see Command syntax.
source-volume volume
Name or serial number of the master volume or snapshot to copy. For syntax, see Command syntax.
dest-vdisk vdisk
Name or serial number of the destination vdisk for the volume copy. For syntax, see Command
syntax.