From: Will Dormann <wdormann@gmail.com>
To: linux-xfs@vger.kernel.org
Subject: Silent skipping of file during xfsrestore
Date: Sun, 27 Nov 2016 20:49:13 -0500 [thread overview]
Message-ID: <b6f1eb73-c038-1573-c026-c38ae8eea2f0@gmail.com> (raw)
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? 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
Thanks!
-WD
next reply other threads:[~2016-11-28 1:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-28 1:49 Will Dormann [this message]
2016-11-28 1:59 ` Silent skipping of file during xfsrestore Dave Chinner
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=b6f1eb73-c038-1573-c026-c38ae8eea2f0@gmail.com \
--to=wdormann@gmail.com \
--cc=linux-xfs@vger.kernel.org \
/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).