Raid5/BTRFS recovered/claimed almost 900 Gb of freespace by itself !!!

    • OMV 4.x
    • Raid5/BTRFS recovered/claimed almost 900 Gb of freespace by itself !!!

      Hi guys,

      I don't know what exactly happened, but OMV just went from 3600+ Gb to 4500+ Gb of free space. All my media files still seem to be there.

      Well, the only think I might have done if to run a command line to get movie resolution so I can figure out which ones I can upgrade from 720p to 1080p for example.

      Source Code

      1. find /sharedfolders/media/Movies/ -type f -exec bash -c 'sm=$(mediainfo "{}" | grep Width); echo $sm - "{}"' \;
      The command is not supposed to delete anything, maybe it justed forced the system to sync some fs tables with the reality ?
    • After reading TFM, it looks like the "wasted" space was internally allocated by BTRFS, so before this magical thing happened, I was seeing the "unallocated" space (see at the very bottom) which was equal to free space I was initially seeing with the regular df command.

      Now it's even more confusing, the free space calculated by df command is not the same as what's reported by btrfs.

      Maybe there are some housekeeping operations on btrsf that get rid of allocated space that's no longer needed

      Free space now:

      Source Code

      1. root@openmediavault:~# df -h
      2. Filesystem Size Used Avail Use% Mounted on
      3. udev 7.6G 0 7.6G 0% /dev
      4. ...
      5. /dev/md0 11T 6.6T 4.5T 60% /srv/dev-disk-by-label-DATA


      1. root@openmediavault:~# btrfs fi usage /srv/dev-disk-by-label-DATA
      2. Overall:
      3. Device size: 10.92TiB
      4. Device allocated: 7.20TiB
      5. Device unallocated: 3.71TiB
      6. Device missing: 0.00B
      7. Used: 6.51TiB
      8. Free (estimated): 4.40TiB (min: 2.54TiB)
      9. Data ratio: 1.00
      10. Metadata ratio: 2.00
      11. Global reserve: 512.00MiB (used: 192.00KiB)
      12. Data,single: Size:7.18TiB, Used:6.49TiB
      13. /dev/md0 7.18TiB
      14. Metadata,DUP: Size:10.00GiB, Used:7.88GiB
      15. /dev/md0 20.00GiB
      16. System,DUP: Size:8.00MiB, Used:944.00KiB
      17. /dev/md0 16.00MiB
      18. Unallocated:
      19. /dev/md0 3.71TiB
      Display All
    • Odroid HC2 - armbian - OMV5.x | Asrock Q1900DC-ITX - Intenso SSD 120GB - OMV5.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV5 Documentation - user guide :!:

      The post was edited 1 time, last by macom ().