Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bug?Be hackered? Or I am foolish? Help me please

Status
Not open for further replies.

781120

MIS
Dec 8, 2001
10
CN
There is a very strange question with my RedHat 7.2 linux--NO disk space with /usr
[root@server01 etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.9G 114M 3.6G 3% /
/dev/sda6 1011M 633M 327M 66% /data01
/dev/sda7 1011M 508M 452M 53% /home
none 251M 0 250M 0% /dev/shm
/dev/sda3 3.0G 3.0G 0 100% /usr
/dev/sda5 2.4G 356M 1.9G 16% /var
/dev/sda2 4.9G 253M 4.4G 6% /data02
[root@server01 etc]# cp hosts.allow /usr
cp: writing `/usr/hosts.allow': No space left on device
[root@server01 etc]#
But when I run the following command:
[root@server01 etc]# du -sh /usr
1.2G /usr
[root@server01 etc]#

Why? And how can I resolve it?
Tks a lot!!!
 
hello !

I can't tell you if you were hacked or no (i don't think so !)

/usr is used to for logs files (made by apache, squid, kernel....) by the logrotate command started by cron deamond,
try :/etc/rc.d/init/crons status
and look if crond is runing, if not try /etc/rc.d/init/crond start
cron start logrotate which compress the logs (they can be too big)

hope this will help.

Please can some one tell us a good site where i can find information about logrotate, i want to learn more aboute logrotate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top