0
点赞
收藏
分享

微信扫一扫

nvme ssd SN 查询

嚯霍嚯 2022-10-19 阅读 106

linux nvme 驱动模式下

nvme list 实例如下:

[root@qd spdk/examples/nvme/identify]$ nvme list
Node             SN                   Model                                    Namespace Usage                      Format           FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     PHLJ041201BL8P0HGN   INTEL SSDPE2KX080T8                      1           8.00  TB /   8.00  TB    512   B +  0 B   VDV10170

spdk pci_vfio 驱动模式下:

spdk/examples/nvme/identify]$ ./identify

示例如下:

[root@qd spdk/examples/nvme/identify]$ ./identify
Starting SPDK v20.01 git sha1 7eb44bb / DPDK 19.11.0 initialization...
[ DPDK EAL parameters: identify --no-shconf -c 0x1 -n 1 -m 0 --log-level=lib.eal:6 --log-level=lib.cryptodev:5 --log-level=user1:6 --base-virtaddr=0x200000000000 --match-allocations --file-prefix=spdk_pid35692 ]
EAL: No available hugepages reported in hugepages-1048576kB
EAL: VFIO support initialized
EAL: Cannot open /dev/vfio/42: Device or resource busy
EAL: Failed to open group 42
EAL: Requested device 0000:3c:00.0 cannot be used
EAL: Cannot open /dev/vfio/43: Device or resource busy
EAL: Failed to open group 43
EAL: Requested device 0000:3d:00.0 cannot be used
EAL: Cannot open /dev/vfio/44: Device or resource busy
EAL: Failed to open group 44
EAL: Requested device 0000:3e:00.0 cannot be used
EAL: Cannot open /dev/vfio/53: Device or resource busy
EAL: Failed to open group 53
EAL: Requested device 0000:5e:00.0 cannot be used
EAL:   using IOMMU type 1 (Type 1)
EAL: Cannot open /dev/vfio/69: Device or resource busy
EAL: Failed to open group 69
EAL: Requested device 0000:86:00.0 cannot be used
EAL: Cannot open /dev/vfio/70: Device or resource busy
EAL: Failed to open group 70
EAL: Requested device 0000:87:00.0 cannot be used
nvme_qpair.c: 119:nvme_admin_qpair_print_command: *NOTICE*: GET FEATURES (0a) sqid:0 cid:88 nsid:0 cdw10:00000005 cdw11:00000000
nvme_qpair.c: 307:spdk_nvme_qpair_print_completion: *NOTICE*: INVALID NAMESPACE OR FORMAT (00/0b) sqid:0 cid:88 cdw0:0 sqhd:0010 p:1 m:0 dnr:1
get_feature(0x05) failed
=====================================================
NVMe Controller at 0000:5f:00.0 [8086:0a54]
=====================================================
Controller Capabilities/Features
================================
Vendor ID:                             8086
Subsystem Vendor ID:                   8086
Serial Number:                         PHLJ041202VZ8P0HGN
Model Number:                          INTEL SSDPE2KX080T8
Firmware Version:                      VDV10170
Recommended Arb Burst:                 0
IEEE OUI Identifier:                   e4 d2 5c
Multi-path I/O
  May have multiple subsystem ports:   No
  May be connected to multiple hosts:  No
  Associated with SR-IOV VF:           No
Max Data Transfer Size:                131072
Max Number of Namespaces:              128
NVMe Specification Version (VS):       1.2
NVMe Specification Version (Identify): 1.2
Maximum Queue Entries:                 4096
Contiguous Queues Required:            Yes
Arbitration Mechanisms Supported
  Weighted Round Robin:                Supported
  Vendor Specific:                     Not Supported
Reset Timeout:                         60000 ms
Doorbell Stride:                       4 bytes
NVM Subsystem Reset:                   Not Supported
Command Sets Supported
  NVM Command Set:                     Supported
Boot Partition:                        Not Supported
Memory Page Size Minimum:              4096 bytes
Memory Page Size Maximum:              4096 bytes
Optional Asynchronous Events Supported
  Namespace Attribute Notices:         Not Supported
  Firmware Activation Notices:         Supported
