-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate GUID on find_by_path, unless creating or splitting a pool.
Verified this works for cache vdevs on manual import, testing auto-import from cachefile.
- Loading branch information
Showing
3 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ed1463a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested cache and log devices, and renumbering of data, cache, and log vdevs.
Manual zpool import works as expected, updating the device paths automatically.
Import from cachefile is working, however it does not reflect the new path.
A log vdev that was located at disk3s1 then moved to disk2s1, still shows disk3s1 even though there is no device at that path. However the vdev is working properly according to zpool status and after zpool scrub was performed.
Manual import reflected the new disk2s1 path, and subsequent import from cachefile continues to show disk3s1.