Skip to content

Commit

Permalink
Add option to zpool status to print guids
Browse files Browse the repository at this point in the history
The use of vdev GUIDs are a necessary workaround in edge cases where the
names provided by `zpool status` are not accepted by the zpool
detach/offline/remove/replace commands. The current method of obtaining
them uses zdb, but this does not work in all cases (see
openzfs/zfs#1530).

This provides a method of obtaining vdev GUIDs that is more reliable and
straightforward than zdb. It would be better to fix all edge cases that
require the use of GUIDs as a workaround, but Linux's /dev design makes
it difficult to anticipate such edge cases, which makes this option
necessary.

Note that this adds a new boolean parameter to `zpool_vdev_name`, which
changes the libzfs interface.

Closes openzfs/zfs#2011

Signed-off-by: Richard Yao <ryao@gentoo.org>
(cherry picked from commit 9ef11fcd4ecf05a9ebe2cf9c65be4dd32cb6944f)
Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ryao authored and ilovezfs committed Nov 28, 2014
1 parent 91b0052 commit 1390502
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 71 deletions.
Loading

0 comments on commit 1390502

Please sign in to comment.