OMV Root-Festplatte voll

breckofresh

Cadet 4th Year
Registriert
Feb. 2009
Beiträge
110
Guten Morgen,

ich habe das Problem, dass meine Root-Festplatte voll und ich nicht mehr auf die WebGUI komme.

Ich habe selbst verständlich schon gegooglet und diverse Threads dazu gesehen und gelesen.

Allerdings komme ich bei der Indentifizierung der "Speicherfresser" nicht weiter.

Code:
root@openmediavault:/# du -h --max-depth=1 /
0       /sys
887M    /var
7,0M    /run
4,0K    /mnt
8,0K    /media
16K     /opt
2,0T    /srv
144K    /root
6,8M    /etc
64M     /boot
26M     /export
0       /tmp
114M    /config
4,0K    /home
2,1G    /usr
16K     /lost+found
du: das Verzeichnis '/proc/4812/task/4812/net' kann nicht gelesen werden: Das Argument ist ungültig
du: das Verzeichnis '/proc/4812/net' kann nicht gelesen werden: Das Argument ist ungültig
du: das Verzeichnis '/proc/4813/task/4813/net' kann nicht gelesen werden: Das Argument ist ungültig
du: das Verzeichnis '/proc/4813/net' kann nicht gelesen werden: Das Argument ist ungültig
du: Zugriff auf '/proc/4866/task/4866/fd/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf '/proc/4866/task/4866/fdinfo/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf '/proc/4866/fd/4' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf '/proc/4866/fdinfo/4' nicht möglich: Datei oder Verzeichnis nicht gefunden
0       /proc
0       /dev
2,0T    /

Ich hoffe das mir hier ein erfahrener Linux-User weiterhelfen kann.
 
Unter /srv sind fast die gesamten 2TB benutzt.

Du kannst den du-Befehl nun auf /srv statt /. So kannst du es jeweils weiter eingrenzen.
 
Das sollte oder war zumindestens immer meine Meinung, die anderen Festplatten bzw. Dateisystem sein oder?

Die Root-Festplatte hat norminell nur 64 GB.
 
mach mach
Code:
df -h
, dort sieht man ob es in einer eigenen Partition/Disk gemountet ist .
 
Zusätzlich dann auch noch ein df -i. Es kann nämlich sein, dass die Inodes ausgegangen sind.
 
Mögliche Ursachen wären noch
  • direkt im root (/) - herauszufinden mit "ls -l /"
  • als gelöscht markierte Dateien die noch nicht gelöscht wurden, mit "lsof | grep deleted" können diese angezeigt werden. Dann ggf. diese Dienste, welche da stehen, neustarten damit die Dateien auch gelöscht werden
 
Code:
root@openmediavault:/# df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
udev            1,9G       0  1,9G    0% /dev
tmpfs           381M    7,0M  374M    2% /run
/dev/sdc1        51G     51G     0  100% /
tmpfs           1,9G       0  1,9G    0% /dev/shm
tmpfs           5,0M       0  5,0M    0% /run/lock
tmpfs           1,9G       0  1,9G    0% /sys/fs/cgroup
tmpfs           1,9G       0  1,9G    0% /tmp
/dev/sdd1       458G    287G  172G   63% /srv/dev-disk-by-uuid-1231e1b0-ebb8-469e-ae95-28ba6bfbb906
/dev/md127      2,3T    1,7T  556G   76% /srv/dev-disk-by-label-Daten
overlay         2,3T    1,7T  556G   76% /srv/dev-disk-by-label-Daten/appdata/docker/overlay2/020d51010e0222ce912b683bd0b66d4e33f2005f358db88779c05adc7c8d4d32/merged
overlay         2,3T    1,7T  556G   76% /srv/dev-disk-by-label-Daten/appdata/docker/overlay2/f56999c06440420be7f43508481468e4f5ac3535140893c871ab4e45f91711d1/merged
overlay         2,3T    1,7T  556G   76% /srv/dev-disk-by-label-Daten/appdata/docker/overlay2/f0ec9bb85a9f7ba36ba137898b419ae64c643acbd87678270c8c7179936d89b9/merged

