Not sure if general questions is the correct place, so I apologise in advance if not the case.
I have a headless server running Jessie and OpenMediaVault 3. Root filesystem is btrfs, and it has grown until it fills a whole 240 GB SSD. I'm absolutely uncapable to understand where the free space has gone. I have no snapshots, and although Docker has lots of subvolumes, all but a few space is eaten by the root subvolume. But the weird thing is btrfs fi du only shows 25,40 GB used.
I tried to find anything related to my problem but so far unsuccessfully, either on google, the Debian forums or wiki. Most solutions seem to rely on balance, defrag or other btrfs maintenance options, and although my diagnostics seem to show otherwise, I tried them. Unsuccesfully, of course.
I suppose I could try reformatting to ext4 and reinstalling all software, but I'd like to avoid it. In the worst case, I have a backup from a previous working state, but I'd like to avoid it, too, if possible.
Here follow some diagnostics:
btrfs fi sh:
Code: Select all
# btrfs fi sh
Label: none uuid: 952a3691-b40c-4996-b408-317644ffe94f
Total devices 1 FS bytes used 214.13GiB
devid 1 size 215.57GiB used 215.56GiB path /dev/sda2
Label: 'nas2' uuid: 3af75ca8-e28b-46e8-9afa-4095e3a67763
Total devices 1 FS bytes used 15.37GiB
devid 1 size 3.64TiB used 18.06GiB path /dev/mapper/vgnas-nas2lv
Label: 'backup' uuid: 1da0c5f8-a9fc-4ee8-ab80-79ec3a83e359
Total devices 2 FS bytes used 1.57TiB
devid 1 size 3.64TiB used 1.57TiB path /dev/sdb1
devid 2 size 3.64TiB used 1.57TiB path /dev/sdc1
Label: 'nas1' uuid: fefaad79-68e5-447a-90de-e0334ff827e0
Total devices 1 FS bytes used 4.59TiB
devid 1 size 5.46TiB used 4.65TiB path /dev/mapper/vgnas-nas1lv
Code: Select all
# btrfs fi df /
Data, single: total=213.53GiB, used=213.53GiB
System, single: total=32.00MiB, used=48.00KiB
Metadata, single: total=2.00GiB, used=609.06MiB
GlobalReserve, single: total=238.91MiB, used=0.00B
Code: Select all
# btrfs qgroup show -reF /
qgroupid rfer excl max_rfer max_excl
-------- ---- ---- -------- --------
0/5 212.75GiB 212.75GiB none none
Code: Select all
# btrfs qgroup show /
qgroupid rfer excl
-------- ---- ----
0/5 212.75GiB 212.75GiB
0/260 4.33MiB 328.00KiB
0/261 24.48MiB 1.77MiB
0/262 24.48MiB 1.77MiB
0/263 25.22MiB 1.78MiB
0/264 25.22MiB 1.78MiB
0/273 25.22MiB 1.78MiB
0/274 25.23MiB 1.86MiB
0/276 120.39MiB 4.36MiB
0/277 120.39MiB 4.34MiB
0/278 99.22MiB 4.34MiB
0/279 99.22MiB 4.34MiB
0/280 99.22MiB 4.36MiB
0/281 99.22MiB 4.36MiB
0/282 127.50MiB 6.94MiB
0/283 127.50MiB 6.92MiB
0/284 391.58MiB 8.80MiB
0/286 391.58MiB 8.80MiB
0/292 16.00KiB 16.00KiB
0/293 16.00KiB 16.00KiB
0/294 391.59MiB 8.83MiB
0/295 391.64MiB 9.42MiB
0/304 4.32MiB 312.00KiB
0/305 24.47MiB 1.78MiB
0/306 24.47MiB 1.78MiB
0/307 137.77MiB 4.16MiB
0/308 201.66MiB 6.55MiB
0/309 201.66MiB 6.55MiB
0/312 201.66MiB 6.55MiB
0/313 523.83MiB 332.89MiB
0/317 41.12MiB 1.91MiB
0/318 41.14MiB 1.91MiB
0/319 41.14MiB 1.91MiB
0/320 48.47MiB 9.33MiB
0/342 152.89MiB 5.45MiB
0/343 152.89MiB 5.45MiB
0/347 152.89MiB 5.45MiB
0/348 158.17MiB 12.01MiB
0/3015 0.00B 0.00B
0/3043 16.00KiB 0.00B
0/3068 2.94MiB 0.00B
btrfs fi du / -s:
Code: Select all
btrfs fi du / -s
Total Exclusive Set shared Filename
25.40GiB 21.45GiB 643.47MiB /
Code: Select all
# btrfs fi du / -s
Total Exclusive Set shared Filename
25.40GiB 21.45GiB 643.47MiB /
root@oriolnas:~# btrfs fi du /* -s
Total Exclusive Set shared Filename
13.37MiB 13.37MiB 0.00B /bin
57.54MiB 57.54MiB 0.00B /boot
ERROR: cannot check space of '/dev': Inappropriate ioctl for device
19.19MiB 19.19MiB 0.00B /etc
0.00B 0.00B 0.00B /export
0.00B 0.00B 0.00B /home
18.15MiB 18.15MiB 0.00B /initrd.img
16.04MiB 16.04MiB 0.00B /initrd.img.old
386.39MiB 386.39MiB 0.00B /lib
3.50MiB 3.50MiB 0.00B /lib32
0.00B 0.00B 0.00B /lib64
0.00B 0.00B 0.00B /media
0.00B 0.00B 0.00B /mnt
0.00B 0.00B 0.00B /opt
ERROR: cannot check space of '/proc': Inappropriate ioctl for device
8.29GiB 8.29GiB 0.00B /root
ERROR: cannot check space of '/run': Inappropriate ioctl for device
12.61MiB 12.61MiB 0.00B /sbin
15.31GiB 15.31GiB 0.00B /srv
ERROR: cannot check space of '/sys': Inappropriate ioctl for device
ERROR: cannot check space of '/tmp': Inappropriate ioctl for device
1.49GiB 1.49GiB 0.00B /usr
15.13GiB 11.18GiB 643.47MiB /var
3.86MiB 3.86MiB 0.00B /vmlinuz
2.98MiB 2.98MiB 0.00B /vmlinuz.old
0.00B 0.00B 0.00B /webmin-setup.out
Code: Select all
# du -sh /*
14M /bin
59M /boot
0 /dev
27M /etc
0 /export
20K /home
4,0K /initrd.img
4,0K /initrd.img.old
388M /lib
3,6M /lib32
4,0K /lib64
0 /media
0 /mnt
0 /opt
du: no s’ha pogut accedir a «/proc/29690/task/29690/fd/3»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/proc/29690/task/29690/fdinfo/3»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/proc/29690/fd/3»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/proc/29690/fdinfo/3»: El fitxer o directori no existeix
0 /proc
8,4G /root
148M /run
13M /sbin
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/384»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/385»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/386»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/387»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/388»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/389»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/390»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/391»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/392»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/393»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/394»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/395»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/396»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/397»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/398»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/399»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/400»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/401»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/402»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/403»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/405»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/406»: El fitxer o directori no existeix
du: no s’ha pogut accedir a «/srv/dev-disk-by-label-nas1/.snapshots/407»: El fitxer o directori no existeix
139T /srv
0 /sys
8,0K /tmp
1,6G /usr
16G /var
4,0K /vmlinuz
4,0K /vmlinuz.old
4,0K /webmin-setup.out
Sorry for the long post, and my apologies if this has already been asked or I'm making another obviously stupid error. Thanks in advance for any suggestion.
Cheers!