Différences
Ci-dessous, les différences entre deux révisions de la page.
technique:adminsys:backup:troubleshooting [2022/09/25 06:33] – créée rdelaage | technique:adminsys:backup:troubleshooting [2022/09/25 06:34] (Version actuelle) – rdelaage | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | # Troubleshooting | ||
+ | ## Trop de place prise | ||
+ | |||
+ | Exemple : le disque de backup explose. | ||
+ | |||
+ | Étrange : on regarde sur `pica01` au hasard la taille prise par les backups sur le dépôt distant Restic. Pour les données de `pica01`, il se trouve sur `pica03`. | ||
+ | |||
+ | ```bash | ||
+ | $ sudo autorestic -vvv -b pica03 exec stats | ||
+ | enter password for repository: | ||
+ | repository b0ca7112 opened successfully, | ||
+ | scanning... | ||
+ | Stats in restore-size mode: | ||
+ | Snapshots processed: | ||
+ | Total File Count: | ||
+ | Total Size: | ||
+ | ``` | ||
+ | |||
+ | Note : `autorestic` tagge chaque snapshot avec la syntaxe `ar: | ||
+ | |||
+ | ```bash | ||
+ | $ sudo autorestic -b pica03 exec stats -- --tag ar: | ||
+ | ``` | ||
+ | |||
+ | Pour revenir à notre exemple précédents, | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | ```bash | ||
+ | $ sudo autorestic -vvv forget --prune -a | ||
+ | repository b0ca7112 opened successfully, | ||
+ | unable to create lock in backend: repository is already locked by PID 886695 on pica01 by root (UID 0, GID 0) | ||
+ | lock was created at 2022-06-10 08:19:04 (654h30m9.367618574s ago) | ||
+ | storage ID 48ba5a2f | ||
+ | the `unlock` command can be used to remove stale locks | ||
+ | ``` | ||
+ | |||
+ | On voit qu'un fichier de lock existe depuis le 10 juin (à la date du 07 juillet). Ce fichier de lock est obsolète mais empêche la suppression de fichier du dépôt. Comme le suggère la commande, on peut forcer à supprimer le verrou avec la commande `unlock` de restic. | ||
+ | |||
+ | < | ||
+ | |||
+ | Exemple : | ||
+ | |||
+ | ```bash | ||
+ | $ sudo autorestic -vvv -b pica03 exec unlock | ||
+ | repository b0ca7112 opened successfully, | ||
+ | successfully removed locks | ||
+ | ``` | ||
+ | |||
+ | On peut à présent exécuter la commande. |