Code:
root@openmediavault:/# df -i
Dateisystem       Inodes IBenutzt     IFrei IUse% Eingehängt auf
udev              472620      387    472233    1% /dev
tmpfs             487278      706    486572    1% /run
/dev/sdc1        3416064    60479   3355585    2% /
tmpfs             487278        1    487277    1% /dev/shm
tmpfs             487278        3    487275    1% /run/lock
tmpfs             487278       18    487260    1% /sys/fs/cgroup
tmpfs             487278       13    487265    1% /tmp
/dev/sdd1       30531584   107901  30423683    1% /srv/dev-disk-by-uuid-1231e1b0-ebb8-469e-ae95-28ba6bfbb906
/dev/md127     152608768   224694 152384074    1% /srv/dev-disk-by-label-Daten
overlay        152608768   224694 152384074    1% /srv/dev-disk-by-label-Daten/appdata/docker/overlay2/020d51010e0222ce912b683bd0b66d4e33f2005f358db88779c05adc7c8d4d32/merged
overlay        152608768   224694 152384074    1% /srv/dev-disk-by-label-Daten/appdata/docker/overlay2/f56999c06440420be7f43508481468e4f5ac3535140893c871ab4e45f91711d1/merged
overlay        152608768   224694 152384074    1% /srv/dev-disk-by-label-Daten/appdata/docker/overlay2/f0ec9bb85a9f7ba36ba137898b419ae64c643acbd87678270c8c7179936d89b9/merged

Code:
root@openmediavault:/# ls -la
insgesamt 84
-rw-r--r--   1 root root    16 Dez 10  2020 -
drwxrwxr-x  20 root root  4096 Jul 31 11:51 .
drwxrwxr-x  20 root root  4096 Jul 31 11:51 ..
-rw-r--r--   1 root root    71 Apr 28  2020 backup.sh.lastrun
lrwxrwxrwx   1 root root     7 Apr 20  2020 bin -> usr/bin
drwxr-xr-x   3 root root  4096 Jul 25 07:09 boot
drwxr-xr-x   5 root root  4096 Jan  2  2022 config
drwxr-xr-x  18 root root  3280 Aug  1 07:43 dev
drwxrwxr-x 101 root root  4096 Jul 26 10:22 etc
drwxr-xr-x   4 root root  4096 Mär  3 15:21 export
-rw-r--r--   1 root root   162 Apr 28  2020 hm.login.response
drwxr-xr-x   2 root root  4096 Feb  1  2020 home
lrwxrwxrwx   1 root root    37 Jul 13 10:33 initrd.img -> boot/initrd.img-5.10.0-0.bpo.15-amd64
lrwxrwxrwx   1 root root    37 Jul 25 07:09 initrd.img.old -> boot/initrd.img-5.10.0-0.bpo.15-amd64
lrwxrwxrwx   1 root root     7 Apr 20  2020 lib -> usr/lib
lrwxrwxrwx   1 root root     9 Apr 20  2020 lib32 -> usr/lib32
lrwxrwxrwx   1 root root     9 Apr 20  2020 lib64 -> usr/lib64
lrwxrwxrwx   1 root root    10 Apr 20  2020 libx32 -> usr/libx32
drwx------   2 root root 16384 Apr 20  2020 lost+found
drwxr-xr-x   3 root root  4096 Apr 20  2020 media
drwxr-xr-x   2 root root  4096 Mär 25  2020 mnt
drwxr-xr-x   3 root root  4096 Apr 20  2020 opt
dr-xr-xr-x 224 root root     0 Aug  1 07:43 proc
drwx------   6 root root  4096 Aug  1 07:40 root
drwxr-xr-x  30 root root  1120 Aug  1 08:40 run
lrwxrwxrwx   1 root root     8 Apr 20  2020 sbin -> usr/sbin
drwxr-xr-x   8 root root  4096 Jul 31 00:00 srv
dr-xr-xr-x  13 root root     0 Aug  1 07:43 sys
drwxrwxrwt  10 root root   200 Aug  1 08:43 tmp
drwxr-xr-x  14 root root  4096 Apr 20  2020 usr
drwxr-xr-x  12 root root  4096 Apr 20  2020 var
lrwxrwxrwx   1 root root    34 Jul 13 10:33 vmlinuz -> boot/vmlinuz-5.10.0-0.bpo.15-amd64
lrwxrwxrwx   1 root root    34 Jul 25 07:09 vmlinuz.old -> boot/vmlinuz-5.10.0-0.bpo.15-amd64

