skimpydog

Member
Jun 15, 2006
5
0
151
:D
rhel3 (RedHat Enterprise Linux 3) - cPanel 6 (I have noticed this on other versions and flavors as well)

This is the output of a df::

# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 116620208 92815656 17880584 84% /
/dev/hdd1 118729904 64106024 48592680 57% /backup
/dev/hda1 101089 35852 60018 38% /boot
/dev/tmpMnt 193687 -18446744073709551015 184288 101% /tmp
none 1027460 0 1027460 0% /dev/shm



I am posting this info on cPanels site because this is on a cPanel box. I have only seen this on cPanel boxes.

This is not the first time I have seen this, and from what I can determine I have not seen any solution to this problem.

/dev/tmpMnt 193687 -18446744073709551015 184288 101% /tmp

As you can tell the disk usage is in the negative (which is technically possible).

running "file /dev/tmpMnt" this is the output ::

#file /dev/tmpMnt
/dev/tmpMnt: Linux rev 1.0 ext2 filesystem data (mounted or unclean) (errors)

Running a manual "fsck" in single user mode seems to correct this issue.

We now have a solution.

1) Boot into single user mode at the servers console
2) run "fsck /tmp" (if it is mounted run "umount /tmp" first)

This is now the output of a df ::

[email protected] [~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 116620208 92875916 17820324 84% /
/dev/hdd1 118729904 64106024 48592680 57% /backup
/dev/hda1 101089 35852 60018 38% /boot
/dev/tmpMnt 193687 415 183272 1% /tmp
none 1027460 0 1027460 0% /dev/shm


As it should be!
Thanks all!
:D