128-bit Host Identifier:               Not Supported

Controller Memory Buffer Support
================================
Supported:                             No

Admin Command Set Attributes
============================
Security Send/Receive:                 Not Supported
Format NVM:                            Supported
Firmware Activate/Download:            Supported
Namespace Management:                  Supported
Device Self-Test:                      Not Supported
Directives:                            Not Supported
NVMe-MI:                               Not Supported
Virtualization Management:             Not Supported
Doorbell Buffer Config:                Not Supported
Abort Command Limit:                   4
Async Event Request Limit:             4
Number of Firmware Slots:              4
Firmware Slot 1 Read-Only:             No
Firmware Update Granularity:           No Information Provided
Per-Namespace SMART Log:               No
Command Effects Log Page:              Supported
Get Log Page Extended Data:            Supported
Telemetry Log Pages:                   Supported
Error Log Page Entries Supported:      64
Keep Alive:                            Not Supported

NVM Command Set Attributes
==========================
Submission Queue Entry Size
  Max:                       64
  Min:                       64
Completion Queue Entry Size
  Max:                       16
  Min:                       16
Number of Namespaces:        128
Compare Command:             Not Supported
Write Uncorrectable Command: Supported
Dataset Management Command:  Supported
Write Zeroes Command:        Not Supported
Set Features Save Field:     Not Supported
Reservations:                Not Supported
Timestamp:                   Not Supported
Volatile Write Cache:        Not Present
Atomic Write Unit (Normal):  1
Atomic Write Unit (PFail):   1
Atomic Compare & Write Unit: 1
Fused Compare & Write:       Not Supported
Scatter-Gather List
  SGL Command Set:           Not Supported
  SGL Keyed:                 Not Supported
  SGL Bit Bucket Descriptor: Not Supported
  SGL Metadata Pointer:      Not Supported
  Oversized SGL:             Not Supported
  SGL Metadata Address:      Not Supported
  SGL Offset:                Not Supported
  Transport SGL Data Block:  Not Supported
Replay Protected Memory Block:  Not Supported

Firmware Slot Information
=========================
Active slot:                 1
Slot 1 Firmware Revision:    VDV10170

Commands Supported and Effects
==============================
Admin Commands
--------------
   Delete I/O Submission Queue (00h): Supported
   Create I/O Submission Queue (01h): Supported All-NS-Exclusive
                  Get Log Page (02h): Supported
   Delete I/O Completion Queue (04h): Supported
   Create I/O Completion Queue (05h): Supported All-NS-Exclusive
                      Identify (06h): Supported
                         Abort (08h): Supported
                  Set Features (09h): Supported NS-Cap-Change NS-Inventory-Change Ctrlr-Cap-Change
                  Get Features (0Ah): Supported
    Asynchronous Event Request (0Ch): Supported
          Namespace Management (0Dh): Supported LBA-Change NS-Cap-Change Per-NS-Exclusive
               Firmware Commit (10h): Supported Ctrlr-Cap-Change
       Firmware Image Download (11h): Supported
          Namespace Attachment (15h): Supported Per-NS-Exclusive
                    Format NVM (80h): Supported LBA-Change NS-Cap-Change NS-Inventory-Change Ctrlr-Cap-Change Per-NS-Exclusive
               Vendor specific (C8h): Supported
               Vendor specific (D2h): Supported
               Vendor specific (E1h): Supported LBA-Change NS-Cap-Change NS-Inventory-Change All-NS-Exclusive
               Vendor specific (E2h): Supported LBA-Change NS-Cap-Change NS-Inventory-Change All-NS-Exclusive
I/O Commands
------------
                         Flush (00h): Supported LBA-Change
                         Write (01h): Supported LBA-Change
                          Read (02h): Supported
           Write Uncorrectable (04h): Supported LBA-Change
            Dataset Management (09h): Supported LBA-Change

Error Log
=========

