Filesystem-Statistiken: du -sx != df

Fallout

Fallout

Doppel-As
Hallo zusammen,

Code:
fallout@server:~$ sudo df -hP /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/sysvg-var  4.0G  [B]3.4G[/B]  672M  84% /var

fallout@server:~$ sudo du -shx /var
[B]831M[/B]    /var

Ich hab schon ein wenig gegoogelt aber noch keine eindeutige Erklärung gefunden. Ich weiß auch von Sparse-Files (pre-allocated 0-byte), weiß aber nicht, ob "du" die auch mitnimmt, bzw. wie ich diese am einfachsten ausfindig mache.
Nur an fs-Overhead und vergleichbarem kann es ja bei einer Differenz von ca. 2.6GB kaum liegen.
Hat jemand eine Idee, wie ich der Sache auf den Grund gehen kann?

Gruß Daniel
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

Hat wirklich keiner eine Idee? :hilfe2:
 
Zuletzt bearbeitet:
Also bei mir sieht es ähnlich aus:

kallisto:~# du -shx /var
205M /var
kallisto:~# df -hP /var
Dateisystem Größe Benut Verf Ben% Eingehängt auf
/dev/hda1 6,5G 6,0G 140M 98% /

ich denke das könnte daher kommen:

man du schrieb:
The du utility displays the file system block usage for each file argu-
ment and for each directory in the file hierarchy rooted in each direc-
tory argument. If no file is specified, the block usage of the hierarchy
rooted in the current directory is displayed. If the -k flag is speci-
fied, the number of 1024-byte blocks used by the file is displayed, oth-
erwise getbsize(3) is used to determine the preferred block size. Par-
tial numbers of blocks are rounded up.

man df schrieb:
The df utility displays statistics about the amount of free disk space on
the specified filesystem or on the filesystem of which file is a part.
Values are displayed in 512-byte per block counts. If neither a file or
a filesystem operand is specified, statistics for all mounted filesystems
are displayed (subject to the -t option below).

Man beachte mal die Angaben zur Blocksize.
 
Das war das einzige das mir so eingefallen, ist, muss ich dann leider passen :D
 

Ähnliche Themen

X not starting anymore since filesystem was full

Ubuntu X / dbus problem

Modulfehler?

df Ausgabe inkonsistent mit lvm

Externe Medien nicht mountbar

Zurück
Oben