Re: Which disk is which?

From: Wojciech Puchar <wojtek_at_puchar.net>
Date: Wed, 26 Jan 2022 09:17:54 UTC

On Wed, 26 Jan 2022, Poul-Henning Kamp wrote:

> --------
> Eugene Grosbein writes:
>> 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:
>
> Strictly speaking the correct command to use is "glabel status" (or "glabel list").
>
There are no "correct" ways in unix. There are just different ways