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

Rotate Log does not work

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

      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")
      
       }
      
       }
      
      }
      

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

              Created:
              Updated:
              Resolved: