how to trace /dev/gpt/label to adaX to conroller?

illoai at illoai at
Mon Dec 6 05:24:05 UTC 2010

On 8 November 2010 12:19, Peter <fbsdq at> wrote:
> iH,
>  Is there any easy straight forward way to trace my /dev/gpt/data.zfs
> disk to what ada device it is, and on what controller?
> I've traced it manually by doing a gpart list adaX |grep data.zfs on each
> adaX device, then somehow I found out what controller it is on [I think by
> manually looking at serial number of the disk, and tracing cables].  This
> was easy when I had 2 disks, but now I have 4, and figure there could be
> an easier way instead of doing a 'for i' loop on each adaX device, tracing
> cables, etc.
> FreeBSD 8-STABLE if it makes a difference.
> ]Peter[
>  I'm prolly doing something wrong.

Variations on
# gpart list
do you any good?


More information about the freebsd-questions mailing list