~lazypower/charms/trusty/mongodb/fixing_st00f

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Stuart Bishop
  • Date: 2014-07-29 10:22:55 UTC
  • mfrom: (47.2.1 mongodb)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: stuart@stuartbishop.net-20140729102255-ilig6wgm8wxyop54
[wesmason] Storage subordinate support for persistent storage, per https://code.launchpad.net/~wesmason/charms/precise/mongodb/add-storage-subordinate-support/+merge/223539

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
- `run sh.status()`
165
165
You should see your the hosts for your shards in the status output.
166
166
 
 
167
### Use the storage subordinate to store mongodb data on a permanent OpenStack or Amazon EBS volume
 
168
 
 
169
The [storage](http://manage.jujucharms.com/charms/precise/storage) subordinate and [block-storage-broker](http://manage.jujucharms.com/charms/precise/block-storage-broker) service can automatically handle attaching the volume and mounting it to the unit before MongoDB is setup to use it.
 
170
 
 
171
For example if you've created the volumes `vol-id-00001` and `vol-id-00002` and want to attach them to your 2 mongo units, with your OpenStack or AWS credentials in a `credential.yaml` file:
 
172
 
 
173
    juju deploy block-storage-broker --config credentials.yaml
 
174
    juju deploy storage
 
175
    juju add-relation block-storage-broker storage
 
176
    juju set storage provider=block-storage-broker
 
177
    juju set volume_map="{mongodb/0: vol-id-00001, mongodb/1: vol-id-00002}"
 
178
    juju add-relation storage mongodb
 
179
 
 
180
 
 
181
### Use a permanent Openstack volume to store mongodb data. (DEPRECATED)
 
182
 
 
183
**Note**: Although these steps will still work they are now deprecated, you should use the storage subordinate above instead.
 
184
 
167
185
To deploy mongodb using permanent volume on Openstack, the permanent volume should be attached to the mongodb unit just after the deployment, then the configuration should be updated like follows.
168
186
 
169
 
### Use a permanent Openstack volume to store mongodb data.
170
 
 
171
187
    juju set mongodb volume-dev-regexp="/dev/vdc" volume-map='{"mongodb/0": "vol-id-00000000000000"}' volume-ephemeral-storage=false
172
188
 
173
189
### Backups