Bug 228817 - ZFS zpool create -n does not show cache devices
Summary: ZFS zpool create -n does not show cache devices
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: Bugmeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-07 20:16 UTC by Benedict Reuschling
Modified: 2025-01-26 12:44 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 Benedict Reuschling freebsd_committer freebsd_triage 2018-06-07 20:16:05 UTC
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-01-26 12:44:43 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.
As well, many newer versions of ZFS have been imported.

Please re-open if it is still a problem on a supported version.