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 A0EC71FF15E for ; Tue, 3 Jun 2025 15:12:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id F019A19C5A; Tue, 3 Jun 2025 15:12:33 +0200 (CEST) From: Alexander Abraham To: pve-devel@lists.proxmox.com Date: Tue, 3 Jun 2025 15:12:24 +0200 Message-Id: <20250603131224.122042-1-a.abraham@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.307 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_ASCII_DIVIDERS 0.8 Email that uses ascii formatting dividers and possible spam tricks KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH pve-docs v8] fix #5644: Moved the section on swap partitions X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" The section on running swap on ZFS was split into two parts. The part describing setting the swappiness level was moved to a separate file and the part about creating swap partitions on a ZFS volume was replaced with a warning about doing so. Signed-off-by: Alexander Abraham --- Changes in v8: * Moved the changelog below the three dashes. Changes in v7: * Keep ZFS warning in its original file. * Corrected some formatting errors. local-zfs.adoc | 49 ++++++++++--------------------------------------- pve-swap.adoc | 35 +++++++++++++++++++++++++++++++++++ sysadmin.adoc | 2 ++ 3 files changed, 47 insertions(+), 39 deletions(-) create mode 100644 pve-swap.adoc diff --git a/local-zfs.adoc b/local-zfs.adoc index c64fb27..bfd2295 100644 --- a/local-zfs.adoc +++ b/local-zfs.adoc @@ -1,9 +1,10 @@ [[chapter_zfs]] ZFS on Linux ------------ -ifdef::wiki[] -:pve-toplevel: -endif::wiki[] + +-ifdef::wiki[] +-:pve-toplevel: +-endif::wiki[] ZFS is a combined file system and logical volume manager designed by Sun Microsystems. Starting with {pve} 3.4, the native Linux @@ -620,48 +621,18 @@ time this value changes: ---- You *must reboot* to activate these changes. -==== +==== [[zfs_swap]] SWAP on ZFS ~~~~~~~~~~~ -Swap-space created on a zvol may generate some troubles, like blocking the -server or generating a high IO load, often seen when starting a Backup -to an external Storage. - -We strongly recommend to use enough memory, so that you normally do not -run into low memory situations. Should you need or want to add swap, it is -preferred to create a partition on a physical disk and use it as a swap device. -You can leave some space free for this purpose in the advanced options of the -installer. Additionally, you can lower the -``swappiness'' value. A good value for servers is 10: - ----- -# sysctl -w vm.swappiness=10 ----- - -To make the swappiness persistent, open `/etc/sysctl.conf` with -an editor of your choice and add the following line: - --------- -vm.swappiness = 10 --------- - -.Linux kernel `swappiness` parameter values -[width="100%",cols="