From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id CC1EC1FF136 for ; Mon, 06 Apr 2026 06:41:37 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2B0481FF65; Mon, 6 Apr 2026 06:42:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1775450491; cv=none; d=google.com; s=arc-20240605; b=RykfvfS+yv6UdFDkpCVGr495nPN3YvQkfzKnWx1aWUUzhnbzLuhpxqEzDco7W2TzO8 VvKkzHSAKwmDdxrmgexnW7Bvr1RT5yO0CmWSepoHwhl0bXY8/TixzpWQH+4wcXs/0KXG rN8TxXTejDex1jnWqqBaFPpzlaIFDQ3LwzsSl8ViJ4CbAoKvOaNWVV5FgiK/jbk0WjUc 0VGBHtX0xhCmK/bO4Cijh//KV9fDgcQa3BLFMi7BzLZzc0/yyzcSxIY3JoSljcllsCuN HXgdNX7pt0kF8QKp2Sqc/9lflUNvpzVkmK16mUFbu0Uo6DJH0NwoVCAShiQB7xp2H4os l22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6L9QROwBFgR8AS4Kh5Sh+474XPa+zulPW3JlncSrCEU=; fh=qUdnlOw4HMavIAa4vJfUpEe/QUA6LBLHlg5B+iT7exQ=; b=fO5v4FF+GngikvJwRIwCHFw2Ofw1NWyxhN8kA+tywjH2ptTTcDGB+1B5WuZnVmXlhY y5X1y2A3UyFSH05BG/ht0Hc5QSgPXDzCYIFhD1Ep2wULx1H6uqR8gbP17BjAm/q1NciO Z2ChrOQ75BIfD7P1Q1R/uJhp9iGsveI4rWtAUvfA+uFcXS+f2dcG1jev0t5TQJSQIgDV Hr4DsOEBkHMr8duf0kGV4sT2m6gnigV+5kfIAviHin/eV+r4WtbTB5ohIvv88gLM5g0+ x5pPMClZmzcg4deeoyYmjm/FtUG7e4lc07dLewlXgyhkm2sRwAClN6OpAeXR7E2RybsB nXMQ==; darn=lists.proxmox.com ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775450491; x=1776055291; darn=lists.proxmox.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=6L9QROwBFgR8AS4Kh5Sh+474XPa+zulPW3JlncSrCEU=; b=cHfvX80vK3zwDLXhZaArOHT401uJ9jI100cJgP+zOtsmdiDMDNJ+7EraKNv2XBcyF7 umU12UewhYYT3NvBtSU+gx5TVpKgdbpBGQu05mz7o/dHUXFLdOEf1ezM97mL+B6j7k/F FbOoBLNXWU4zTIhcXr2sMkaNvHvAlRBEYuDA/sFO2Ew7jNND3n4OdYvriggfzdeW/BMA +C2Ci/uhzjK99ZK+URfDRNGhktpPcJTDiKDKsyZiw0/0nOl28vRo9XtmN2ISit3gyDJY r3Jfw0dKn+c9kOblUue9GkSwi+pCeHzFCzmTuWS3OZsMGb9UNX8mXTh2PwTZSKPp8sNe wCfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775450491; x=1776055291; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6L9QROwBFgR8AS4Kh5Sh+474XPa+zulPW3JlncSrCEU=; b=a6KpK4A32ONX64qk7NU+f9w0FT7IH7utyg5wrV183cGG+HeoSmb/iFO9aZnZJfqtxn MeqLYp/m0x3xJWuGHBUgWJmeFHEfVDer91ZmoX7uSYudQxvcPiFmBuDwNiN8TX3ki5aJ k1rxuV2DHtHRoy1/voyZUKXnDN81ldSWMJa847vA1MsiSd5c3WC+xik/CfMpi8odmTaZ s1gxitoAdW8eSiUFjboGHQPGFnxHkKeKXRm1iXHFV68CUDnjVApEGao6Rg5xQK5qrNf+ xpuDUKE40iDgceMgRKcih5bcSYOP3y8a6hgvVCJvyRQNpSm8HTYNu/hs5D/I+egwH5ZV 8VTg== X-Gm-Message-State: AOJu0Yzsqm4RyDW3tMDXAyVPeDDSF1GkKldQiIvF+avqG1zJsi8d5eaS /X82J8mjzMMsfN5UXHmnx/nLK9bcYytCsQIOjomUmCMbYzoN7CUKi+LYt9cPIYWFMKHaGkl8f57 XGJsQ//buwrISP2brFp1ougQ85wI2YDgnmhI+ X-Gm-Gg: AeBDies73QCk/9A254HRaJzfces7QWahi3yaZTWLe2bxLlpt8xvJNq2z+XV0f273vdC d++gGSeFCOqbMGArVoe4XxcsUoLgl5/GD1JTqUzzHwn18nPwOevwsVbz+V9pJeNIjMb0LfxuLyo /vidU64ucGxWIYTovD8LMN27HQaIjBQaqgHL+JKbe18FJs/TUQD15aB6Y+KuuIoxN6+M/dpUj+j PNC8UohqoXKqK6Xh14kbfiRbH5qHz6OesYr8+aH8yq61MpH12SOjHPVCUo0axlh+VLqcA6cqAk0 bbWLSzU= X-Received: by 2002:a53:d9d1:0:b0:64e:a3c4:aabe with SMTP id 956f58d0204a3-6504873ee85mr8403745d50.26.1775450489591; Sun, 05 Apr 2026 21:41:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?0JzQuNC60L7Qu9CwINCc0LjQutC+0LvQsA==?= Date: Mon, 6 Apr 2026 07:41:18 +0300 X-Gm-Features: AQROBzCaQ-xczArEukfYsZbhMq2uPrjDisx07F4pHGV7NHjta1SECk5i7x4WQwE Message-ID: Subject: [PATCH docs v2 3/3] add FreeBSD CTL support for ZFS over iSCSI To: pve-devel@lists.proxmox.com Content-Type: text/plain; charset="UTF-8" X-SPAM-LEVEL: Spam detection results: 0 AWL 0.000 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: RLEOFMADLS25LDAPCXV3ESHLDPGYGLTE X-Message-ID-Hash: RLEOFMADLS25LDAPCXV3ESHLDPGYGLTE X-MailFrom: nikolaytihonov2022@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: >>From 8d724a09390fc52671c2c1ef83250c90612527a7 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Mon, 6 Apr 2026 05:17:45 +0300 Subject: [PATCH] storage: document FreeBSD ctld for ZFS over iSCSI --- pve-storage-zfs.adoc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pve-storage-zfs.adoc b/pve-storage-zfs.adoc index c07f534..49d9737 100644 --- a/pve-storage-zfs.adoc +++ b/pve-storage-zfs.adoc @@ -17,6 +17,7 @@ The following iSCSI target implementations are supported: * LIO (Linux) * IET (Linux) * ISTGT (FreeBSD) +* CTL / `ctld` (FreeBSD) * Comstar (Solaris) NOTE: This plugin needs a ZFS capable remote storage appliance, you cannot use @@ -47,7 +48,7 @@ The backend supports the common storage properties `content`, `nodes`, pool:: The ZFS pool/filesystem on the iSCSI target. All allocations are done within that -pool. +pool or dataset. This can also be a nested dataset path, for example `zroot/pve`. portal:: @@ -55,11 +56,13 @@ iSCSI portal (IP or DNS name with optional port). target:: -iSCSI target. +iSCSI target. When using `ctld`, this target must already exist on the remote +FreeBSD host. iscsiprovider:: -The iSCSI target implementation used on the remote machine +The iSCSI target implementation used on the remote machine. `ctld` uses the +native FreeBSD CTL iSCSI target implementation. comstar_tg:: @@ -86,6 +89,11 @@ sparse:: Use ZFS thin-provisioning. A sparse volume is a volume whose reservation is not equal to the volume size. +With FreeBSD `ctld`, configure the target itself on the remote host first, +including any portal or authentication groups required by your deployment. +{pve} then manages inline `lun N` entries below the configured target for the +zvol-backed guest disks. + .Configuration Examples (`/etc/pve/storage.cfg`) ---- @@ -107,6 +115,15 @@ zfs: solaris portal 192.0.2.112 content images +zfs: freebsd-ctl + blocksize 4k + target iqn.2026-03.example:freebsd.pve + pool zroot/pve + iscsiprovider ctld + portal 192.0.2.113 + content images + sparse 1 + zfs: freebsd blocksize 4k target iqn.2007-09.jp.ne.peach.istgt:tank1 -- 2.47.3