[CFR][ZFS] Show removed devices by GUID in zpool output.

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Jun 15 11:59:14 UTC 2011

On Tue, Jun 14, 2011 at 02:26:46PM -0600, Justin T. Gibbs wrote:
> The current behavior of zpool_vdev_name() is to report the vdev path
> (e.g. /dev/da0) unless
> a vdev has the ZPOOL_CONFIG_NOT_PRESENT attribute set.  This
> attribute is only set when
> a vdev is not found during import/mount of a pool.  The attached
> patch also displays a vdev
> by GUID if it cannot be opened post import or is marked removed
> (e.g. via a GEOM orphan
> event).
> The main motivation for this change is that vdev paths are not
> unique to a physical leaf vdev.
> It is easy to get into a situation where you need to "detach
> /dev/da0" event though da0 is
> an active member of the same pool in which a "previous da0" was once
> removed.  With
> zpool_vdev_name() reporting the GUID, the user is equipped to
> provide an unambiguous
> command that represents their desired action.

That's a useful change. It confused users in the past.

Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20110615/22beddaf/attachment.pgp

More information about the freebsd-fs mailing list