Summary: | [zfs] UPDATING should provide caveats for running `zpool upgrade` | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Chris Nehren <cnehren+freebsd-bugs> | ||||
Component: | kern | Assignee: | Steven Hartland <smh> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | ari, jan.kokemueller, smh | ||||
Priority: | Normal | ||||||
Version: | 10.0-STABLE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Chris Nehren
2014-04-06 22:20:00 UTC
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainer(s). Seems unnecessary since 'zpool upgrade' already spits out exactly what you need to do with an appropriate warning. Created attachment 147531 [details]
Untested patch that adds the missing bootcode upgrade warning
I've just had the same problem after upgrading my bootpool on 10-stable. I used "zpool upgrade -a". I was already on pool version 5000; only some feature flags were added. The problematic feature flags not recognized by the bootloader were "com.delphix:hole_birth" and "com.delphix:embedded_data".
I was aware of the "gpart bootcode" dance but "zpool upgrade -a" definitely showed no message so I assumed it was safe to reboot without upgrading the bootloader. I've looked at the zpool code and it seems that in the case of "zpool upgrade -a" the bootcode upgrade warning may not be displayed. I've attached a patch that should fix it (untested, but it compiles).
Fixed in head by: http://svnweb.freebsd.org/changeset/base/271934 A commit references this bug: Author: smh Date: Wed Sep 24 09:59:49 UTC 2014 New revision: 272063 URL: http://svnweb.freebsd.org/changeset/base/272063 Log: MFC r271934: Output boot code warning when zpool upgrade -a is used to add features. PR: 188328 Approved by: re (marius) Sponsored by: Multiplay Changes: _U stable/10/ stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c |