beautypg.com

Expandpartitionex command, Purgevirtualdisks command, 78 purgevirtualdisks command – HP SAN Virtualization Services Platform User Manual

Page 78

background image

ExpandPartitionEx

command

Syntax

ExpandPartionEx -Drive Letter:, -By ExtendByNumberOfBytes, ~

-StoragePool PoolName

or

ExpandPartionEx -Drive Letter:, -Size CurrentSizeInBytes, ~

-Extend ExtendByPercent, -StoragePool PoolName

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

Advanced CLI commands

78