A couple months ago I followed the guide
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
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
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?