[Bug 228817] ZFS zpool create -n does not show cache devices

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 7 20:16:08 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228817

            Bug ID: 228817
           Summary: ZFS zpool create -n does not show cache devices
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: bcr at FreeBSD.org

zpool create -n shows log devices in the dry-run output, but not cache devices.

Steps to reproduce:
# truncate -s 1g disk1
# truncate -s 1g disk2

This output is correct:
# zpool create -n apool `pwd`/disk1 log `pwd`/disk2
would create 'apool' with the following layout:

        apool
          /home/bcr/disk1
        logs
          /home/bcr/disk2

The same command with cache instead of log produces output that is missing the
cache device.

# zpool create -n apool `pwd`/disk1 cache `pwd`/disk2
would create 'apool' with the following layout:

        apool
          /home/bcr/disk1

The behavior is the same with physical devices, too. Tested on FreeBSD 11.1 and
on 12-CURRENT-r334665.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list