[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Clearing Inodes up - Sendmail not working.

Posted on 2006-11-14
6
Medium Priority
?
2,123 Views
Last Modified: 2013-12-16
I am having a problem with my sendmail application. For some time now my emails have not been sending from my Linux 7.3 Red hat Box. I traced down the problem and apparently it's happening because my I nodes are full and there is no available space. upon doing a df -i I get the following output:

Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/hda6              98392   21326   77066   22% /
/dev/hda1              12048      52   11996    1% /boot
/dev/hda5            1460160   30861 1429299    3% /home
none                   80337       1   80336    1% /dev/shm
/dev/hda2            3178496   77115 3101381    3% /usr
/dev/hda7              66264    3728   62536    6% /var


and "df -a" produces:

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda6               381139    133198    228263  37% /
none                         0         0         0   -  /proc
usbdevfs                     0         0         0   -  /proc/bus/usb
/dev/hda1                46636     18193     26035  42% /boot
none                         0         0         0   -  /dev/pts
/dev/hda5             11495900   1659772   9252168  16% /home
none                    321348         0    321348   0% /dev/shm
/dev/hda2             24991736   1170656  22551544   5% /usr
/dev/hda7               256667    256667         0 100% /var

As you can see hda7 is full and so this is causing the problem.

upong checking the maillogs i found the following error:

Nov  5 05:59:29 internal sendmail[17464]: kA35GC810968: to=kelly_wallace@cox.net, ctladdr=apache (48/48), delay=2+05:43:17, xdelay=00:04:00, mailer=esmtp, pri=10200317, relay=mx.west.cox.net. [68.6.19.3], dsn=4.0.0, stat=Deferred: Connection timed out with mx.west.cox.net.
Nov  5 06:00:00 internal sendmail[25583]: kA5B00R25583: from=root, size=265, class=0, nrcpts=1, relay=root@localhost
Nov  5 06:00:00 internal sendmail[25583]: kA5B00R25583: SYSERR(root): Error writing control file ./tfkA5B00R25583: No space left on device


As you can see on the very last night it says "No Space left on device"

Addiotionally when typing "sendmail"  on my box I get the following error: "Can't create a transcript file no space left on device".



So my question ultimately is, How do I free space up from this area?? What could I delete to make some space up I do not want to cause any problems by deleteing something that the system uses.

Best regards,
Caragol.
0
Comment
Question by:caragol
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 14

Accepted Solution

by:
ygoutham earned 1000 total points
ID: 17944718
you can look at /var/log and remove all old log files to a safer area or some other partition which has some free space.  check also /var/ftp/pub to see if anything can be moved out from there as well.
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17944723
mails would not work if the system is not able to write to the log file.  you need space in /var/log area and therefore the error.
0
 

Author Comment

by:caragol
ID: 17946985
Yep I started deleting some stuff yesterday from the logs. Also can I delete these type of files  ./tfkA5B00R25583 created by the mail or will I screw something up??
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:caragol
ID: 17947354
Also can laslog be deleted? this file is huuuge.
I tried doing a cat on it but forget about it, it's too big for that.
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17953513
if you are not sure about the logs, try moving it to some other computer where you can look at it in leisure.  the type of files tfkxxxxxxxxxxx should be residing somewhere in /var/spool/mail which indicates that it is a unsent message.  check with a

head tfkxxxxxxxxxxxxxxx | more

and see what the contents are before taking such actions.

it seems that the system is performing a loop function in one of the routine either in crontab or in one of cron.hourly / cron.daily /etc.

see through the log to understand such weird behaviour of system.  deleting files is an unintelligent option.  find out the cause of such activity and try eliminating them.  better safe than sorry ;-)
0
 

Author Comment

by:caragol
ID: 17955866
Thanks for your input on the matter ygoutham! : 0
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question