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
Amazon EC2 Quickstart seems to be a bit misleading
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
 
Justin Meltzer  
View profile  
 More options Oct 14 2012, 1:41 am
From: Justin Meltzer <jus...@airtimehq.com>
Date: Sat, 13 Oct 2012 22:41:15 -0700 (PDT)
Local: Sun, Oct 14 2012 1:41 am
Subject: Amazon EC2 Quickstart seems to be a bit misleading

A couple months ago I followed the guide
here: http://www.mongodb.org/display/DOCS/Amazon+EC2+Quickstart#AmazonEC2Qu...
to get a single MongoDB database up and running.

I followed the guide strictly, first creating EBS volumes, converted them
to RAID 10, created a volume group and logical volumes for logs,
journaling, and data, made filesystems from each of the partitions and then
mounted the file systems.

Then under "Install and Configure
MongoDB" http://www.mongodb.org/display/DOCS/Amazon+EC2+Quickstart#AmazonEC2Qu...
it states if you created a MongoDB instance from the AWS Marketplace, then
you can skip ahead to "Starting MongoDB". Since I did create a MongoDB
instance from the marketplace, I did just this. However, I just now
realized that the mongod.conf file automatically created from the
marketplace does not have a dbpath set to /data, but rather to
/var/lib/mongo. Setting the correct dbpath was in the part that I was told
to skip.

Unfortunately since I now have data in the wrong directory, how can I
safely switch over to the right directory while copying over my data?


 
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.
Bernardo  
View profile  
 More options Oct 14 2012, 11:52 am
From: Bernardo <bfa...@gmail.com>
Date: Sun, 14 Oct 2012 08:52:09 -0700 (PDT)
Local: Sun, Oct 14 2012 11:52 am
Subject: Re: Amazon EC2 Quickstart seems to be a bit misleading

Can you have downtime? Just shut your mongod down, manually move the data
from /var/lib/mongo to /data, edit the config to point to the new data, and
restart mongod.

Can't have downtime? Start a new mongod instance pointed to /data on a
different port, create a replica set on the primary and add your new
secondary to the replica set(oh and start a 3rd mongod as an arbiter on a
3rd port). Wait for the recovery to be finished, shut down the first mongod
and your new secondary will become primary, pointing to new data.


 
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 »