Add-WssDisksToSpacesPool

Adds physical disks to a storage pool.

Syntax

Add-WssDisksToSpacesPool
   [-Force]
   [-Pool] <SpacesPool>
   [-Disks] <System.Collections.Generic.ICollection`1[Microsoft.WindowsServerSolutions.Storage.Disk]>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Add-WssDisksToSpacesPool cmdlet adds physical disks to a storage pool.

Examples

Example 1: Add a physical disk to a storage pool

PS C:\>$Disk = Get-WssDisk -ID "26a21bda-a627-11d7-9931-806e6f6e6963"
PS C:\> $Pool = Get-WssSpacesPool -ID "13c41bda-a627-22d7-4631-806e6f6e6963"
PS C:\> Add-WssDisksToSpacesPool -Disks $Disk -Pool $Pool

The first command gets the Disk object that has the ID 26a21bda-a627-11d7-9931-806e6f6e6963, and stores it in the $Disk variable.

The second command gets the storage pool that has the ID 13c41bda-a627-22d7-4631-806e6f6e6963, and stores it in the $Pool variable.

The third command adds the physical disk stored in the $Disk variable to the storage pool stored in the $Pool variable.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Disks

Specifies the physical disks to add to the storage pool.

Type:ICollection<T>[Microsoft.WindowsServerSolutions.Storage.Disk]
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

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

-Pool

Specifies a StoragePool object. To obtain a StoragePool object, use theGet-WssSpacesPool cmdlet.

Type:SpacesPool
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.Storage.SpacesPool

This cmdlet returns the storage pool into which the physical disks are added.