Disk serial number is not correct

rorot

Cadet
Joined
Feb 23, 2021
Messages
4
In GUI -> Storage -> Disks for disk da2 serial number is 000000004A16
When I check da2 serial number by code smartctl -a /dev/da2 | grep Serial
Answer is:
Code:
Serial Number: ZDH2STM8

ZDH2STM8 is the correct serial number for my da2 disk.

I have problem, because my NAS find two disks connected by ICY BOX IB-377U3 with the same serial number 000000004A16. This serial number is not my hard drive serial number. It is constant and does not change when the hard drive insiade ICY BOX IB-377U3 is replaced.
My goal is to connect two drives to the NAS by ICY BOX IB-377U3. Now that's not possible because the NAS finds it as multipath.

Why does the NAS find the wrong serial number?
Thanks for help in advance.

My NAS is: TrueNAS-12.0-STABLE

Information about disk smartctl -a /dev/da2
Code:
=== START OF INFORMATION SECTION ===
Model Family:     Seagate IronWolf
Device Model:     ST4000VN008-2DR166
Serial Number:    ZDH2STM8
LU WWN Device Id: 5 000c50 0a5dbccf8
Firmware Version: SC60
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5980 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision
 

Heffy

Dabbler
Joined
Jul 8, 2016
Messages
18
@rorot I am guessing you replaced a disk at some point without following the procedure in the documentation here...
https://www.truenas.com/docs/hub/tasks/advanced/disk-replace/

As a guess, I would say you need to offline the ghost disk, not sure if you'd need to shutdown and disconnect the
ZDH2STM8 disk first.

I had a similar ghost drive while recently replacing a failed drive because I had just unplugged the old without off-lining it. I hope this helps.
 

rorot

Cadet
Joined
Feb 23, 2021
Messages
4
Thank you for answer.
I did not write this but I connected brand new disk to NAS. I did not change enything in my Pool configuration. I just plug new disk by USB and find that serial number in table GUI -> Storage -> Disks is not correct.
My goal is to connect two new disks but NAS find it with the same serial number. Information about serial number from smartctl -a /dev/da2 are correct.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I have problem, because my NAS find two disks connected by ICY BOX IB-377U3 with the same serial number 000000004A16. This serial number is not my hard drive serial number. It is constant and does not change when the hard drive insiade ICY BOX IB-377U3 is replaced.
My goal is to connect two drives to the NAS by ICY BOX IB-377U3. Now that's not possible because the NAS finds it as multipath.

Why does the NAS find the wrong serial number?
You can't use a USB multi-disk enclosure and expect it to work properly.

USB disk enclosures are not a good solution to include in a pool that you want to keep your data on.

You need to find an option that connects the disks via SATA or SAS.

if gmultipath list shows you any disks, you need to destroy those and unload the multipath module (kldunload geom_multipath) if you want to continue using it while you find a way to migrate away from it.
 

rorot

Cadet
Joined
Feb 23, 2021
Messages
4
Ok, I didn't write it clearly. I do not use USB multi-disk enclosure. I use USB single-disk enclosure :).
Let's forget about two drives for a moment.
I just plug new disk by USB and find that serial number in table GUI -> Storage -> Disks is not correct.
Information about serial number from smartctl -a /dev/da2 is correct. "da2" is new disk which I connected by USB.
My question is why serial number in table GUI -> Storage -> Disks != serial number from smartctl ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
My question is why serial number in table GUI -> Storage -> Disks != serial number from smartctl ?
Because the SATA controller inside the USB enclosure is faking the serial. Perhaps have a look at dmesg | grep Serial

It is recommended to avoid making a pool with multiple disks attached via USB (regardless of how many USB disk enclosures that requires).
 

redox

Cadet
Joined
Mar 1, 2021
Messages
2
I'm facing the same problem with an Orico multi-disk USB enclosure.
I understand that it's not the best practice but... isn't there a way yo tell TrueNAS to use the serial provided by SMART instead of the one provided by the controller ?

I've found tools to flash the firmware of the JMicron chip, but the only firmwares that let the real s/n passes through are the one that enable only one disk of the enclosure. @rorot : does your enclosure use a JMicron chip ?

There are other flashing tools that enable "Auto Increase" option on the serial number but they don't see the enclosure.

I will give a try to the multipath related solution.
 

rorot

Cadet
Joined
Feb 23, 2021
Messages
4
I haven't found a solution to use 2 of the same USB enclosures.
@redox: I checked on the Internet that my USB enclosure use JMS567 chip. My enclosure is for one disk (ICY BOX IB-377U3). Could you please share the firmware that passes the real serial number?

Since TrueNAS also reported a message about the inability to read SMART for drives in a USB housing, I decided to connect the drives via SATA using this controller: https://pl.aliexpress.com/item/4000527835205.html
I am waiting for a delivery from China...
 

redox

Cadet
Joined
Mar 1, 2021
Messages
2
@redox: I checked on the Internet that my USB enclosure use JMS567 chip. My enclosure is for one disk (ICY BOX IB-377U3). Could you please share the firmware that passes the real serial number?

Well first thing is to find a tool that is able to write to your enclosure, that was the hardest part... I don't know why but the JMMassProd that was supposed to work with my Orico (which also uses a JM567) wasn't detecting it...

I've tried all the JM2033x flashing tools there :

Then I've tried many firmwares...
You have this one that could work : https://forum.odroid.com/viewtopic.php?f=53&t=41926

Of course you should know that you may brick yours flashing a bad firmware or loose data on your disks !
 
Top