Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57302

Running out of inodes on jenkins server

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

       

      We are running out of free indoes on our jenkins server.

      Must of the inodes are taken by the many files under "/var/lib/jenkins/scm-sync-configuration/checkoutConfiguration/.git/objects" - there are many files there. some of the are 3 years old. is is safe to delete them? if so, how can we prevent it from fulling up again?

        Attachments

          Activity

          Hide
          sumatej Matej Sujan added a comment -

          This should reduce the number of files in that directory:

          cd /var/lib/jenkins/scm-sync-configuration/checkoutConfiguration
          sudo -u jenkins git gc
          

          Be sure to run the git command as the user who owns that directory, which is most probably user jenkins.

          That will do some git cleanup and repackaging, so at the end there will be few files containing changes from all these small files.

          Such command should be triggered automatically, unless there's gc.auto set to 0 in the git config file (either ~/.gitconfig or .git/config).

          See git gc --help for more details/options.

          Show
          sumatej Matej Sujan added a comment - This should reduce the number of files in that directory: cd /var/lib/jenkins/scm-sync-configuration/checkoutConfiguration sudo -u jenkins git gc Be sure to run the git command as the user who owns that directory, which is most probably user jenkins . That will do some git cleanup and repackaging, so at the end there will be few files containing changes from all these small files. Such command should be triggered automatically, unless there's gc.auto set to 0 in the git config file (either ~/.gitconfig or .git/config ). See git gc --help for more details/options.

            People

            Assignee:
            rodrigc Craig Rodrigues
            Reporter:
            morsan mor san
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: