Bug 227008 - [ZFS] zfs add -n misses l2arc changes
Summary: [ZFS] zfs add -n misses l2arc changes
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-27 18:19 UTC by Dmitry Morozovsky
Modified: 2021-12-06 17:44 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Morozovsky freebsd_committer freebsd_triage 2018-03-27 18:19:38 UTC
to reproduce:

root# mkdir -p /var/tmp/ztest
root# cd !$
cd /var/tmp/ztest
root# truncate -s 10g zfsbase
root# mdconfig -f zfsbase
md1
root# truncate -s 1g zl2arc
root# mdconfig -f zl2arc
md2
root# zpool create ztest /dev/md1
root# zpool status ztest
  pool: ztest
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        ztest       ONLINE       0     0     0
          md1       ONLINE       0     0     0

errors: No known data errors
root# zpool add -n ztest cache /dev/md2
would update 'ztest' to the following configuration:
        ztest
          md1
root# zpool destroy ztest
root# mdconfig -u 2 -d
root# mdconfig -u 1 -d
root# rm zfsbase zl2arc
Comment 1 Allan Jude freebsd_committer freebsd_triage 2021-12-06 17:44:17 UTC
This was fixed upstream in https://github.com/openzfs/zfs/commit/c24fa4b19a1b117945f3235e014f926fe93b0c5a

So it is fixed in 13.0 and later.