Bug 204483

Summary: zpool dry-run layouts omit any cache devices specified
Product: Base System Reporter: Christian Campbell <dcamp>
Component: kernAssignee: freebsd-fs (Nobody) <fs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: 10.2-RELEASE   
Hardware: amd64   
OS: Any   

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.