Drive's serial number not reported correctly, instead SCSI logical unit ID reported

joace

Renowned Member
Nov 4, 2014
19
0
66
I have a PVE node running on 6.2-15 (updated to the latest packages), there are some SATA SSD drives attached to an Adaptec RAID controller (but in HBA mode), the serial number of these drives not reported in the disks page, instead logical unit id.

1604718976073.png

In the host console, this is output from "smartctl --scan" cmd for sda drive (guess as it's attached to a SCSI HBA, so it' classified a scsi device):

1604719061440.png

And the information section output from "smartctl -a -d scsi /dev/sda", it has correct S/N, but logical unit id reported as S/N in the page:

1604719663241.png

Since it's actually a SATA drive, even query with "-d sat" option, it's still showing the correct S/N:

1604719832289.png

Is there any idea why scsi device's logic unit id reported as S/N? because of some incompatibility between PVE and Adaptec card? Thanks in advance for the help!
 
Last edited:
We use udevadm to get the device info. For the serial we take the value of the field 'ID_SERIAL_SHORT'.
In your case it looks like the RAID controller provides some other ID in that field instead.