Bug 204483 - zpool dry-run layouts omit any cache devices specified
Summary: zpool dry-run layouts omit any cache devices specified
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.2-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-fs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-12 00:03 UTC by Christian Campbell
Modified: 2015-11-12 00:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Campbell 2015-11-12 00:03:29 UTC
Dry-run pool layout reports omit any cache devices specified, although the cache specification is honoured when the create or add is actually run. For example:

# zpool create -n tank ada1 cache ada0p5 log ada0p6
would create 'tank' with the following layout:

        tank
          ada1
        logs
          ada0p6
# zpool create tank ada1 cache ada0p5 log ada0p6
# zpool status tank
  pool: tank
...
        NAME      ...
        tank
          ada1
        logs
          ada0p6
        cache
          ada0p5

I would expect the dry-run to reflect the actual results. It was counterintuitive and kind of scary that it didn't.