Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
a question about mongodb backup using lvm snapshot
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jinxuan Hou  
View profile  
 More options Oct 22 2012, 10:34 pm
From: Jinxuan Hou <hjx...@yahoo.com.cn>
Date: Mon, 22 Oct 2012 19:34:09 -0700 (PDT)
Local: Mon, Oct 22 2012 10:34 pm
Subject: a question about mongodb backup using lvm snapshot

Hi, i have a doubt about mongodb backup using lvm snapshot.

In the manual
document(http://docs.mongodb.org/manual/administration/backups/), in the Backup
With Journaling section it says that if you enable journal you can backup
your database in following steps:
1.Create Snapshot

lvcreate --size 100M --snapshot --name mdb-snap01 /dev/vg0/mongodb

2.Archive Snapshots

umount /dev/vg0/mdb-snap01

dd if=/dev/vg0/mdb-snap01 | tar -czf mdb-snap01.tar.gz

3.Restore Snapshot

lvcreate --size 1G --name mdb-new vg0
tar -xzf mdb-snap01.tar.gz | dd of=/dev/vg0/mdb-new
mount /dev/vg0/mdb-new /srv/mongodb

4.Remote Backup Storage

umount /dev/vg0/mdb-snap01
dd if=/dev/vg0/mdb-snap01 | ssh usern...@example.com tar -czf
/opt/backup/mdb-snap01.tar.gz
lvcreate --size 1G --name mdb-new vg0
ssh usern...@example.com tar -xzf /opt/backup/mdb-snap01.tar.gz | dd of=
/dev/vg0/mdb-new
mount /dev/vg0/mdb-new /srv/mongodb

there  is not lock fsync operations necessary.

just as (http://www.mongodb.org/display/DOCS/Backups)said:As long as all
files are snapshotted at the same point in time, you don't need to
lock+fsync

but when taking lvm snapshot, everything are writen to the Journal log ,but
the data is stealing in the file system buffer or the OS buffer is that ok
for we to recover
our data to a consistent point .(especially when the sln No.s of  Journal
log and Filesystem snapshot are not consistent)

*looking forward for your answer.*
*
*
thank you very much .


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kay  
View profile  
 More options Nov 8 2012, 2:59 pm
From: Kay <kay....@10gen.com>
Date: Thu, 8 Nov 2012 11:59:08 -0800 (PST)
Local: Thurs, Nov 8 2012 2:59 pm
Subject: Re: a question about mongodb backup using lvm snapshot

Hi Jinxuan Hou --

As I understand the question, then by default, the 'journal commit
interval'  is 100 millisecond (unless you have overridden the 'journal
commit interval' value or if you issue getLastError command).  As such,
there may be ~100 millisecond window during which data durability is as
risk.  Also, if you are using Amazon EBS, refer to the section in the
manual.

Hope this answers your question.

Regards,

Kay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »