Web Hosting Talk







View Full Version : /usr/admserv/html/.cobalt/report/


serv
02-03-2002, 10:04 AM
(sorry about my English)

Many days now I have yellow light on Disk Usage
But no yellow light is on "Operating System and Programs" & "Virtual Sites"
All the sites light is green, so no user exceed his space

So I do "df" command and this the result
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 743466 669570 73896 90% /
/dev/hda3 198601 17782 180819 9% /var
/dev/hda4 17671528 545914 17125614 3% /home

I do a "find / -size +5000k "
and I found big files at /usr/admserv/html/.cobalt/report/
46372221 web.cache.new
45996228 web.cache
7786968 web.stats
1067363 ftp.cache.new
1066278 ftp.cache
996385 ftp.stats
156474 mail.cache.new
155758 mail.cache
105658 mail.stats
13537 stats.tab
1108 main.web.dat
1059 www.DOMAIN-NAME1.web.dat
1059 www.DOMAIN-NAME2.web.dat
1059 www.DOMAIN-NAME3.web.dat
1059 www.DOMAIN-NAME-N.web.dat

Can I delete all this files?
or reset a file to zero ?
like this "echo > web.cache"
I don't care if I clear the stats but I don’t want to have any other problem to my raq

also I have many "www.DOMAIN-NAME-N.web.dat" files from old domains were was in the raq at the past
can i deleted this files ?

Thank you (sorry about my English)

dnid
02-03-2002, 06:52 PM
Hi Serv!

Your root-partition is pretty full. Yes, you can delete all these web.stats and web.cache-stuff but you can move them to another partition as well. Wasn't there a patch which removed these files from the root-partition?

For the RaQ3 you should check if you installed this patch:
System: Log Files Update 4.0.1 > http://ftp.cobalt.com/pub/packages/raq3/eng/RaQ3-All-System-4.0.1-10659.pkg

Sorry, I don't know it for the RaQ4 - if there was one they replaced it with their OS-update.

HTH
Daniel

serv
02-04-2002, 03:28 AM
Originally posted by dnid
Wasn't there a patch which removed these files from the root-partition?

(sorry for my english)

Yes at the past it was a patch move logs

...but now the old patch is included in the new patch "OS Update 2.0"

so I must reset to zero or delete this files

serv
02-05-2002, 11:01 AM
the solution from sun :)

The first thing you will need to do is move the files to a directory in home. Make sure you become root with su -
mkdir /home/report (make sure it\'s owned by root and it's permissions are 755)
mv /usr/admserv/html/.cobalt/report/* /home/report/
when the initial report directory is empty, remove it.
rmdir /usr/admserv/html/.cobalt/report
Now create a symlink sending it\'s contents to the new directory in /home.
ln -sf /home/report /usr/admserv/html/.cobalt/report

That should stop this from happening again.

--
John
Sun Microsystems, Inc.