public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Kendall <wkendall@sgi.com>
To: Gim Leong Chin <chingimleong@yahoo.com.sg>
Cc: xfs@oss.sgi.com
Subject: Re: Interrupted xfsdump Resume Behaviour for Regular Dump File
Date: Tue, 22 Nov 2011 08:30:54 -0600	[thread overview]
Message-ID: <4ECBB21E.9040205@sgi.com> (raw)
In-Reply-To: <1321794858.60631.YahooMailClassic@web190714.mail.sg3.yahoo.com>

If you look at the inventory after an interrupted backup, it
will indicate the stream (and media file) start and end points.
If the end point is "ino 0 offset 0", then a resumed restore
will end up backing up everything again.

If you can, please try this with the top-of-tree code from
the git tree on kernel.org. I did a quick test and it seems
to be working there.

Note that if you're backing up to stdout, xfsdump cannot
determine when the output is safely on media, so a resumed
backup will always be a full backup.

Bill

Gim Leong Chin wrote:
> Hi,
> 
> I have observed this since some time back.  I have just done an experiment.
> 
> 1) Using xfsdump 3.0.6, I first did a full dump to regular file and restore, checked that every thing is correct.
> 
> 2) I then did the same dump again, but interrupted it.  Then I resumed the dump.  I noted that the resumed dump file is the exact same size as the full dump file.
> 
> 3) First I did a cumulative restore, with the interrupted dump file, followed by the resumed dump file.  I checked that the restore is correct.
> 
> 4) I then did a non-cumulative restore, using only resumed dump file.  The resume is successful, and I checked that the restore is correct.
> 
> The logs are attached.
> 
> The conclusion is that the so-called resume of an interrupted dump session to regular file produces a full dump file, that is sufficient by itself to do the full restore.
> 
> Are my observations of the behaviour of xfsdump correct?
> 
> 
> Everything was done on openSUSE 11.4 x86_64.
> 
> 
> GL
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2011-11-22 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-20 13:14 Interrupted xfsdump Resume Behaviour for Regular Dump File Gim Leong Chin
2011-11-22 14:30 ` Bill Kendall [this message]

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=4ECBB21E.9040205@sgi.com \
    --to=wkendall@sgi.com \
    --cc=chingimleong@yahoo.com.sg \
    --cc=xfs@oss.sgi.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