LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-06-2008, 12:49 AM   #1
nandipati.vasu
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Help Me


# 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
and
#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

Vasu
 
Old 10-06-2008, 02:34 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 10-07-2008, 12:38 AM   #3
nandipati.vasu
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I have removed few files from the log folder. And I have executed the logrotate. but it didnot change.

vasu
Hyderabad
 
Old 10-07-2008, 01:31 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
  


Reply

Tags
e2fsck, rhel4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration