From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 29D011FF0AE for ; Tue, 15 Sep 2026 18:04:56 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id CED97215D2; Tue, 15 Sep 2026 18:04:55 +0200 (CEST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 15 Sep 2026 18:04:50 +0200 Message-Id: From: "Shan Shaji" To: "Shan Shaji" , Subject: Re: [RFC PATCH proxmox-backup 0/4] fix #7903: rebuild local S3 chunk markers X-Mailer: aerc 0.20.0 References: <20260915155935.135460-1-s.shaji@proxmox.com> In-Reply-To: <20260915155935.135460-1-s.shaji@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1789488276265 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.447 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium 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: 34YTJD4GXCJZKQMLLJRSYWKVA2RAAUJ7 X-Message-ID-Hash: 34YTJD4GXCJZKQMLLJRSYWKVA2RAAUJ7 X-MailFrom: s.shaji@proxmox.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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Ahh, added the wrong bugzilla entry in the cover letter subject. It should be #7908. Sorry for the noise. - https://bugzilla.proxmox.com/show_bug.cgi?id=3D7908 On Tue Sep 15, 2026 at 5:59 PM CEST, Shan Shaji wrote: > Sending this as an RFC to get an initial feedback. I'd really appreciate > any suggestions or pointers to anything I may have missed. > > Reusing an S3-backed datastore currently restores the backup metadata to > the local cache without creating local chunk markers. A garbage collectio= n > run is then needed to recreate markers for chunks referenced by the backu= p > indexes. > > This series addresses #7908 by listing the chunk objects in S3 and creati= ng > zero-byte local markers when a datastore is recreated with > --reuse-datastore. It also adds an optional rebuild-chunk-markers paramet= er > to the s3-refresh API and exposes it through proxmox-backup-manager: > > proxmox-backup-manager datastore s3-refresh --rebuild-chunk-m= arkers true > > The option is disabled by default for explicit refreshes. When enabled, > it creates markers for all chunk objects with valid chunk keys, including > chunks not referenced by the restored backup indexes. Existing cached > chunk files are replaced with empty markers. > > Shan Shaji (4): > datastore: factor out s3 chunk objects pagination into a helper > fix #7908: datastore: create zero-byte markers when re-using datastore > datastore: api: add option to rebuild S3 chunk markers > datastore: backup-manager: expose option to rebuild s3 chunk markers > > pbs-datastore/src/datastore.rs | 120 +++++++++++++++----- > src/api2/admin/datastore.rs | 23 +++- > src/api2/config/datastore.rs | 6 +- > src/bin/proxmox_backup_manager/datastore.rs | 7 ++ > 4 files changed, 121 insertions(+), 35 deletions(-) > > -- > 2.47.3