Opened 6 months ago
Last modified 6 months ago
#1849 new defect
Device name /dev/nvme0n1 not accepted on FreeBSD
Reported by: | ellipse1947 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | undecided |
Component: | all | Version: | 7.4 |
Keywords: | nvme freebsd | Cc: |
Description
Specifying "/dev/nvme0n1" fails:
# smartctl -x /dev/nvme0n1
smartctl 7.4 2023-08-01 r5530 [FreeBSD 15.0-CURRENT amd64] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org Smartctl open device: /dev/nvme0n1 failed: Invalid NVMe controller/namespace syntax
Others work:
# smartctl -x /dev/nvme0ns1
smartctl 7.4 2023-08-01 r5530 [FreeBSD 15.0-CURRENT amd64] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Number: M.2 (P80) 3TE6 Serial Number: XXXXXXXXXXXXXXXXX Firmware Version: V20B09 PCI Vendor/Subsystem ID: 0x1bc0 IEEE OUI Identifier: 0x24693e Controller ID: 0 NVMe Version: 1.3 Number of Namespaces: 1 Namespace 1 Size/Capacity: 120,034,123,776 [120 GB] Namespace 1 Formatted LBA Size: 512 Namespace 1 IEEE EUI-64: 24693e 78490bc0bb Local Time is: Thu Jun 27 17:22:02 2024 BST Firmware Updates (0x02): 1 Slot Optional Admin Commands (0x0006): Format Frmw_DL Optional NVM Commands (0x000f): Comp Wr_Unc DS_Mngmt Wr_Zero Log Page Attributes (0x03): S/H_per_NS Cmd_Eff_Lg Maximum Data Transfer Size: 256 Pages Warning Comp. Temp. Threshold: 70 Celsius Critical Comp. Temp. Threshold: 85 Celsius Supported Power States St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat 0 + 6.50W - - 0 0 0 0 5 5 1 + 5.80W - - 1 1 1 1 30 30 2 + 3.60W - - 2 2 2 2 100 100 3 - 0.0500W - - 3 3 3 3 5000 10000 4 - 0.0025W - - 4 4 4 4 5000 45000 Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0 === START OF SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED SMART/Health Information (NVMe Log 0x02) Critical Warning: 0x00 Temperature: 53 Celsius Available Spare: 100% Available Spare Threshold: 1% Percentage Used: 0% Data Units Read: 102,571 [52.5 GB] Data Units Written: 933,057 [477 GB] Host Read Commands: 1,462,432 Host Write Commands: 46,027,016 Controller Busy Time: 27 Power Cycles: 201 Power On Hours: 3,701 Unsafe Shutdowns: 137 Media and Data Integrity Errors: 0 Error Information Log Entries: 27 Warning Comp. Temperature Time: 0 Critical Comp. Temperature Time: 0 Temperature Sensor 1: 75 Celsius Temperature Sensor 2: 53 Celsius Temperature Sensor 3: 54 Celsius Temperature Sensor 4: 55 Celsius Thermal Temp. 1 Transition Count: 2 Thermal Temp. 1 Total Time: 157498 Error Information (NVMe Log 0x01, 16 of 64 entries) No Errors Logged Self-tests not supported
# smartctl -x /dev/nvme0
smartctl 7.4 2023-08-01 r5530 [FreeBSD 15.0-CURRENT amd64] (local build) Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Number: M.2 (P80) 3TE6 Serial Number: XXXXXXXXXXXXXXXXX Firmware Version: V20B09 PCI Vendor/Subsystem ID: 0x1bc0 IEEE OUI Identifier: 0x24693e Controller ID: 0 NVMe Version: 1.3 Number of Namespaces: 1 Namespace 1 Size/Capacity: 120,034,123,776 [120 GB] Namespace 1 Formatted LBA Size: 512 Namespace 1 IEEE EUI-64: 24693e 78490bc0bb Local Time is: Thu Jun 27 17:21:09 2024 BST Firmware Updates (0x02): 1 Slot Optional Admin Commands (0x0006): Format Frmw_DL Optional NVM Commands (0x000f): Comp Wr_Unc DS_Mngmt Wr_Zero Log Page Attributes (0x03): S/H_per_NS Cmd_Eff_Lg Maximum Data Transfer Size: 256 Pages Warning Comp. Temp. Threshold: 70 Celsius Critical Comp. Temp. Threshold: 85 Celsius Supported Power States St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat 0 + 6.50W - - 0 0 0 0 5 5 1 + 5.80W - - 1 1 1 1 30 30 2 + 3.60W - - 2 2 2 2 100 100 3 - 0.0500W - - 3 3 3 3 5000 10000 4 - 0.0025W - - 4 4 4 4 5000 45000 Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0 === START OF SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED SMART/Health Information (NVMe Log 0x02) Critical Warning: 0x00 Temperature: 53 Celsius Available Spare: 100% Available Spare Threshold: 1% Percentage Used: 0% Data Units Read: 102,571 [52.5 GB] Data Units Written: 933,057 [477 GB] Host Read Commands: 1,462,432 Host Write Commands: 46,027,016 Controller Busy Time: 27 Power Cycles: 201 Power On Hours: 3,701 Unsafe Shutdowns: 137 Media and Data Integrity Errors: 0 Error Information Log Entries: 27 Warning Comp. Temperature Time: 0 Critical Comp. Temperature Time: 0 Temperature Sensor 1: 74 Celsius Temperature Sensor 2: 53 Celsius Temperature Sensor 3: 55 Celsius Temperature Sensor 4: 54 Celsius Thermal Temp. 1 Transition Count: 2 Thermal Temp. 1 Total Time: 157498 Error Information (NVMe Log 0x01, 16 of 64 entries) No Errors Logged Self-tests not supported
Change History (1)
comment:1 by , 6 months ago
Component: | smartctl → all |
---|---|
Keywords: | nvme freebsd added |
Milestone: | → undecided |
Summary: | command fails when specifying an nvme namespace → Device name /dev/nvme0n1 not accepted on FreeBSD |
Note:
See TracTickets
for help on using tickets.
This is FreeBSD specific. Changing summary accordingly.
The current code expects either
/dev/nvme0
or/dev/nvme0ns1
. It then opens the/dev/nvme0
raw device and stores the optional namespace for theNVME_PASSTHROUGH_CMD
ioctl.