Bug 206460 - Add drive serial to mptutil show drives
Summary: Add drive serial to mptutil show drives
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords: feature
Depends on:
Blocks:
 
Reported: 2016-01-21 09:42 UTC by Daniel Ylitalo
Modified: 2016-04-17 11:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ylitalo 2016-01-21 09:42:52 UTC
I'm not sure this actually is possible to do but it would be a really nice addition if the serial of a harddrive could be presented in the output of mptutil show drives just like mfiutil show drives does it.

[root@sys ~]# mptutil show drives
mpt0 Physical Drives:
   0 (  137G) FAILED <SEAGATE ST3146356SS HS09> SAS bus 0 id 1
   1 (  137G) ONLINE <SEAGATE ST3146356SS HS09> SAS bus 0 id 8


[root@hub-se ~]# mfiutil show drives
mfi0 Physical Drives:
 0 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ9XSKF> SATA E1:S0
 1 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ9TBAF> SATA E1:S1
 2 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ9P31F> SATA E1:S2
 3 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ9XY1F> SATA E1:S3
 4 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJA64TF> SATA E1:S4
 5 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ7AJ2F> SATA E1:S5
 6 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ7WU6F> SATA E1:S6
 7 (  932G) ONLINE <Hitachi HUA72101 A74A serial=GTF000PAJ9P35F> SATA E1:S7


It would help drive replacement alot as you know which drive to replace.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2016-01-22 01:05:46 UTC
Feature request.
Comment 2 Daniel Ylitalo 2016-04-17 11:51:19 UTC
If someone could provide me with how to compile mptutil and where the source is I might be able to hack this myself and provide a patch as i have quite a few servers using mptutil