How to show which pool/vdev a drive is a member of

henderbc

Dabbler
Joined
Jul 31, 2015
Messages
26
Given a drive which has been a valid part of a pool previously, is there a command-line way to discover from an unmounted drive the pool of which it is part? I know that the Storage|Disks item section of the web GUI tells me the pool, but I'm looking for a simple command-line means to take inventory of a number of drives which are known to have been working members of one or more zfs pools and any other information about what vdevs they are associated with.

Thanks in advance...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
zdb -l /dev/ada1p2 would be an example of how to probe the partitions (in this case the second partition which would typically be the data partition which would be in your pool).

The output that you get will point at other members of a VDEV that this disk was part of.

glabel status might also be useful to link the shown gptids to disks present in the system.
 
Top