URGENT 100% disk usage!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers URGENT 100% disk usage!!
# 1  
Old 04-03-2003
URGENT 100% disk usage!!

Help!

Our mail server has 100% disk utilisation. I don't know much about linux but I need to delete something pronto. I only have to keep this thing ticking over until it is replaced by an exchange server in a few weeks, but the phone is constantly ringing with people telling me they can't send or receive, which I already know!

I don't know what I can and can't delete safely, log files I guess. I've had a rummage around and can't find anything that stands out. It's red hat 5.1 if that makes any difference.

Thanks!
# 2  
Old 04-03-2003
getting rid of the log files probably would help, if they are of a large size, however in some cases you cant just delete them, because the program writing to the log file will look for the log file to be a certain size, and if its not it will just write garbage data to fill it up to the size it was. search on google for log file removal, also try searching on red hats website for help. since its just a mail server (?) make sure to remove any packages that arent being used. get rid of X and any gui utils, again, if this is just an mail server, get rid of httpd.. im sure others will have more suggestions for you. good luck.
# 3  
Old 04-03-2003
the earlier post is right

try find / -size +10000
yls177
# 4  
Old 04-03-2003
I often look for files that were written to recently...

find / -mtime -3 -print

Since this is a mailserver, I would look at the mailboxes. There may be a user who was mailbombed or spammed or innocently mailed an encyclopedia or something.
# 5  
Old 04-04-2003
Thanks for the replies. I discovered the machine only has a 1.5GB drive and just the accumalation of unread emails etc from approx 600 accounts has filled it up to capacity. I have deleted some old accounts which has freed up 5% of space which should keep it going for a while.

I did't realise the disk was that small. How easy is it to add another one on such an old OS? And I how would I tell it to start using the new disk. At the moment all mail sits in the users' home directories, so I would somehow need to split the /home/ directory over 2 disks?

Oh, it also uses Apache to run a webmail front end.
# 6  
Old 04-04-2003
im not too familiar with combining hard drives, but search on google for LVM.
# 7  
Old 04-04-2003
ealier posts indicate that the os is redhat 5.1 and i think ... only aix, hpux ofters LVM readily.... SUN uses ufs by default but they have their own volume management... (if i am right...)
yls177
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Disk usage monitoring and record the disk used in last 24 hour

HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you. ================= #!/bin/bash TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies

2. HP-UX

Disk Usage

Hi Experts, glance is showing disk util 100% on of production domain and while collecting sar data using sar -d 5 5, avserv for some of the disks are more than 10 miliseconds. Need your advise on steps that needs to be taken to reduce the disk utilitzation. device %busy avque r+w/s ... (2 Replies)
Discussion started by: sai_2507
2 Replies

3. Red Hat

Disk usage showing 100% after deleting files also | Red Hat Linux 3.2.2-5

My Redhat Linux system is always showing 100& disk usage. I have removed almost all the files, but no use and I am always getting 100% disk usage.!! Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 36337384 36066352 0 100% / I can... (7 Replies)
Discussion started by: sanoop
7 Replies

4. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

5. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

6. Shell Programming and Scripting

disk usage

Hi If the disk space is running low in the home directories, and I cannot add more disk space at the moment. How can I determine who is using the most disk space? (4 Replies)
Discussion started by: tjay83
4 Replies

7. Shell Programming and Scripting

disk usage

fdisk -l shows me the total disk size. How can I see, how much disk space is free or available? (5 Replies)
Discussion started by: tjay83
5 Replies

8. AIX

Hard disk usage is 100 Percent Busy for any command

hi, AIX 5.3 For any command(say tar command) I am getting 100% busy for my hdisk. But my CPU and Memory is not busy and have more idle also. Please advice for any performance analysing. Thanks in Advance, (3 Replies)
Discussion started by: npcrao
3 Replies

9. Shell Programming and Scripting

Disk Usage

Hi, I want to retrieve the directory in the shell script that is using maximum space on the disk.I was using du command but it displays all the directories that are using the space on the disk.How can retrieve the only directory which uses the maximum space on the disk?? Thanks in advance. ... (4 Replies)
Discussion started by: harikamamidala
4 Replies

10. Shell Programming and Scripting

disk usage

Hi ,.. I am working on a script like.... it has to monitor the disk usage (df -H) and if usage is above 95% then it has to return the particular mount point details... i am in confusion to use awk or sed..... regards rrs (1 Reply)
Discussion started by: rrs
1 Replies
Login or Register to Ask a Question