What is the drive identifier that TrueNAS sends in email alerts?

ajgnet

Explorer
Joined
Jun 16, 2020
Messages
65
When a drive drops out I receive email alerts as follows:

Code:
Disk 5490375690185221697 is UNAVAIL

What is the numeric string, and how do I match it to a drive (device, gptid, serial?)
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
zpool status will tell you something like "5490375690185221697 ... was gptid/xxxxxxxx...."
 

ajgnet

Explorer
Joined
Jun 16, 2020
Messages
65
What is that numeric string though? And is there a way I can see it for each drive before they drop out? For example, I'd like to print labels for each string in advance and tape them to the drive to make replacement easier in the future.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I don't know if you really want to open that Pandora's box, but the device GUID should be able to be found if you do some digging with a command like

zdb -l /dev/ada1p2 (assuming ada1 is a member disk of your pool/VDEV and was added with the GUI, hence the p2 for the data partition)

You will need to find the gptids to match it to with glabel status
 

ajgnet

Explorer
Joined
Jun 16, 2020
Messages
65
I don't know if you really want to open that Pandora's box, but the device GUID should be able to be found if you do some digging with a command like

zdb -l /dev/ada1p2 (assuming ada1 is a member disk of your pool/VDEV and was added with the GUI, hence the p2 for the data partition)

You will need to find the gptids to match it to with glabel status
This is great. Thanks. I wish TrueNAS would provide more information in the alert emails when a drive dies, basically as much as possible: S/N, gptid, guid, etc...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I wish TrueNAS would provide more information in the alert emails when a drive dies, basically as much as possible: S/N, gptid, guid, etc...
You'll usually get there much faster by looking at the last few pages of dmesg which will have the identifier (like ada1 or whatever) of the disk that has had a problem... then you can dmesg | grep ada1 to see the serial number (or dmesg /grep Serial to get a list of serial numbers for all disks)
 

ajgnet

Explorer
Joined
Jun 16, 2020
Messages
65
Thanks. Just nice to not have to ssh in for something common like this
 
Top