HP StorageWorks Storage System Scripting Utility reference (September 2005)

NOTE:
Creating snapshots of virtual disks depends on your licensing. Attempting to add a snapshot without
the license returns an error message. This message indicates that you need to enter your licensing
informationintheHPCommandViewEVA.Youmusthavearegisteredlicense.
Syntax
ADD SNAPSHOT <snapshot_name> VDISK=<vdisk_to_snapshot>
Required switch
The following switch is required with the ADD SNAPSHOT command:
VDISK=
Examples
ADD SNAPSHOT payroll_backup VDISK="\Virtual Disks\payroll\ACTIVE"
ALLOCATION_POLICY=DEMAND
This example creates a snapshot payroll_backup from the ACTIVE member of virtual disk family
payroll that uses capacity only as needed.
ADD SNAPSHOT wed_nite_biz VDISK=daily_biz ALLOCATION_POLICY=FULLY
This example creates a snapshot wed_night_biz from the ACTIVE mem ber of the family daily_biz
while reserving all capacity necessary to create the snapshot.
NOTE:
To delete snapshots cr eated by ADD SNAPSHOT, use the DELETE VDISK command.
Switches
The following switches are available with the AD D SNAPSHOT command.
ALLOCATION_POLICY=
Indicates how the space for the snapshot is allocated.
DEMAND—Sto
rage is allocated for the snapshot only when required. As the snapshot and the
original st
orage’s information diverges, the space allocated for the snapshot incre ases.
FULLY—All storage required to fully contain a snapshot is allocated when the snapshot is created.
This is the conser vative m ethod to create a snapshot, because adequate space is guaranteed for
a full snapshot. This is the default.
OS_UNIT_ID=
The ID that is presented to the h ost operating system. If set to zero, no ID is presented to the host.
REDUNDAN
CY=
The amount of data protection set when creating the virtual disk. If not specied, the default is the
setting of the source virtual disk.
Vraid0—Provides no data p rotection. It distributes data among its member disks into stripes
and uses all members to process I/O requests. This method has no overhead associated with
duplica
tion of information and prov ides the highest performance.
36
Utility command reference