Arbitration
===========
Arbitration Burst:           1
Low Priority Weight:         1
Medium Priority Weight:      1
High Priority Weight:        1

Power Management
================
Number of Power States:      1
Current Power State:         Power State #0
Power State #0:  Max Power:  20.00 W
Non-Operational Permissive Mode: Not Supported

Health Information
==================
Critical Warnings:
  Available Spare Space:     OK
  Temperature:               OK
  Device Reliability:        OK
  Read Only:                 No
  Volatile Memory Backup:    OK
Current Temperature:         307 Kelvin (34 Celsius)
Temperature Threshold:       343 Kelvin (70 Celsius)
Available Spare:             99%
Available Spare Threshold:   10%
Life Percentage Used:        6%
Data Units Read:             915567949
Data Units Written:          2168400345
Host Read Commands:          95406552629
Host Write Commands:         111467152132
Controller Busy Time:        29644 minutes
Power Cycles:                32
Power On Hours:              15951 hours
Unsafe Shutdowns:            30
Unrecoverable Media Errors:  0
Lifetime Error Log Entries:  0
Warning Temperature Time:    0 minutes
Critical Temperature Time:   0 minutes

Number of Queues
================
Number of I/O Submission Queues:      128
Number of I/O Completion Queues:      128

Intel Health Information
==================
Program Fail Count:
  Normalized Value : 100
  Current Raw Value: 2
Erase Fail Count:
  Normalized Value : 100
  Current Raw Value: 0
Wear Leveling Count:
  Normalized Value : 94
  Current Raw Value:
  Min: 296
  Max: 304
  Avg: 300
End to End Error Detection Count:
  Normalized Value : 100
  Current Raw Value: 0
CRC Error Count:
  Normalized Value : 100
  Current Raw Value: 0
Timed Workload, Media Wear:
  Normalized Value : 100
  Current Raw Value: 65535
Timed Workload, Host Read/Write Ratio:
  Normalized Value : 100
  Current Raw Value: 65535%
Timed Workload, Timer:
  Normalized Value : 100
  Current Raw Value: 65535
Thermal Throttle Status:
  Normalized Value : 100
  Current Raw Value:
  Percentage: 0%
  Throttling Event Count: 0
Retry Buffer Overflow Counter:
  Normalized Value : 100
  Current Raw Value: 0
PLL Lock Loss Count:
  Normalized Value : 100
  Current Raw Value: 0
NAND Bytes Written:
  Normalized Value : 100
  Current Raw Value: 88417727
Host Bytes Written:
  Normalized Value : 100
  Current Raw Value: 33087163

Intel Temperature Information
==================
Current Temperature: 34
Overtemp shutdown Flag for last critical component temperature: 0
Overtemp shutdown Flag for life critical component temperature: 0
Highest temperature: 60
Lowest temperature: 29
Specified Maximum Operating Temperature: 70
Specified Minimum Operating Temperature: 0
Estimated offset: 0


Intel Marketing Information
==================
Marketing Product Information:          Intel(R) SSD DC P4510   Series


Active Namespaces
=================
Namespace ID:1
Deallocate:                            Supported
Deallocated/Unwritten Error:           Not Supported
Deallocated Read Value:                Unknown
Deallocate in Write Zeroes:            Not Supported
Deallocated Guard Field:               0xFFFF
Flush:                                 Not Supported
Reservation:                           Not Supported
Namespace Sharing Capabilities:        Private
Size (in LBAs):                        15628053168 (14904M)
Capacity (in LBAs):                    15628053168 (14904M)
Utilization (in LBAs):                 15628053168 (14904M)
NGUID:                                 01000000010000005CD2E4C6F20C5351
EUI64:                                 5CD2E4C6F20C0100
Thin Provisioning:                     Not Supported
Per-NS Atomic Units:                   No
NGUID/EUI64 Never Reused:              No
Number of LBA Formats:                 2
Current LBA Format:                    LBA Format #00
LBA Format #00: Data Size:   512  Metadata Size:     0
LBA Format #01: Data Size:  4096  Metadata Size:     0


举报

相关推荐

0 条评论