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 16B711FF183 for ; Wed, 19 Nov 2025 15:32:32 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8312BF86D; Wed, 19 Nov 2025 15:32:37 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Wed, 19 Nov 2025 15:31:47 +0100 Message-ID: <20251119143148.9383-1-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1763562692646 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.048 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_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_SHORT 0.001 Use of a URL Shortener for very short URL SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup v2] etc: provide and enable mount unit for /run/proxmox-backup X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" Since the introduction of per-chunk file locks for datastores with s3 backend, the inodes on the tmpfs backing /run/proxmox-backup might be to limited, the kernel dynamically calculating the limit based on available system memory [0]. To not limit the number of inodes, provide a systemd mount unit to create a dedicated tmpfs for /run/proxmox-backup. The mount unit is only enabled but not started by dh_installsystemd, so this has only effect after a reboot. [0] https://docs.kernel.org/filesystems/tmpfs.html Fixes: https://forum.proxmox.com/threads/176228/ Signed-off-by: Christian Ebner --- Changes since version 1 (thanks @Fabian): - Drop unneeded systemctl enable ... - Add comment for why the inodes are unlimited - Correctly set mountpoint uid:gid debian/proxmox-backup-server.install | 1 + "etc/run-proxmox\\x2dbackup.mount" | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 "etc/run-proxmox\\x2dbackup.mount" diff --git a/debian/proxmox-backup-server.install b/debian/proxmox-backup-server.install index d06f026cf..11dd037e8 100644 --- a/debian/proxmox-backup-server.install +++ b/debian/proxmox-backup-server.install @@ -6,6 +6,7 @@ etc/proxmox-backup-daily-update.timer /usr/lib/systemd/system/ etc/proxmox-backup-proxy.service /usr/lib/systemd/system/ etc/proxmox-backup.service /usr/lib/systemd/system/ etc/removable-device-attach@.service /usr/lib/systemd/system/ +etc/run-proxmox\x2dbackup.mount /usr/lib/systemd/system/ usr/bin/pmt usr/bin/pmtx usr/bin/proxmox-tape diff --git "a/etc/run-proxmox\\x2dbackup.mount" "b/etc/run-proxmox\\x2dbackup.mount" new file mode 100644 index 000000000..cad35594d --- /dev/null +++ "b/etc/run-proxmox\\x2dbackup.mount" @@ -0,0 +1,14 @@ +[Unit] +Description=Mount tmpfs at /run/proxmox-backup +Conflicts=umount.target +Before=local-fs.target umount.target + +[Mount] +Type=tmpfs +What=tmpfs +Where=/run/proxmox-backup +# Unlimited inodes as this stores per-chunk file locks +Options=rw,nosuid,nodev,noexec,relatime,uid=34,gid=34,nr_inodes=0,mode=755,inode64 + +[Install] +WantedBy=local-fs.target -- 2.47.3 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel