title: mongodb EBS on EC2
body: <p>I use mongodb and nodejs on ec2,I would like to deploy it in order to support 10,000 request a day.
  I would like to make sure that if the instance terminates or reboots(?) somehow the database won't be lost.
  I understand that i need to create an EBS volumes for storing the data.</p>
  
  <p>I tried <a href="http://www.mongodb.org/display/DOCS/Amazon+EC2+Quickstart#AmazonEC2Quickstart-ConfigureStorage" rel="nofollow">http://www.mongodb.org/display/DOCS/Amazon+EC2+Quickstart#AmazonEC2Quickstart-ConfigureStorage</a> but it didn't work. I get to the point where i should run 
  [ec2-user@domU-... ~]$ sudo chown mongod:mongod /data
  but I get :
  chown: invalid user: `mongod:mongod'</p>
  
  <p>solved it by : sudo chown mongod.mongod /data
  still can't run mongod working : </p>
  
  <pre><code>$sudo /etc/init.d/mongod start
  Starting mongod: forked process: 1694
  all output going to: /log/mongod.log
                                                             [FAILED][ec2-user@domU-... /]$ sudo mongod --dbpath=/data
  Mon Oct 29 21:46:56 [initandlisten] MongoDB starting : pid=1675 port=27017 dbpath=/data 64-bit host=domU-...
  Mon Oct 29 21:46:56 [initandlisten] db version v2.2.0, pdfile version 4.5
  Mon Oct 29 21:46:56 [initandlisten] git version: f5e83eae9cfbec7fb7a071321928f00d1b0c5207
  Mon Oct 29 21:46:56 [initandlisten] build info: Linux ... c8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
  Mon Oct 29 21:46:56 [initandlisten] options: { dbpath: "/data" }
  Mon Oct 29 21:47:00 [initandlisten] journal dir=/data/journal
  Mon Oct 29 21:47:00 [initandlisten] recover : no journal files present, no recovery needed
  Mon Oct 29 21:47:00 [initandlisten] 
  Mon Oct 29 21:47:00 [initandlisten] ERROR: Insufficient free space for journal files
  Mon Oct 29 21:47:00 [initandlisten] Please make at least 3379MB available in /data/journal or use --smallfiles
  Mon Oct 29 21:47:00 [initandlisten] 
  Mon Oct 29 21:47:00 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
  Mon Oct 29 21:47:00 dbexit: 
  Mon Oct 29 21:47:00 [initandlisten] shutdown: going to close listening sockets...
  Mon Oct 29 21:47:00 [initandlisten] shutdown: going to flush diaglog...
  Mon Oct 29 21:47:00 [initandlisten] shutdown: going to close sockets...
  Mon Oct 29 21:47:00 [initandlisten] shutdown: waiting for fs preallocator...
  Mon Oct 29 21:47:00 [initandlisten] shutdown: lock for final commit...
  Mon Oct 29 21:47:00 [initandlisten] shutdown: final commit...
  Mon Oct 29 21:47:00 [initandlisten] shutdown: closing all files...
  Mon Oct 29 21:47:00 [initandlisten] closeAllFiles() finished
  Mon Oct 29 21:47:00 [initandlisten] journalCleanup...
  Mon Oct 29 21:47:00 [initandlisten] removeJournalFiles
  Mon Oct 29 21:47:00 [initandlisten] shutdown: removing fs lock...
  Mon Oct 29 21:47:00 dbexit: really exiting now
  </code></pre>
  
  <p>I DON'T UNDERSTAND A WORD IN THE GUIDE... is it only me...? Is there a more simple to understand guide for achieving  this goal?
  Thank you!</p>