public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] pve8to9: don't report already migrated files as needing to be migrated
@ 2025-08-01  9:13 Shannon Sterz
  2025-08-01  9:29 ` Michael Köppl
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shannon Sterz @ 2025-08-01  9:13 UTC (permalink / raw)
  To: pve-devel

the find command previously also found the already migrated rrd files
under `pve-{vm,node,storage}-9.0` and reported them as needing to
migrate them. the provided command to would of course not migrate them
so the warning persisted even after the command was run.

limit the find command to the old `pve2-` prefixed folders to prevent
that.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 PVE/CLI/pve8to9.pm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/PVE/CLI/pve8to9.pm b/PVE/CLI/pve8to9.pm
index 4d61cd831..834432b95 100644
--- a/PVE/CLI/pve8to9.pm
+++ b/PVE/CLI/pve8to9.pm
@@ -1880,7 +1880,17 @@ sub check_rrd_migration {
         };
         eval {
             run_command(
-                ['find', '/var/lib/rrdcached/db', '-type', 'f', '!', '-name', '*.old'],
+                [
+                    'find',
+                    '/var/lib/rrdcached/db',
+                    '-path',
+                    '*pve2-*',
+                    '-type',
+                    'f',
+                    '!',
+                    '-name',
+                    '*.old',
+                ],
                 outfunc => $count_occurences,
                 noerr => 1,
             );
-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-01 11:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-01  9:13 [pve-devel] [PATCH manager] pve8to9: don't report already migrated files as needing to be migrated Shannon Sterz
2025-08-01  9:29 ` Michael Köppl
2025-08-01  9:29 ` Shannon Sterz
2025-08-01  9:32 ` Daniel Herzig
2025-08-01 11:21 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal