[DOCS-4150] MMS Instructions for Restoring from Replica Set omit a argument from ./seedSecondary.sh Created: 09/Oct/14  Updated: 16/Mar/15  Resolved: 24/Oct/14

Status: Closed
Project: Documentation
Component/s: Cloud Manager
Affects Version/s: None
Fix Version/s: v1.3.13

Type: Bug Priority: Major - P3
Reporter: Victor Hooi Assignee: Bob Grabar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File seedSecondary.sh    
Issue Links:
Related
Participants:
Days since reply: 9 years, 15 weeks, 1 day ago

 Description   

The MMS documentation page for Restore a Replica Set from a Backup, under the section Restoring Each Secondary, Step 6 uses the following command-line invocation for seedSecondary.sh

./seedSecondary.sh <oplog-size-in-gigabytes>

However, I have just downloaded a fresh backup from MMS, and have attached the seedSecondary.sh script. The seedSecondary.sh script looks like this:

#!/bin/sh
if [ "$#" -ne 2 ]; then
    echo "Usage: $0 MONGODB_PORT OPLOG_SIZE_GB"
    exit 1
fi
mongo --port ${1} --eval "var res=db.getSiblingDB('local').runCommand({ create: 'oplog.rs', capped: true, size: (${2} * 1024 * 1024 * 1024)}); if(!res.ok){throw res.errmsg;} else{db.getSiblingDB('local').oplog.rs.insert({ts : Timestamp(1411766369, 1), h : NumberLong('1401333684165020466'), op : 'n', ns : '', note : 'seed from backup service'});}"

As you can see, the signature of the script appears to be different to what the documentation state.

The corresponding page for MMS 1.5, as well as for MMS 1.6 also appear to have this same error.



 Comments   
Comment by Githook User [ 04/Nov/14 ]

Author:

{u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}

Message: DOCS-4150 DOCS-4151 edits
Branch: master
https://github.com/10gen/mms-docs/commit/7c50bd4ec968ec659f8b02d00417051157494bd8

Comment by Githook User [ 04/Nov/14 ]

Author:

{u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}

Message: DOCS-4150 DOCS-4151 edit seedSecondary invocation, add link to tutorials for checking oplog size
Branch: master
https://github.com/10gen/mms-docs/commit/c8405f57ca570a7788f6f6a9474c2dfb9ca287d0

Generated at Thu Feb 08 07:47:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.