df 显示负值 used?

Gri*_*art 6 linux filesystems disk-space-utilization

我有一个 CentOS 5.2 服务器并且正在运行df -h我得到这个:

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      672G -551M  638G   0% /
/dev/hda1              99M   12M   82M  13% /boot
tmpfs                 2.0G     0  2.0G   0% /dev/shm
Run Code Online (Sandbox Code Playgroud)

上次显示正确值时,该空间的使用率甚至还不到 10%。我对发生的事情不知所措。

编辑#1

好的,所以我不得不重新启动服务器,因为 SSHD 挂了,我猜这与此有关。

一些新信息,在重新启动后,df -h显示使用了 12Gb (2%),但如果我运行du -hcs /它显示总共 46Gb,这里有很大的不同。

编辑#2

大约 15 分钟的正常运行时间后df -h再次显示负值:

Filesystem            Size  Used Avail Use% Mounted on  
/dev/mapper/VolGroup00-LogVol00
                      672G  -24G  660G   -  /
Run Code Online (Sandbox Code Playgroud)

编辑 #3

更多信息,运行 a fsck,这是输出:

Checking all file systems.
  [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -f -y /dev/VolGroup00/LogVol00 
Pass 1: Checking inodes, blocks, and sizes 
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts 
Pass 5: Checking group summary information
 /dev/VolGroup00/LogVol00: 204158/181633024 files (1.3% non-contiguous), 9224806/181633024 blocks 
[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -f -y /dev/hda1 
Pass 1: Checking inodes, blocks, and sizes 
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts 
Pass 5: Checking group summary information 
/boot: 34/26104 files (5.9% non-contiguous), 15339/104388 blocks
Run Code Online (Sandbox Code Playgroud)

Mir*_*ici 2

我认为这是文件系统损坏。您应该卸载该分区并运行 fsck。
另请检查日志和控制台是否有任何文件系统错误。