On Saturday, October 6, 2012 at 12:50 PM, Chase wrote:
I am following the guide for EC2 backup and restore (http://goo.gl/mzKUK). I have created an EC2 image from the 10gen provided AMI on the AWS Marketplace (http://goo.gl/v1PzT) which uses a Raid 10 EBS for storage. I am able to create backup snapshots of all 4 drives. My real problem is with restoring them! My full steps are:
- Create a new RAID 10 Mongo instance using this: http://goo.gl/v1PzT
- Start up mongo, put it some test data to see if it gets backed up
- Create snapshots of all 4 raid drives as described http://goo.gl/mzKUK
- Create a new instance, using the same base AMI from the AWS Marketplace link above in step 1
- Create volumes from the snapshots made and attach them to the instance
- Where things break - Mounting the volumes groups section on the 10gen howto page (http://goo.gl/mzKUK)
- mdadm has no --auto-update-homehost option
- The following is the commands and results that are causing the issues
mdadm --assemb -u ec655893:c8ed37fa:b05bfb20:fd44dbd4 --no-degraded /dev/md0mdadm: /dev/md0 has been started with 4 drives.pvscanFound duplicate PV 5aZHqMeG2jHqmK1c1d1jellaYZIYA6U2: using /dev/md127 not /dev/md0PV /dev/md127 VG vg0 lvm2 [200.00 GiB / 8.00 MiB free]Total: 1 [200.00 GiB] / in use: 1 [200.00 GiB] / in no VG: 0 [0 ]vgscanReading all physical volumes. This may take a while...Found duplicate PV 5aZHqMeG2jHqmK1c1d1jellaYZIYA6U2: using /dev/md127 not /dev/md0Found volume group "vg0" using metadata type lvm2mkdir -p /var/lib/mongodbcat >> /etc/fstab << EOF> /dev/mapper/vg0-data /var/lib/mongodb xfs noatime,noexec,nodiratime 0 0> EOFmount /var/lib/mongodbmount: /dev/mapper/vg0-data already mounted or /var/lib/mongodb busymount: according to mtab, /dev/mapper/vg0-data is mounted on /dataI believe that what is happening is that since both volumes are coming from the same root AMI, that they are registered the same (ie same UUID?). But I have no idea on how to actual restore these volumes.It does seem though, that since this is a 10gen provided AMI, that there should be a documented way to restore data.If anyone needs access to this box to test, I have keys and addresses I can post.Thanks for any help!--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb