Set-SCStoragePool

Modifies a storage pool object in the VMM database.

Syntax

Set-SCStoragePool [-StoragePool] <StoragePool> [-AddStoragePhysicalDisk <StoragePhysicalDisk[]>]
 [-AddVMHostGroup <HostGroup[]>] [-Description <String>] [-FaultDomainAwareness <FaultDomainAwarenessType>]
 [-InterleaveDefaultKB <UInt64>] [-JobVariable <String>] [-Name <String>] [-Optimize] [-PROTipID <Guid>]
 [-RemoveStoragePhysicalDisk <StoragePhysicalDisk[]>] [-RemoveVMHostGroup <HostGroup[]>] [-RunAsynchronously]
 [-StorageClassification <StorageClassification>] [<CommonParameters>]

Description

The Set-SCStoragePool cmdlet modifies a storage pool object in the Virtual Machine Manager (VMM) database. You can change the properties of a storage pool, add a VMHostGroup to the storage pool, or remove a VMHostGroup from a storage pool.

Examples

Example 1: Change the name of a storage pool

PS C:\> $Pool = @(Get-SCStoragePool)[0]
PS C:\> Set-SCStoragePool -StoragePool $Pool -Name "New name of pool"

The first command gets all storage pool objects and places them in an array. The command then stores the first item in the storage pool array in the $Pool variable.

The second command changes the name of the storage pool stored in the $Pool variable to "New name of pool".

Example 2: Set the classification for a storage pool

PS C:\> $Pool = Get-SCStoragePool -ID "346e17e9-d50a-480e-8dec-c41d7e2125b0"
PS C:\> $Classification = Get-SCStorageClassification -Name "StorageClassification01"
PS C:\> Set-SCStoragePool -StoragePool $Pool -StorageClassification $Classification

The first command gets the storage pool object with the ID of 346e17e9-d50a-480e-8dec-c41d7e2125b0 and stores the object in the $Pool variable.

The second command gets the storage classification object named StorageClassification01 and stores the object in the $Classification variable.

The last command associates the storage classification stored in $Classification (StorageClassification01) with the storage pool stored in $Pool.

Parameters

-AddStoragePhysicalDisk

Specifies an array of physical disk objects to add.

Type:StoragePhysicalDisk[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddVMHostGroup

Specifies an array of host groups that this cmdlet adds to an existing host group array or private cloud.

Type:HostGroup[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

States a description for the specified object.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FaultDomainAwareness

Specifies the default fault domain for new virtual disks created in this storage pool. The acceptable values for this parameter are:

- 1: PhysicalDisk

  • 2: StorageEnclosure
  • 3: Node

Type:FaultDomainAwarenessType
Parameter Sets:NotSupported, PhysicalDisk, StorageEnclosure, StorageScaleUnit
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InterleaveDefaultKB

Specifies the default interleave size, in kilobytes, for new virtual disks created in this storage pool.

Type:UInt64
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a VMM object.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Optimize
Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveStoragePhysicalDisk

Specifies an array of physical disks to remove from this storage pool.

Type:StoragePhysicalDisk[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveVMHostGroup

Specifies an array of host groups that this cmdlet removes from a host group array or private cloud.

Type:HostGroup[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageClassification

Specifies a storage classification object.

Type:StorageClassification
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StoragePool

Specifies a storage pool object.

Type:StoragePool
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

StoragePool

This cmdlet returns a **StoragePool** object.