[Borgbackup] what do I do with inconsistencies?
Thorsten von Eicken
tve at voneicken.com
Thu Jun 16 13:13:30 EDT 2016
The host making the backups is ubuntu 14.04 on x86_64:
# borg -V
borg 1.0.3
The server holding the archive runs arch linux on ARM (an ODROID):
# borg -V
borg 1.0.4.dev283+ng8083799
There was a previous backup error due to incorrect permissions on some
files causing writes to fail (sorry, I hadn't put 2&2 together):
Remote: PermissionError: [Errno 13] Permission denied:
'/big/h/home/data/0/245'
Last night I reran another check with repair, and now I just re-ran a
check without repair:
# borg check --show-rc --repair backup at backup:/big/h/home
'check --repair' is an experimental feature that might result in data loss.
Type 'YES' if you understand this and want to continue: YES
104 orphaned objects found!
Archive consistency check complete, problems found.
# borg check --show-rc backup at backup:/big/h/home
borg.repository Remote: Index object count mismatch. 560978 != 561083
borg.repository Remote: Completed repository check, errors found.
terminating with warning status, rc 1
Some details on the incorrect permissions, the problem is root ownership
instead of backup:
# ls -ls
total 29616
4 -rw------- 1 backup backup 26 Jun 4 05:00 README
4 -rw------- 1 backup backup 635 Jun 4 05:02 config
4 drwx------ 3 backup backup 4096 Jun 4 05:02 data
4 -rw------- 1 root root 526 Jun 5 20:21 hints.245
29596 -rw------- 1 root root 30304298 Jun 5 20:21 index.245
4 -rw------- 1 backup backup 31 Jun 14 19:14 lock.roster
and
# ls -ls data/0
...
4 -rw------- 1 backup backup 17 Jun 5 10:43 235
4 -rw------- 1 backup backup 17 Jun 5 10:43 237
4 -rw------- 1 root root 17 Jun 5 20:06 239
4 -rw------- 1 root root 17 Jun 5 20:06 241
4 -rw------- 1 root root 17 Jun 5 20:21 243
9020 -rw------- 1 root root 9234533 Jun 5 20:21 244
4 -rw------- 1 root root 17 Jun 5 20:21 245
330628 -rw------- 1 backup backup 338561277 Jun 4 05:40 54
129184 -rw------- 1 backup backup 132281434 Jun 4 05:46 58
...
On 6/16/2016 6:40 AM, Adrian Klaver wrote:
> On 06/15/2016 11:48 PM, Thorsten von Eicken wrote:
>> This is a pretty new repository with just a couple of archives and I'm
>> having consistency issues that don't seem to get repaired:
>>
>> == Starting backup for repo home at 2016-06-15T09:49-0700
>> Archive: backup at backup:/big/h/home::home-2016-06-15T09:49-0700
>> borg create --show-rc -s -e .cache -C lzma
>> backup at backup:/big/h/home::home-2016-06-15T09:49-0700 /big/home /etc
>> /root /big/usr-local
>> == Starting check for repo home
>> Repository: backup at backup:/big/h/home
>> borg check --show-rc --last 3 backup at backup:/big/h/home
>> borg.repository Remote: Index object count mismatch. 549207 != 549310
>> borg.repository Remote: Completed repository check, errors found.
>> terminating with warning status, rc 1
>>
>> and later I tried to repair it:
>>
>> root at h /b/h/tve# borg check --show-rc --repair backup at backup:/big/h/home
>> 'check --repair' is an experimental feature that might result in data
>> loss.
>> Type 'YES' if you understand this and want to continue: YES
>> 103 orphaned objects found!
>> Archive consistency check complete, problems found.
>> root at h /b/h/tve# borg check --show-rc --repair backup at backup:/big/h/home
>> 'check --repair' is an experimental feature that might result in data
>> loss.
>> Type 'YES' if you understand this and want to continue: YES
>> 1 orphaned objects found!
>> Archive consistency check complete, problems found.
>>
>> Suggestions?
>
> I do not know the answer, but I do have some questions:
>
> What version of Borg?
>
> What are the OSes and file systems involved?
>
> What is the history of the repo?
> In other words have you changed the Borg version that was backing up
> to it?
>
> Have there been any incomplete/disconnected create runs?
>
> After your last repair what does check show without --repair?
>
>>
>>
>>
>> _______________________________________________
>> Borgbackup mailing list
>> Borgbackup at python.org
>> https://mail.python.org/mailman/listinfo/borgbackup
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/borgbackup/attachments/20160616/64248714/attachment.html>
More information about the Borgbackup
mailing list