New-SpacesPool
New-SpacesPool
Creates a storage pool on the Storage Spaces subsystem.
구문
Parameter Set: ByDiskArray
New-SpacesPool [-FriendlyName] <String> [-PhysicalDisks] <Object[]> [[-NumberOfHotsparesToUse] <Int32> ] [ <CommonParameters>]
Parameter Set: ByLocalStorage
New-SpacesPool [-FriendlyName] <String> [-NumberofPhysicalDiskstoUse] <Int32> [[-NumberOfHotsparesToUse] <Int32> ] [ <CommonParameters>]
자세한 설명
The New-SpacesPool cmdlet creates a storage pool on the Storage Spaces subsystem with three or more eligible physical disks. The storage pool can then be used to create storage spaces.
매개 변수
-FriendlyName<String>
Specifies the friendly name of the storage pool to create.
별칭 |
없음 |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-NumberOfHotsparesToUse<Int32>
Specifies how many physical disks to designate as hot spares, which are available to automatically replace failed disks.
별칭 |
없음 |
필수 여부 |
false |
위치 |
3 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-NumberofPhysicalDiskstoUse<Int32>
Specifies how many physical disks to use to create the storage pool.
별칭 |
없음 |
필수 여부 |
true |
위치 |
2 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-PhysicalDisks<Object[]>
Specifies the PhysicalDisk objects to use to create the storage pool.
별칭 |
없음 |
필수 여부 |
true |
위치 |
2 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByValue, ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk
You can pipe an array of PhysicalDisk objects to the PhysicalDisks parameter.
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
Microsoft.Management.Infrastructure.CimInstance#root/microsoft/windows/storage/MSFT_StoragePool
This cmdlet outputs a StoragePool object.
예제
Example 1 – Create a storage pool with five physical disks
This example creates a storage pool named MyPool using five available physical disks from the Available Disks (primordial) storage pool.
PS C:\> New-SpacesPool -FriendlyName MyPool -NumberOfPhysicalDisksToUse 5
Example 2 – Create a storage pool with an array of PhysicalDisk objects
This example creates a storage pool named MyPool using the specified array of PhysicalDisk objects.
PS C:\> New-SpacesPool -FriendlyName MyPool -PhysicalDisks $DiskArray
Example 3 – Create a storage pool with two hot spares
This example creates a storage pool named MyPool using eight physical disks and assigns two physical disks to the pool for use as hot-spares in the event of a physical disk failure.
PS C:\> New-SpacesPool -FriendlyName MyPool -NumberofPhysicalDisksToUse 8 -NumberOfHotsparesToUse 2