beautypg.com

Methods, Uint32 createormodifystoragepool, Method overview – HP SAN Virtualization Services Platform User Manual

Page 82

background image

Methods

uint32 CreateOrModifyStoragePool

Method Overview

1.

Create ConfiguredPool
Creation of an HPSVSP_ConfiguredPool allows multiple Stripe or DiskDetails be grouped to create
a StoragePool (via the InExtents parameter and the Size). The resulting ConfiguredPool's Capab-
ilities ExtentStripeLength Default and Range will always be 1 regardless of the pool's constituents.
• The Size parameter specifies the desired size.
• The InPools parameter must be either null or specify the HPSVSP_PrimordialPool.
• If the ElementName parameter is NULL, it generates a Pool name.
• InExtents is optional.
• If the total size of all extents is not large enough to meet the Size parameter, then are pull in

more HPSVSP_ImportedExtent.

2.

Modify ConfiguredPool
Modify storage pool allows the addition or removal of disks or stripes from a pool.
• The method will allow the addition of disks and stripes in one invocation.
• The method will allow the removal of disks in one invocation.
• The method will allow the removal of stripe sets in one invocation.
• The method will forbid the removal of stripe sets AND disks during the one invocation
Regardless of the constituent disks and stripes comprising the storage pool, the resulting Extent-
StripeLength of the Pool will always be 1.
• The Size input parameter determines whether this is an expansion or reduction. If the Size

parameter is greater than the Pool size, then this is an expansion. If the Size parameter is
smaller then the Pool parameter size, then this is a reduction. (If the sizes are equal—no action
takes place)

• If the Goal parameter is specified, it must be an HPSVSP_PrimordialPoolSetting whose Extent-

StripeLength is 1.

• If ElementName parameter != NULL, than this is a name change operation. Pools do not

support name changes. The operation is failed.

For Pool Expansion:
• InExtents is optional.
• If the total size of all extents is not large enough then pull in more HPSVSP_ImportedExtent to

meet the Size.

For Pool Reduction:
• The Size input parameter must be less than the size of the existing pool (one can use the value

0 bytes).

• Only extents specified in the InExtents parameter are removed from the pool.
• InExtents may only contain either HPSVSP_StripeSet reference strings or HPSVSP_ImportedExtent

reference strings - not both since the VSM can only remove one or the other in a given invoc-
ation.

Block Services Package

82