Re: Setting up ZFS L2ARC on a zvol

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Fri, 28 Oct 2022 00:36:59 UTC
On 10/27/22 07:06, julio@meroh.net wrote:
> From: owner-freebsd-questions@freebsd.org on behalf of David Christensen
>> On 10/26/22 06:32, julio@meroh.net wrote:

>>> I'm considering using ZFS as well for the root file system (as a separate single-drive pool) in order to simplify admin operations: I want to host some VMs on the NVMe for speed, and using zvols will be very helpful as I don't have to come up with the partition sizes upfront.

>> Testing on a VirtualBox VM, it looks like you cannot use a ZFS volume as
>> a cache device for another ZFS pool:

 > The question is whether this behavior is intentional or a bug.


It appears to me that the behavior is intentional on FreeBSD 12.3-R; but 
I am not a ZFS developer, just a user.  AIUI 12.3-R uses ZFS on Linux 
code (ZoL).  Perhaps you can get a better answer via that project:

https://zfsonlinux.org/


AIUI FreeBSD 13.1-R uses OpenZFS code.  If you are seeing the behavior 
on 13.1-R, perhaps you can get a better answer via that project:

https://openzfs.org/wiki/Main_Page


David