# df -k /var reported 100% used
i have stopped the syslog service. unmounted the file /var file system.
# e2fsck -B 4096 -n -b 32768 /dev/VG00/lvvar
I have executed the above command. afterwords I have given df -k /var
I got the following output
/dev/VG00/lvvar 73786976294838190080 73786976294838190080 0 100% /var
#ls command is not showing any files or folders.
if #cd log
it is changing to the folder.
How to make file system behave normally.
I am using RHEL4
Why did you do this:
e2fsck -B 4096 -n -b 32768 /dev/VG00/lvvar
If the partition is full, you need to delete some log files and probably amend the logratotate scripts to purge more frequently.
I have removed few files from the log folder. And I have executed the logrotate. but it didnot change.
You need to look at your log dirs carefully and figure out which programs are primarily responsible for filling the disk and amend (change) the relevant logrotate scripts to remove those files more frequently.
eg my system has the current log, plus the 4 previous logs for a given service. In that case you'd want to change it to eg current plus previous 3.
|All times are GMT -5. The time now is 06:08 PM.|