Wir haben also versehentlich dafür df
gesorgt, dass unser Server ohne sauberes Herunterfahren ausfällt, und melden jetzt falsche Statistiken für den externen USB (exfat).
root@srv1:/backup/usbdisk# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 3.6T 2.8T 646G 82% /
...
/dev/sde1 7.3T 241M 7.3T 1% /backup/usbdisk
du sagt:
root@srv1:/backup/usbdisk# du -sh
2.6T .
exfatfsck /dev/sde1
sagt:
exfatfsck 1.1.0
WARN: volume was not unmounted cleanly.
Checking file system on /dev/sde1.
File system version 1.0
Sector size 512 bytes
Cluster size 128 KB
Volume size 7452 GB
Used space 241 MB
Available space 7452 GB
ERROR: cluster 0x3f of file 'assets' is not allocated.
ERROR: cluster 0x40 of file 'mysql' is not allocated.
ERROR: cluster 0x41 of file 'public_assets' is not allocated.
Totally 3 directories and 0 files.
File system checking finished. ERRORS FOUND: 3.
Wie beheben wir das?