1825002 Members
2782 Online
109678 Solutions
New Discussion юеВ

Removed mail.log

 
Ramones
Frequent Advisor

Removed mail.log

Hi everyone

I made the stupid mistake of removing mail.log logfile with sendmail and syslogd running. The result was that the space was not released. I've tried to fix it by restarting these deamons but I still have /var at 100%.
Does any of you iluminated ones can please tell me how to get the space back without a reboot?

Thanks,
R
3 REPLIES 3
Sajjad Sahir
Honored Contributor

Re: Removed mail.log

Dear friend

u can trim all log files
by usin >/var/adm/syslog/sylog.log
like this way u can trim log files in a regular way inorder to make space in var
second thing u have to find out files consuming more space

du -sk /var/* which will tell u which gives u grant total of each directory in kilobytes and unnessary files u can remove it
ok
thanks and regards

Sajjad
Ramones
Frequent Advisor

Re: Removed mail.log

Hi

I actually know all those things...so I made a big mistake, try to see it once my way
...I feel like poor Alice in chains :-)
But now I need to fix it...WOULD...you know how.
Thanks anyway.


Regards,
R
Dennis Handly
Acclaimed Contributor

Re: Removed mail.log

>can please tell me how to get the space back without a reboot?

You can only get the space back if you stop those processes. You may have to use lsof to find them.

If it is mail.log, restarting the demons should have done it.
How big were these logs? Have you looked elsewhere for other large files? Any crash dumps in /var/adm/crash?