From nobody Wed Oct 26 13:32:48 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4My8rM4g2cz4g8F7 for ; Wed, 26 Oct 2022 13:32:51 +0000 (UTC) (envelope-from jmmv@outlook.com) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2048.outbound.protection.outlook.com [40.92.19.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4My8rL5dMFz3CWy for ; Wed, 26 Oct 2022 13:32:50 +0000 (UTC) (envelope-from jmmv@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FnquXin10YCTCEwRjycwWT2OYpCnTPk1LJVG42/4ltO7ex9Z109WOjWieGJxSyckIVxbchXqg3lHkp1myRozQJyXqWwRgektiXJR/SUBi+Ne6z++GmPBxV7i2s8cnB2jZBpLsVR7YmggscDMAj1lwgr/MrTbGR4i1Pf9/vM6OA8IuQi7EHFDct8+5yniKMqBDfRaGSttQ7X3yKlOootyYwJ7+4s0R7hdx0QC1hR2Fd3H1QJCD6nrNbnnFj5IbUYxS+DmXIQW9y68YYvGj9pzNRIrNgmxJc+PB6OaTWX6+3EO+daH4CGZlP5xcMQ/55pU99SnAwevrpTtuQZXDwQn6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lCsEwL6g8IxlazHV4+6iv220UVttK93K/oNM4FF04uI=; b=e6fW++1Xb9+59PwklErrUIVt+TSr9j4qfZyKmRx4xTSQXK3II2WdTxAngyBKdd53bAjimIbZ/GXZw7I2fIrsAnvXAY1BwyEE+x1SrZ1H7Kz1SVBiZkOTLbx1W8eg9w5GH3MtzbPzN5ciAWqybH4ClRP1tFHO1LC7VnjipuzTqG1GAJmLVhUMM3LNl4zOYmKCKODW5yXsEvUjPMHe3wqGXMrEmhqrwrJERVYzIGSYGuDrDVz1M2siuNEAbantFFKJODkUN24Cr+FhMz6R1vH9y0qQUi/NgilycyTXd8omtaR1+Ipa3h9B81l3F/nPTBGtSK3tlHJU7lspJ8dtG68jmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lCsEwL6g8IxlazHV4+6iv220UVttK93K/oNM4FF04uI=; b=TgCVQrx4z8f9VvgKaIzgWL3PGL5JWjZn3E0ErDP0iWGzDY5MeIiR1U4776qghO/9uPRwtd2fxC9Cq/TV6gWs3mqAbi3XKRBV4UACoW2d0Od8a4fr/V9siTgYHmnn+UQyls72NBMvUCCdsjDcUt34UwwwY3pan63E0xhbpDPSK0XWyorEUXeJ/qpXcRK3XqJYyHp1hRqvNPWYPo2VauCbuxALEUru75TFYvButQaNxzMAEA6Y2fGrlGvdfpbjQIz80hLjuHsRr3FpGj4SjAAki82fRF3k8/4LQVTbnej0QN4FVkCE/pldYpSFrPUQMJYUtOr6t02dnsNlIdQM5kka5Q== Received: from PH0PR20MB3704.namprd20.prod.outlook.com (2603:10b6:510:20::22) by MW4PR20MB4453.namprd20.prod.outlook.com (2603:10b6:303:18a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Wed, 26 Oct 2022 13:32:48 +0000 Received: from PH0PR20MB3704.namprd20.prod.outlook.com ([fe80::99c0:976f:71c:7a36]) by PH0PR20MB3704.namprd20.prod.outlook.com ([fe80::99c0:976f:71c:7a36%2]) with mapi id 15.20.5746.028; Wed, 26 Oct 2022 13:32:48 +0000 From: To: "freebsd-questions@FreeBSD.org" Subject: Setting up ZFS L2ARC on a zvol Thread-Topic: Setting up ZFS L2ARC on a zvol Thread-Index: AQHY6T9lLIsrziw38UqNOULsDnCrqw== Sender: Julio Merino Date: Wed, 26 Oct 2022 13:32:48 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [qoNg1or2eexoPsmxKPo6ayj9bj1UDV9j] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR20MB3704:EE_|MW4PR20MB4453:EE_ x-ms-office365-filtering-correlation-id: 8daba01a-b909-4a11-0b62-08dab75692fc x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ou9ha5pUa9WNww2GuDKGDPiCKCM1pxcXQre0zLUbVhJ2U4O2ZnFt+UnnbZ+GFXpQP/L1eQQ7wQDrRRFMQkpDDc29U7iQ7v3tWQnJ7RRlNIlVR52Dwh/IMfU1VVGQQyd5ilm8Li5k8fNsWyxugy0eOSUhOlHcw7PENs4pL3j83tjKkLv3b4arJ6ezzHTs9vz4TNkl8OF7lqSzd7uxm9xkK4kkQbxFx/7b89mNQHlX0+97pe7FynQAZcHS1KKNjK77N7OonFl9VibweDmv8e6QwXhfvIwkNsLhMNHIPZ3jE+ba25ch3kKkTH2QQNtQXHSLfi7c7yEekVTlM9RJyrNJmZJc1mWVYzBddq089l7Fpk1JMHKVVz7qPitgiQR7SGhpPetowZ9psAFw2MThIRAWAJ1UA24q82FXFlcHpuWaO31SGBe5uU0JTT71W87miqYqKD4eEIYPPOLfSUQid2JJAdD5dyhiVaLS5JbovNS9pURv5wYzAFt3LY2MYu+2fbP7aNWHqVHxjhsBrhefsNq/WFtezHoPeNlSMjrVH3uqVJXMdkCDv5MJvxRBHOsZVIc1jjFC9N8J+NSfCQFChfj2Yu7qhza23z1rsZecHbSqWE1SVsB8fnkMZwJ2UmbKN1djIKCLEBbG9ZXVYcZ8eVFNEA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Zjyf5/tpPTNni3ho9DtmPPUTFhn/O5zYDhA7s661SDr0hkYnnHOBCATMP0?= =?iso-8859-1?Q?n6tM6ZNztMRWn80xCXhGkKs6KTLhUtHtwTEumRbFJJ1ev2mnK1HJnkLEFQ?= =?iso-8859-1?Q?KUNYmXKM65kf/3B4miVv3l1P5gKY2QHtAK6j+ZPPVNjjLPpkm1jvJcEWD3?= =?iso-8859-1?Q?sC1vag+Y1iZPqOe1fsf7GzlPkaKoTflGgX+G9JGT6ibN7kgAUGwNTX2m7A?= =?iso-8859-1?Q?srBA3TIYQf5zGCLBZ+ZWtdQngyVRjfgsiMk7+8LRREo+Y9PbyauzMfLY88?= =?iso-8859-1?Q?UmysGj+/wwhGvzpWAd2f/r/RLA6zVJfC9OBrguJMLZd6lG7R8EKh2N5JbD?= =?iso-8859-1?Q?B+SzxxRDFxnYnAxz5DzR2GEAC6VVDhSPkMuijt5DgJ3VIrK0ul+lpCRP4W?= =?iso-8859-1?Q?Tlsqpwb5rMyNA5u/HmnnXyhAqP6SWX1lk1rJUcl46b9WlsCwkjqALhjGoD?= =?iso-8859-1?Q?Y2ibP0tuMjeIDhUzK3KCEbhnP1NmoWutrV9whTuT3h96xoN3IIi0h54nCB?= =?iso-8859-1?Q?e8QqnoK8pDMHrQEusORWM198T3p6ThrB5n+qX1EKc7bNha8AV0TZjQPlwv?= =?iso-8859-1?Q?vxUs9hBbz4s5iBxF8S2tzxS6OkGHiWMDms6ge541R0CZRnGbIr3iI0n54s?= =?iso-8859-1?Q?4jgEwoTzbWiIXRTnawJJSIHujO2Vieyk2EELhP3JEcghHHbhppINMRt3i5?= =?iso-8859-1?Q?4lRu5dg4k01p1Y7khNi5/hJNI0imOGIAy8duIUZD5y9hedkqj6l0NxKKVg?= =?iso-8859-1?Q?x+WrfbmvmQtB7iYdKnoF1MUDBj3hxN4u+PtlUJTTIdKQRDLDjFgNDsIVjM?= =?iso-8859-1?Q?EZY6Jxlv/Pcy2rz7+F4sc7fHiqizFL4AzWSw3YA32PIZ9ac88zaHii9vwC?= =?iso-8859-1?Q?7thD92qdyxi+uT+fq9E05nn9d05rYFx8u2ttrChkOXoZ1nTMJyx4JRNTaO?= =?iso-8859-1?Q?ng1nGUByoKijFvT2CxPiXzzk7mCV/X1TGgizli3xeiiDQ3hTcywb4SupFd?= =?iso-8859-1?Q?6EEAG05cdhEvkDdpdByqVY/nLMKM3TVOmQdT+IRiERh7+3oiFLr/LqcHJm?= =?iso-8859-1?Q?DsKpXpkCcuOBohelGQn+vKjLzveXXXRR7JG44NRVUL7Qhff0CajFQvwcbg?= =?iso-8859-1?Q?w8M9hhnDXiRHk+Q5DUdbKM7e0kRnsIDRMmp96IP2pw9W/Vo/8IMEEdgvk0?= =?iso-8859-1?Q?uuK3MZu+H3N10naJzRKMJFMjImAchfV0j8xRpCoHGwvCL/fGFmP8lgHIfP?= =?iso-8859-1?Q?vWrIJ21xLlxYN8Y9LPtBH0kUSFgWXMsUpt4xPTBnLmA2jTnAarOFhrAwUG?= =?iso-8859-1?Q?WY+9?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR20MB3704.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 8daba01a-b909-4a11-0b62-08dab75692fc X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2022 13:32:48.6939 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR20MB4453 X-Rspamd-Queue-Id: 4My8rL5dMFz3CWy X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=TgCVQrx4; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=none; spf=pass (mx1.freebsd.org: domain of jmmv@outlook.com designates 40.92.19.48 as permitted sender) smtp.mailfrom=jmmv@outlook.com X-Spamd-Result: default: False [-4.20 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[julio@meroh.net,jmmv@outlook.com]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FREEMAIL_ENVFROM(0.00)[outlook.com]; RCVD_IN_DNSWL_NONE(0.00)[40.92.19.48:from]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[outlook.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEFALL_USER(0.00)[jmmv]; FROM_NO_DN(0.00)[]; DMARC_NA(0.00)[meroh.net]; FROM_NEQ_ENVFROM(0.00)[julio@meroh.net,jmmv@outlook.com]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[outlook.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Hello,=0A= =0A= I'm setting up a new machine in which I have an NVMe drive and a bunch of h= ard disks. The hard disks are going to be a ZFS pool and the NVMe drive is = going to be the root file system + the L2ARC for the pool.=0A= =0A= Now... I'm considering using ZFS as well for the root file system (as a sep= arate single-drive pool) in order to simplify admin operations: I want to h= ost 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.=0A= =0A= And here comes the question: can the L2ARC of the hard disk pool be backed = by a zvol on the NVMe pool (again, so that I don't have to use fixed-size p= artitions)?=0A= =0A= I gave a simple try to this setup and it's not working, so I'm wondering if= this is just not a good idea and thus is unsupported, or if there is a bug= :=0A= =0A= root@think:~ # zfs create -V 16G -o primarycache=3Dnone zroot/l2arg=0A= root@think:~ # zpool add scratch cache zvol/zroot/l2arc=0A= cannot add to 'scratch': no such pool or dataset=0A= root@think:~ # Oct 26 05:45:28 think ZFS[3677]: vdev problem, zpool=3Dscrat= ch path=3D/dev/zvol/zroot/l2arc type=3Dereport.fs.zfs.vdev.open_failed=0A= root@think:~ # ls /dev/zvol/zroot/l2arc=0A= /dev/zvol/zroot/l2arc=0A= =0A= Thanks!=