Some thing in TrueNAS are truely maddening. For example

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Fritz

Well-Known Member
Apr 6, 2015
3,371
1,375
113
69
Something that should be stupid easy but is anything but. How do you identify which disk is the Hot spare???

I can find a line of gibberish that supposedly identifies the disk but the problem is it's a number assigned by TrueNAS and is in no way related to the drive. The GUI makes no distinction between a data drive and a spare. zpool status returns gibberish id for each drive and tells which is the spare but again, this gibberish isn't related to the physical drive as far as I can tell.

So how do I identify the physical hot spare drive?

TIA
 

bonox

Member
Feb 23, 2021
87
20
8
you mean a guid/gptid rather than serial number in zpool status?

find the disk from

>zpool status (eg da3)

then use

>glabel status

to find the interface the drive is connected to

then

> smartctl -a /dev/da3 | grep ^Serial

to find the serial no of the disk
 

sko

Active Member
Jun 11, 2021
227
121
43
or just use 'sesutil show' to get a nice view of slot/device/model/serialno/size:
Code:
# sesutil show
ses0: <LSI SAS3x28 0501>; ID: 500304800189ee3f
Desc     Dev     Model                     Ident                Size/Status
Slot00   da0     IBM-ESXS HUS726040AL421   N8G6X93Y             4T
Slot01   da1     HGST HUS724030ALS641      P9K16X7W             3T
Slot02   -       -                         -                    Not Installed
Slot03   da2     ATA WDC  WDS500G2B0A      21517A452413         500G
Slot04   da3     ATA KINGSTON SA400S3      50026B7380790439     120G
Slot05   da4     ATA KINGSTON SV300S3      50026B726204D271     120G
Slot06   da5     IBM-ESXS HUS726040AL421   NHGBG83Y             4T
Slot07   da6     HGST HUS724030ALS640      P9K6603W             3T
Slot08   da7     ATA WDC  WDS500G2B0A      21517A452713         500G
Slot09   da8     ATA WDC WD4000FYYZ-0      WD-WCC136RRHX0T      4T
Slot10   da9     HGST HUS724030ALS641      P9JLWJ8W             3T
Slot11   da10    ATA WDC WD4003FRYZ-0      V1GJJAJB             4T
(I don't use TrueNAS; I always found the GUI more complex and restricting than just using vanilla FreeBSD...)