Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2022 10:20:30 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        George Mitchell <george+freebsd@m5p.com>
Cc:        FreeBSD Hackers <freebsd-hackers@FreeBSD.org>
Subject:   Re: Which disk is which?
Message-ID:  <20220126032030.GA80544@rdtc.ru>
In-Reply-To: <5d4569a7-3198-761e-9fd0-c53567ecb3ea@m5p.com>
References:  <5d4569a7-3198-761e-9fd0-c53567ecb3ea@m5p.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 25, 2022 at 03:59:45PM -0500, George Mitchell wrote:

> "zpool status' tells me which disks are in my pool by diskid.  But
> smartd log messages refer to hardware unit numbers (adaN).  How do I
> convert between the two?                                   -- George

diskid is disk serial number with "DISK-" prefix
and there is diskinfo(8) command in base system that shows it, too:

# diskinfo -v /dev/ada1 | grep ident
        WD-WMAY04452117 # Disk ident.
# ls /dev/diskid 
DISK-WD-WMAY04452117
# smartctl -a /dev/ada1 | grep Serial
Serial Number:    WD-WMAY0445211



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220126032030.GA80544>