pve - Disks : HDD Information / SN

aViN187

New Member
Oct 21, 2021
2
0
1
40
Hi folks,

i'm pretty new to proxmox and linux in general, therefore please don't be to harsh on me.

I got a quesiton: I'll purchased some HDD Drives in order to make a TrueNAS store for my homelab, and after some initial trouple i was able to passthrough the external USB-HDD Drives which are now inside TrueNAS in a proper ZFS pool.

When i take a look at the HDD details inside the pve node i'll the the drives which i add by using qm set 1xx -scsix /dev/disk/by-id/xxx
1634828965505.png

The question is: why do those information display so wired, i mean - oviously the serial number is not 0...02, etc.

hdparm, -I /dev/sdb shows the information i expect.

ATA device, with non-removable media Model Number: ST6000VN001-2BB186 Serial Number: ZR11BWXF Firmware Revision: SC60 Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0 Standards: Used: unknown (minor revision code 0x006d) Supported: 10 9 8 7 6 5 Likely used: 10 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 11721045168 Logical Sector size: 512 bytes Physical Sector size: 4096 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 5723166 MBytes device size with M = 1000*1000: 6001175 MBytes (6001 GB) cache/buffer size = unknown Form Factor: 3.5 inch Nominal Media Rotation Rate: 5425 and so on ....

What do i need to to in order that pve shows the "correct" values?

Thanks!
 
Last edited:
it is probably due to external usb enclosure which overwrites some data over sata.
we collect the information from udev which gets its info from the sysfs (/sys/block/*) which is normally more reliable and faster than going through smartctl/hdparm