Purgevirtualdisks command, Restoresnapshot command, Purgevirtualdisks command restoresnapshot command – HP SAN Virtualization Services Platform User Manual

Page 69

Advertising
background image

Description

This is a modified version of the ExpandPartition command (the -Size is the number of
bytes—not megabytes). This command expands both a VSM virtual disk and its corresponding
partition (file system).

NOTE:

A virtual disk with PiTs on it, or which is in a synchronous mirror group, cannot be

expanded.

The drive letter must be followed by either a colon or $ sign. The -Size argument is expressed
as the number of bytes in scientific notation (for example, 1.234e8). The minimum size is 1 GB.
You can use the -By to directly define the expansion size. Alternatively, the -Size (in bytes) ,
with the -Extend (in percent) , determines by how much to expand the partition. In this case, the
expansion size is determined by the multiplication of the -Size and -Extend arguments.

NOTE:

This command is valid only for primary partitions on Windows 2003/2008.

Do not run this command with Windows Disk Manager open.

Examples

This example extends a partition by 1 GB. Note the quotation marks around the size value; they
are mandatory in locales where the decimal symbol is a comma.

ExpandPartionEx -Drive Q:, -By “1.07374e+9”, -StoragePool PoolName

This example extends an approximately 5 GB partition by 20 percent. Note the quotation marks
around the size value; they are mandatory in locales where the decimal symbol is a comma.

ExpandPartionEx -Drive Q:, -Size “5.3688e+9”, -Extend 20, ~
-StoragePool PoolName

PurgeVirtualDisks

command

Syntax

PurgeVirtualDisks -Template RootName, [-Group GroupRootName,] ~
-Keep NumberToKeep

Description

Purges (deletes) old virtual disks, provided they all have the same root name (all start with the same
prefix, and the suffix was automatically created by the VSM API through the Template argument).

NOTE:

Virtual disks with R/W permissions set are not purged.

This command can be used for virtual disks created by snapclones. If GroupTemplateName exists
and is not empty, snapclone groups are purged based on the group root name and their creation
time. The number to keep may be zero (for example, delete all).

RestoreSnapshot

command

Syntax

RestoreSnapshot -Snapshot SnapshotName

Description

The data of the designated snapshot is collapsed (copied) into the source virtual disk or snapshot,
the updated virtual disk or snapshot is renamed with the snapshot name, and all PiTs are deleted.
The source virtual disk or snapshot name does not exist anymore after this operation is complete.
This operation is permitted only if:

Advanced CLI commands

69

Advertising