|
|
设备环境:N100 pve虚拟机,直通USB硬盘第五名给飞牛虚拟机,硬盘座芯片是RTL9210B
BUG现象:外接机械硬盘被识别为SSD NVME,无SMART信息,不能自动休眠。
机械盘应该是被识别为了SSD,且无法获取SMART 信息,导致外接硬盘不能休眠,硬盘接硬盘座连在电脑上有SMART信息,也能正常休眠的。
尝试用用命令行查询SMART信息
```bash
# lsusb
Bus 006 Device 002: ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter
# smartctl -i /dev/sdc -d test
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.12.18-trim] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sdc [USB NVMe Realtek]: Device of type 'sntrealtek' [NVMe] detected
/dev/sdc [USB NVMe Realtek]: Device of type 'sntrealtek' [NVMe] opened
# smartctl -i /dev/sdc -d auto
# smartctl -i /dev/sdc -d sntrealtek
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.12.18-trim] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
Read NVMe Identify Controller failed: scsi error unsupported field in scsi command
```
如果手动指定设备类型为sat,则识别正常,也有SMART信息
```bash
# smartctl -i /dev/sdc -d sat
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.12.18-trim] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Ultrastar (He10/12)
Device Model: WDC WD80EMAZ-00WJTA0
Serial Number: xxxxx
LU WWN Device Id: 5 000cca 257e5d8eb
Firmware Version: 83.H0A83
User Capacity: 8,001,563,222,016 bytes [8.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/6083
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Feb 1 13:27:25 2026 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
```
可否优化硬盘的识别,比如auto识别失败,要再尝试其他设备类型 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|