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

Don't fsync and lock secondaries during backup

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      http://docs.mongodb.org/manual/core/backups/#replica-set-backup-considerations

      The lines:
      "It is possible to lock a single secondary database and then create a backup from that instance. When you unlock the database, the secondary will catch up with the primary." is incorrect as replication does not pause during a secondary being locked.

      When a server is fsync and locked, reads are blocked the moment a write comes in. This is documented in SERVER-1423 with replication mentioned in SERVER-4143.

      The line should, therefore, be removed. The current recommended method for doing a point in time backup is to use the --oplog option with mongodump which will provide a point in time backup similar to doing an fsync lock and unlock.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            nick Nick Pellant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 47 weeks, 5 days ago