Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20517

Verify enough disk space is available for backup option evaluates space available in wrong location

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifactory Home, Backup
    • Labels:
      None

      Description

      A weekly backup defined for the default location $ARTIFACTORY_HOME/backup/<backup-tag>  is not able to determine free space in that location correctly.

      Scenario:

      200GB volume for $ARTIFACTORY_HOME  >  50% used space

      Default weekly backup is in $ARTIFACTORY_HOME/backup/<backup-tag>

      $ARTIFACTORY_HOME/backup is a bind mount into the container with 22TB free space

       

      Result:

      Backup fails as BackupSizeCalculator calculates free space in $ARTIFACTORY_HOME and not $ARTIFACTORY_HOME/backup.

      Docker commands exec-ed in container demonstrate that corresponding shell commands would give a sensible result - so not sure how BackupSizeCalculator comes to its result.

      Supporting info:

      2019-11-04 13:39:41,722 [http-nio-8081-exec-4] [INFO ] (o.a.b.BackupSizeCalculator:106) - Free space available for backup: 102842097664

      [root@owlservlx25 artifactory]# docker-compose exec artifactory df /var/opt/jfrog/artifactory
      Filesystem 1K-blocks Used Available Use% Mounted on
      /dev/mapper/dockervg-artifactory_base
      209612800 109181004 100431796 52% /var/opt/jfrog/artifactory

      (100431796*1024 is figure reported by BackupSizeCalculator above)

      However space free in /var/opt/jfrog/artifactory/backup is nearly 22TB.

      [root@owlservlx25 artifactory]# docker-compose exec artifactory df -h /var/opt/jfrog/artifactory/backup
      Filesystem Size Used Available Use% Mounted on
      owlcask1.owlstone.local:/Linux_Backup/artifactory_backup
      63.7T 41.9T 21.8T 66% /var/opt/jfrog/artifactory/backup

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ceri.hopkins Ceri Hopkins
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: