public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* a maybe silly question about xfsdump
@ 2014-05-20 15:33 Marko Weber|8000
  2014-05-20 21:07 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Marko Weber|8000 @ 2014-05-20 15:33 UTC (permalink / raw)
  To: Xfs


hello, again me ;-)

i use at runtime this command to backup root partition of a server:

xfsdump -f /var/backup/root2.dump -l 0 -p 5 -L rootdump -M rootdump /


i googled around alot, cause a question wont get out of my mind:
is this backup consistent?
And what about consistency when i backup a mysql partition at runtime?

but my most wondering is abot this:

bunka ~ # df -h
Filesystem                     Size  Used Avail Use% Mounted on
/dev/root                      135G   11G  125G   8% /


but the saved dump shows:


bunka ~ # ls -lh /var/backup/

-rw-r--r-- 1 root root 8.4G May 20 17:29 root2.dump


why is there such a great difference between df -h and the stored dump?

can you give me some enlightment?

thank you

marko





-- 
zbfmail - Mittendrin statt nur Datei!

OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways
Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup
Redundante Mailgateways, HA Mailserver, Secure Mailserver

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: a maybe silly question about xfsdump
  2014-05-20 15:33 a maybe silly question about xfsdump Marko Weber|8000
@ 2014-05-20 21:07 ` Dave Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2014-05-20 21:07 UTC (permalink / raw)
  To: weber; +Cc: Xfs

On Tue, May 20, 2014 at 05:33:15PM +0200, Marko Weber|8000 wrote:
> 
> hello, again me ;-)
> 
> i use at runtime this command to backup root partition of a server:
> 
> xfsdump -f /var/backup/root2.dump -l 0 -p 5 -L rootdump -M rootdump /
> 
> 
> i googled around alot, cause a question wont get out of my mind:
> is this backup consistent?
> And what about consistency when i backup a mysql partition at runtime?

First, define consistent....

If you define consistent as a point in time snapshot where
everything is from the same point in time, then xfsdump does not
provide you with that. You need to quiese mysql and snapshot the
filesystem, then backup the snapshot to get a consistent point in
time backup of the filesytem from the application data all the way
down to the filesystem metadata.

That's no different to any other backup process - even if you are
using btrfs you still need to quiesce the application to get a
consistent snapshot of the application data in the filesystem
snapshot that you are backing up....

> but my most wondering is abot this:
> 
> bunka ~ # df -h
> Filesystem                     Size  Used Avail Use% Mounted on
> /dev/root                      135G   11G  125G   8% /
> 
> 
> but the saved dump shows:
> 
> 
> bunka ~ # ls -lh /var/backup/
> 
> -rw-r--r-- 1 root root 8.4G May 20 17:29 root2.dump

xfsdump stores information in a more compact form than the
filesystem does on disk. It doesn't need all the metadata the
filesystem has on disk to reference all the data you are backing
up...

Also, they may be some files maked as "no dump" that will be
skipped, and other files that (e.g. iopen, unlinked tmpfiles) can't
be found via a directory traversal and so aren't backed up.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-20 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 15:33 a maybe silly question about xfsdump Marko Weber|8000
2014-05-20 21:07 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox