From: Dave Chinner <david@fromorbit.com>
To: Will Dormann <wdormann@gmail.com>
Cc: linux-xfs@vger.kernel.org
Subject: Re: Silent skipping of file during xfsrestore
Date: Mon, 28 Nov 2016 12:59:56 +1100 [thread overview]
Message-ID: <20161128015956.GX28177@dastard> (raw)
In-Reply-To: <b6f1eb73-c038-1573-c026-c38ae8eea2f0@gmail.com>
On Sun, Nov 27, 2016 at 08:49:13PM -0500, Will Dormann wrote:
> Hi folks,
>
> I recently did a restore of a xfsdump backup and I noticed that an
> important file was missing after the restore completed. I tried going
> back in using interactive mode to see what was up:
>
> -----
>
> -> ls /etc/mythtv
> 4032 session-settings
> 4127166 session-settings~
> 50343916 config.xml
> 4884092 mysql.txt~
>
> -> add /etc/mythtv
>
> -> extract
>
> --------------------------------- end dialog
> ---------------------------------
>
> xfsrestore: mkdir etc
> xfsrestore: mkdir etc/mythtv
> xfsrestore: dump session label: ""
> xfsrestore: dump session id: f132cc65-5bd4-4a58-a810-52398fe99326
> xfsrestore: stream 0, object 0, file 0
> xfsrestore: restoring non-directory files
> xfsrestore: media file 0 in object 0 of stream 0
> xfsrestore: restoring etc/mythtv/session-settings (4032 221708883)
> xfsrestore: restoring regular file ino 4032 etc/mythtv/session-settings
> xfsrestore: truncating etc/mythtv/session-settings from 0 to 1170
> xfsrestore: restoring etc/mythtv/session-settings~ (4127166 4079738789)
> xfsrestore: restoring regular file ino 4127166 etc/mythtv/session-settings~
> xfsrestore: truncating etc/mythtv/session-settings~ from 0 to 1169
> xfsrestore: restoring etc/mythtv/mysql.txt~ (4884092 1828724895)
> xfsrestore: restoring regular file ino 4884092 etc/mythtv/mysql.txt~
> xfsrestore: truncating etc/mythtv/mysql.txt~ from 0 to 99
> xfsrestore: restore complete: 125 seconds elapsed
> xfsrestore: Restore Status: SUCCESS
> root@jerky:/mnt/rescue#
>
>
> -----
>
>
> Note that the file "config.xml" is present in the directory listing, but
> when the restore completes with a SUCCESS status, that file is *not*
> present.
>
> My backup command is:
> xfsdump -e -l0 - / | pigz > $backupdir/mythbuntu.dgz
>
> My restore command is:
> pigz -d -c mythbuntu.dgz | xfsrestore -p 10 -r - /mnt/restore
>
>
> I don't see any special attributes set on /etc/mythtv/config.xml:
> $ lsattr /etc/mythtv/config.xml
> ---------------- /etc/mythtv/config.xml
>
> And even so, if a file is excluded, I'd figure that it wouldn't show up
> in the xfsrestore directory listing, right?
>
>
> So what can cause a file to silently be skipped during restore?
Usually nothing. This is typical of xfsdump skipping a file due to
some unexpected occurrence during backup. It's in the dump
inventory as the directory was processed, but if somthing changed
during the dump process (e.g. file gets replaced due to atomic
overwrite via rename) then it may not end up being in the dump.
> I'm
> running the latest xfsdump/xfsrestore provided by Ubuntu 14.04, which is
> 3.1.1. I notice the same symptoms from my recovery environment, which
> is SystemRescueCD 4.2.0
That's /old/. Try running the latest (3.1.6 IIRC) and see if that
fixes the issue.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2016-11-28 2:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-28 1:49 Silent skipping of file during xfsrestore Will Dormann
2016-11-28 1:59 ` Dave Chinner [this message]
2016-11-28 5:00 ` Will Dormann
2016-11-28 8:21 ` Dave Chinner
2016-11-28 13:17 ` Will Dormann
2016-11-28 21:33 ` Dave Chinner
2016-11-28 22:00 ` Will Dormann
2016-11-28 16:10 ` Will Dormann
2016-11-28 16:32 ` Eric Sandeen
2016-11-28 16:43 ` Will Dormann
2016-11-28 17:45 ` Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161128015956.GX28177@dastard \
--to=david@fromorbit.com \
--cc=linux-xfs@vger.kernel.org \
--cc=wdormann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).