Cannot drop oplog.$main

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.0.6
    • Component/s: Admin, Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After converting master/slave replication to replica set (as described on https://docs.mongodb.org/manual/core/master-slave/#convert-a-master-slave-deployment-to-a-replica-set), I cannot drop local.oplog.$main collection:

      Error: drop failed:

      { "ok" : 0, "errmsg" : "can't drop collection with reserved $ character in name" }

      I need to drop it since
      1. it has allocated around 4 GB of space
      2. it is not needed (local.oplog.rs used instead)
      Renaming an oplog is not possible.

      Could you please advise on how to drop it?

      Thank you.

            Assignee:
            Stennie Steneker (Inactive)
            Reporter:
            Marek Jurco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: