beautypg.com

Deletevirtualdisk command, Expandpartition command, Expandvirtualdisk command – HP SAN Virtualization Services Platform User Manual

Page 25

background image

DeleteVirtualDisk

command

Syntax

DeleteVirtualDisk -VirtualDisk VirtualDiskName [LastInstance]

Description

Deletes the virtual disk. If the LastInstance flag is used, the preceding virtual disk name is the
root name, and the most recently created virtual disk (with a template name) is the subject of this
command.

ExpandPartition

command

Syntax

ExpandPartition -Drive H:, -By ExtendByMB, -StoragePool PoolName

or

ExpandPartition -Drive H:, -Size CurrentSizeInMB, ~
-Extend ExtendbyPercent, -StoragePool PoolName

Description

Expands both a VSM virtual disk and its corresponding partition (file system).

NOTE:

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

expanded.

The drive letter must be followed by a colon or a $ sign.

NOTE:

You can use the By to directly define the expansion size. Alternatively, the Size (in MB)

determines, with the Extend (in percent) , by how much to expand the partition. In this case, the
expansion size is determined by the multiplication of the Size and Extend arguments.

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

Do not run this command with Windows Disk Manager open.

The total extended size is in 1 GB increments.

Examples

To extend a partition by 500 MB:

ExpandPartition -Drive Q:, -By 500, -StoragePool pool

To extend a 5000 MB partition by 20 percent:

ExpandPartition -Drive Q:, -Size 5000, -Extend 20, ~
-StoragePool pool

ExpandVirtualDisk

command

Syntax

ExpandVirtualDisk -Virtualdisk VirtualDiskName, ~
-StoragePool PoolName1 MBfromPool1, ~
[-StoragePool PoolName2 MBfromPool2,] ~
[-StoragePool PoolName3 MBfromPool3,] -timeout 900

Description

Expands the capacity of an existing VSM virtual disk. For each storage pool, supply the amount
of capacity (in MB) to allocate from this storage pool (MbfromPool). The amount in MB should
be a positive value.

CLI command guidance

25