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

Rotate Log does not work

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Admin
    • None
    • 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

            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            kaijie.chang@nbcuni.com Kai Jie Chang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: