Get-SpacesPhysicalDisk

Get-SpacesPhysicalDisk

Gets all PhysicalDisk objects that can be used with Storage Spaces to form a storage pool.

구문

Parameter Set: None
Get-SpacesPhysicalDisk [[-OnlyListAvailable]] [[-BusType] <String> ] [[-Throttle] <Int32> ] [ <CommonParameters>]

Parameter Set: ByClusterFriendlyName
Get-SpacesPhysicalDisk [[-OnlyListAvailable]] [[-BusType] <String> ] [-ClusterFriendlyName] <String> [[-Throttle] <Int32> ] [ <CommonParameters>]

Parameter Set: ByComputerList
Get-SpacesPhysicalDisk [[-OnlyListAvailable]] [[-BusType] <String> ] [-ServerToCompare] <String[]> [[-Throttle] <Int32> ] [ <CommonParameters>]

자세한 설명

The Get-SpacesPhysicalDisk cmdlet gets all PhysicalDisk objects that are available to use with Storage Spaces.

매개 변수

-BusType<String>

Specifies on which bus to obtain PhysicalDisk objects. The acceptable values for this parameter are: iSCSI, SAS, SATA, and USB.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ClusterFriendlyName<String>

별칭

없음

필수 여부

true

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-OnlyListAvailable

Specifies that the cmdlet should only get PhysicalDisk objects that are available to add to a storage pool (they do not already belong to a storage pool other than the primordial pool).

별칭

없음

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ServerToCompare<String[]>

Gets all physical disks that are common between the local computer and the specified remote computers.

별칭

없음

필수 여부

true

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Throttle<Int32>

별칭

없음

필수 여부

false

위치

4

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk

    This cmdlet returns objects that represent physical disks.

예제

Example 1 – Display physical disks

This example displays all physical disks available to Storage Spaces on the local computer.

PS C:\> Get-SpacesPhysicalDisk

Example 2 – Display physical disks not in a pool

This example displays physical disks that are not currently allocated to a storage pool.

PS C:\> Get-SpacesPhysicalDisk -OnlyListAvailable

Example 3 – Display physical disks common to the local computer and remote servers

This example displays all common physical disks between the local computer and two servers, BigOrange1 and BigOrange2.

PS C:\> Get-SpacesPhysicalDisk -ServerToCompare BigOrange1, BigOrange2

Example 4 – Display physical disks common to a failover cluster

This example displays all common physical disks among nodes in cluster named DeepSpaceCluster.

PS C:\> Get-SpacesPhysicalDisk -ClusterFriendlyName DeepSpaceCluster