편집

다음을 통해 공유


Get-PmemDisk

Gets persistent memory disks.

Syntax

AllDisks (Default)

Get-PmemDisk
    [<CommonParameters>]

SingleDevice

Get-PmemDisk
    [[-DiskNumber] <UInt32[]>]
    [<CommonParameters>]

ByPhysicalDevice

Get-PmemDisk
    [-PhysicalDevice <PmemPhysicalDevice>]
    [<CommonParameters>]

ByDeviceId

Get-PmemDisk
    [-PhysicalDeviceId <String[]>]
    [<CommonParameters>]

ByInputObject

Get-PmemDisk
    [-InputObject <CimInstance>]
    [<CommonParameters>]

Description

The Get-PmemDisk cmdlet gets persistent memory disks. You can get disks by number or physical device.

Examples

Example 1: Get persistent memory disks

Get-PmemDisk
DiskNumber Size   HealthStatus AtomicityType CanBeRemoved PhysicalDeviceIds UnsafeShutdownCount
---------- ----   ------------ ------------- ------------ ----------------- -------------------
2          252 GB Healthy      None          True         {20, 120}         0
3          252 GB Healthy      None          True         {1020, 1120}      0

This example gets all persistent memory disks.

Example 2: Get persistent memory disk by number

Get-PmemDisk -DiskNumber 2
DiskNumber Size   HealthStatus AtomicityType CanBeRemoved PhysicalDeviceIds UnsafeShutdownCount
---------- ----   ------------ ------------- ------------ ----------------- -------------------
2          252 GB Healthy      None          True         {20, 120}         0

This example gets the specified persistent memory disk.

Example 3: Get physical disk information

Get-PmemDisk | Get-PhysicalDisk | select SerialNumber, HealthStatus, OperationalStatus, OperationalDetails
SerialNumber               HealthStatus OperationalStatus  OperationalDetails
------------               ------------ ------------------ ------------------
802c-01-1602-117cb5fc      Healthy      OK
802c-01-1602-117cb64f      Warning      Predictive Failure {Threshold Exceeded,NVDIMM_N Error}

This example gets persistent memory disks. It then gets the physical disks that host them and uses the select command to display serial number, health status, and operational information.

Parameters

-DiskNumber

Specifies the disk number of persistent memory disk to get.

Parameter properties

Type:

UInt32[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

SingleDevice
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the input object that is used in a pipeline command.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByInputObject
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-PhysicalDevice

Specifies a physical disk. The cmdlet gets persistent memory disks on the physical disk.

Parameter properties

Type:PmemPhysicalDevice
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByPhysicalDevice
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-PhysicalDeviceId

Specifies the ID of a physical disk. The cmdlet gets persistent memory disks on the physical disk.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByDeviceId
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Storage.PersistentMemory.Management.PmemPhysicalDevice

CimInstance

Outputs

Object