Code:
root@openmediavault:/# lsof | grep deleted
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
php-fpm7.   498                            root    3u      REG               0,47         0         15 /tmp/.ZendSem.aAW0Cp (deleted)
rpc.mount   523                            root    7r      REG               8,33         0    1835093 /var/lib/nfs/etab (deleted)
php-fpm7.   586                        www-data    3u      REG               0,47         0         15 /tmp/.ZendSem.aAW0Cp (deleted)
php-fpm7.   587                        www-data    3u      REG               0,47         0         15 /tmp/.ZendSem.aAW0Cp (deleted)
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
lsof: no pwd entry for UID 64757
 
lass das du mal mit -x laufen, dann exkludiert es die Dateien auf anderen Dateisystemen (sprich /srv)
-x, --one-file-system
skip directories on different file systems

Kenne OMV nicht, aber falls man da pakete nachinstallieren kann, kann ich nur ncdu empfehlen, das ist quasi eine im Terminal laufende grafische anwendung, wo du nach dem scan bequem durch die Verzeichnisstuktur navigieren kannst. Falls es das gibt, da auch -x nutzen, tut das gleiche wie beim klassischen du also dann ncdu -x /
 
Ich hab den Speicherfresser offensichtlich gefunden, aber noch nicht erkannt, warum er das tut.

Offensichtlich schreibt die automatischen Backups des Handys meiner Frau nicht auf das Raid, sondern in srv.
 
Zuletzt bearbeitet:
Kamen da irgendwelche Fehler beim scan? Ist ja eindeutig nicht vollständig durchgelaufen, wenn der das nur so ca. 3GB findet aber angeblich 51GB belegt sind
 
nein, ich kann es gerne nochmal machen.

Code:
>   0,0   B [          ] /dev
>   0,0   B [          ] /proc
>   0,0   B [          ] /run
>   0,0   B [          ] /sys
>   0,0   B [          ] /tmp
@   0,0   B [          ]  bin
@   0,0   B [          ]  lib
@   0,0   B [          ]  sbin
@   0,0   B [          ]  lib32
@   0,0   B [          ]  lib64
@   0,0   B [          ]  libx32
@   0,0   B [          ]  vmlinuz
@   0,0   B [          ]  vmlinuz.old
@   0,0   B [          ]  initrd.img
@   0,0   B [          ]  initrd.img.old
    4,0 KiB [          ]  -
    4,0 KiB [          ]  backup.sh.lastrun
    4,0 KiB [          ]  hm.login.response
    4,0 KiB [          ] /export
e   4,0 KiB [          ] /home
e   4,0 KiB [          ] /mnt
    8,0 KiB [          ] /media
e  16,0 KiB [          ] /lost+found
   16,0 KiB [          ] /opt
  144,0 KiB [          ] /root
    1,7 MiB [          ] /srv
    6,8 MiB [          ] /etc
   11,4 MiB [          ] /boot
  114,0 MiB [          ] /config
  889,5 MiB [####      ] /var
    2,0 GiB [##########] /usr
 
breckofresh schrieb:
Offensichtlich schreibt die automatischen Backups des Handys meiner Frau nicht auf das Raid, sondern in srv.
So wie das in df -h aussieht ist das raid doch unter /srv gemoutet:
/dev/md127 2,3T 1,7T 556G 76% /srv/dev-disk-by-label-Daten
Oder schreibt er das backup direkt in /srv?
 
Ja, korrekt. War etwas durcheinander.

Es gab unter /srv/dev-disk-by-label-Backup. Die "Festplatte" gibt und gab es aber nie.

Die Backups (sollen) unter /srv/dev-disk-by-label-Daten/Backup landen.

Das löschen des "Ordners" Backup hat 6GB gebracht.
 
Bisschen verwirrt bin ich schon. Hast du unter /srv eine Freigabe laufen? Dann ist es klar, warum er dir das Root System vollschreibt.
 
Eigentlich nicht bzw. wie bekomme ich das heraus?

Das /dev/md127 ist das Raid und das scheint offentsichtlich unter /srv/dev-diskby-label-Daten gemountet zu sein.

Möchte aber nicht ausschließen, dass ich mit meinen limitierten Linux-Kenntnisse irgendwas falsch gemacht habe
 
wie kommt das Handy auf das Share? NFS / SMB ? Dann schau mal unter den Freigaben nach.
 
OMV ist sehr erklärungsfreundlich,
im Forum findest du zu jedem Thema ein Video
Forum

Dort kannst du auch sehen, wie du Shares anlegst bzw. diese auf den richtigen Mountpoint setzt.
 
Zuletzt bearbeitet:
Super, vielen Dank.

Dann werde ich mich dort mal in Ruhe durcharbeiten
 
Zurück
Oben