I'm deploying mongo with Amazon OpsWorks as described in the Setting Up a MongoDB Replicaset With AWS OpsWorks and the instance fails to start when I specify mounted ebs volume (/data/ebs) in dbpath.
Here's stack's custom json:
{
"mongodb" : {
config: {
"dbpath" : "/data/ebs/data/",
"logpath" : "/data/ebs/log/",
}
"cluster_name" : "replicaset",
"replicaset_name": "replicaset"
}
}
The reason why mongo fails to start is apparently because of /data/ebs ownership:
[ec2-user@mongodb1 data]$ ls -la /data/ebs
drwxr-xr-x 2 root root 21 May 24 08:43 .
drwxr-xr-x 3 root root 4096 May 24 04:49 ..
How do I override it? Is there a recipe I need to run apart from mongodb::10gen_repo and mongodb::replicaset?