Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37028

Rotate Log does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • Operating System:
      ALL

      Description

      One of our secondary mongodb(R-and-W) log file goes too big.

      For unknown reasons, the daily rotate log file script failed for a while and we don't know it.

      We manually ran 

      db.adminCommand( { logRotate : 1 } )
      

      but it did not work.

      How to solve this issue without reboot instance?

       

      Thank you.

      KaiJie

      =======================================

       
      PsharedconcertoReplSet:SECONDARY> db.adminCommand( { logRotate : 1 } )
       
      {
       
       "ok" : 0,
       
       "errmsg" : "",
       
       "operationTime" : Timestamp(1536248863, 2),
       
       "$clusterTime" : {
       
       "clusterTime" : Timestamp(1536248863, 2),
       
       "signature" : {
       
       "hash" : BinData(0,"i/UgZdvD4xEeOJMRDtYoRp6CQgQ="),
       
       "keyId" : NumberLong("6558728512000229524")
       
       }
       
       }
       
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: