Bug 204483

Summary: zpool dry-run layouts omit any cache devices specified
Product: Base System Reporter: Christian Campbell <dcamp>
Component: kernAssignee: Bugmeister <bugmeister>
Status: Closed Overcome By Events    
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-02-10 23:55:10 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
Please re-open if it is still a problem on a supported version.