Hi!
in an defective and mostly repaired (with RESTIC_FEATURES=repair-packs-v1 restic repair packs) archive, i now want to repair the index. But restic seems to do nothing…
root@xp8rz2main1:~# restic repair index -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
getting pack files to read...
rebuilding index
[0:01] 100.00% 44990 / 44990 packs processed
deleting obsolete index files
[0:00] 100.00% 17 / 17 files deleted
done
root@xp8rz2main1:~# restic repair index -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
getting pack files to read...
rebuilding index
[0:01] 100.00% 44990 / 44990 packs processed
deleting obsolete index files
[0:00] 100.00% 17 / 17 files deleted
done
root@xp8rz2main1:~# restic repair index -vv -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
getting pack files to read...
rebuilding index
[0:00] 100.00% 44990 / 44990 packs processed
deleting obsolete index files
removed <index/8819f98980>
removed <index/caa121e019>
removed <index/c081808a6f>
removed <index/0a3a07857c>
removed <index/03f8fb9ad9>
removed <index/38bbc899dc>
removed <index/858ad59b9e>
removed <index/f95a2c7222>
removed <index/81a02aff28>
removed <index/cb42557d6f>
removed <index/59ba1086a1>
removed <index/5e6079ef0b>
removed <index/cf47a66f63>
removed <index/1fcce1e371>
removed <index/b23bed36db>
removed <index/fc8f39c407>
removed <index/2fa3cbe89f>
[0:00] 100.00% 17 / 17 files deleted
done
restic tells me 17 / 17 files deleted again and again…
How to debug that? How to get the files restic wants to delete?
tried
root@xp8rz2main1:~# find /srv/restic_images_01/pb/ -iname "*8819f98980*" with no results.
Greets
one restic prune did something other, now the old problem:
root@xp8rz2main1:/srv/restic_images_01/pb# restic -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd prune
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
[0:00] 100.00% 17 / 17 index files loaded
loading all snapshots...
finding data that is still in use for 234 snapshots
[0:14] 100.00% 234 / 234 snapshots
searching used packs...
collecting packs for deletion and repacking
[0:00] 100.00% 44990 / 44990 packs processed
to repack: 1682 blobs / 908.599 MiB
this removes: 1346 blobs / 800.967 MiB
to delete: 5642 blobs / 4.314 GiB
total prune: 6988 blobs / 5.096 GiB
remaining: 810304 blobs / 731.761 GiB
unused size after prune: 37.769 GiB (5.16% of remaining size)
repacking packs
[0:06] 100.00% 117 / 117 packs repacked
rebuilding index
[0:01] 100.00% 44616 / 44616 packs processed
deleting obsolete index files
[0:00] 100.00% 17 / 17 files deleted
removing 381 old packs
[0:00] 100.00% 381 / 381 files deleted
done
root@xp8rz2main1:/srv/restic_images_01/pb# restic repair index -vvv -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
getting pack files to read...
rebuilding index
[0:01] 100.00% 44616 / 44616 packs processed
deleting obsolete index files
removed <index/e2e56917a5>
removed <index/b398dc453f>
removed <index/37d073d2b2>
removed <index/bf0a303d4f>
removed <index/47d8d49ffe>
removed <index/2518c3e535>
[0:00] 100.00% 6 / 6 files deleted
done
root@xp8rz2main1:/srv/restic_images_01/pb# restic repair index -vvv -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
getting pack files to read...
rebuilding index
[0:01] 100.00% 44616 / 44616 packs processed
deleting obsolete index files
removed <index/e1a96bebc9>
removed <index/d92487c8fc>
removed <index/2c6c439642>
removed <index/037ba8dd82>
removed <index/cf0867fead>
removed <index/1b2c3af594>
removed <index/7ce6f73246>
removed <index/669aa8184b>
removed <index/58e5b6e5ee>
removed <index/dd9a5d02b1>
removed <index/3bc5ffb0a1>
removed <index/775cba8228>
removed <index/05c65da1b7>
removed <index/1273010a4a>
removed <index/48cf464214>
removed <index/463c5aa40b>
removed <index/0acace466a>
[0:00] 100.00% 17 / 17 files deleted
done
root@xp8rz2main1:/srv/restic_images_01/pb# restic repair index -vvv -r local:/srv/restic_images_01/pb/ --password-file=/etc/ltr/pb_repo.pwd
repository 657c1437 opened (version 2, compression level auto)
loading indexes...
getting pack files to read...
rebuilding index
[0:00] 100.00% 44616 / 44616 packs processed
deleting obsolete index files
removed <index/32ae93716a>
removed <index/f2793b0fff>
removed <index/7bf7d36058>
removed <index/cd2a2192c8>
removed <index/8a8f2b269b>
removed <index/15a1d198fd>
removed <index/e750420ceb>
removed <index/3a029493b5>
removed <index/d56aee90ab>
removed <index/2459527e86>
removed <index/b8a16ad461>
removed <index/b4097d909c>
removed <index/4810059f18>
removed <index/7d2b272ead>
removed <index/33fba1d77d>
removed <index/2b01fa785d>
removed <index/b76242faf7>
[0:00] 100.00% 17 / 17 files deleted
done
doscott
November 6, 2023, 11:23am
3
Your actions are generating new index files, and when successfully written out, the old ones are deleted. Nothing is wrong, what you see is normal. Index files speed things up, they are not crucial to the integrity of your repository.