Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2899

Include example of how to run upgradeCheck

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.2
    • Component/s: manual
    • Last comment by Customer:
      true
    • Actual Time:
      4

      Description

      Because the output of the upgradeCheck() helper can be potentially very long, it makes sense to pipe output to a file rather than in the shell directly.

      We should include something like the following example:

      To connect to the admin database on localhost and use secondary:

      # ./mongo --eval "db.getMongo().setSlaveOk();
                      db.upgradeCheckAllDbs()" localhost/admin | tee /tmp/upgradecheck.txt

      To connect to the myDb database and check the myColl collection on localhost of a primary, standalone or mongos:

      # ./mongo --eval "db.upgradeCheck({collection:'myColl')" 
                       localhost/myDb | tee /tmp/upgradecheck.txt

        Attachments

          Activity

            People

            Assignee:
            kay.kim Kay Kim (Inactive)
            Reporter:
            pasette Daniel Pasette
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              7 years, 33 weeks, 6 days ago
              Date of 1st Reply: