The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tmp Folder Email Thingy

Discussion in 'E-mail Discussions' started by chmava, May 12, 2011.

  1. chmava

    chmava Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    is there any way for whm to tell more then just

    "Drive Critical: /dev/sda6 (/tmp) is 100% full"

    everytime it's full?

    like which script or users ip is causing it?

    As We cannot find a log file related to the tmp folder.

    Yes tmp folder is like 2GByte huge...... so that cant possible be the issue....

    Yes i have use google and search and no solution....

    Normally Tmp is at 3-5% even if our traffic is at 300k an hour.

    So i wish to hear it from the expert (You Guys!).

    Best Regards,
    Chmava
     
  2. chmava

    chmava Member

    Joined:
    May 31, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Bump.............................
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you actually looked in the tmp directory to see whats in it and who at least some of the files are owned by? Is your server running SuPHP?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please check the MySQL error logs to see if it is filling up /tmp during these times:

    Code:
    ls -lah /var/lib/mysql/*.err
    The above command will tell you the name of the MySQL error log. Once you know the name, then do the following command:

    Code:
    grep -i "Incorrect key file for table" /var/lib/mysql/hostname.err
    Where hostname.err is the name of the error log file for MySQL. If you do get returns that show /tmp in the return similar to the following:

    The #sql_4108_0.MYI portion will differ. Then this means that MySQL is writing large amounts of data for temporary MyISAM tables to /tmp and filling it up until it has no space left.

    To correct the issue, you can change the MySQL tmpdir field with these steps:

    Code:
    mkdir /mysqltmp
    chown mysql:mysql /mysqltmp
    Edit /etc/my.cnf file to change the tmpdir location:

    Code:
    cp /etc/my.cnf /etc/my.cnf.bak110512
    vi /etc/my.cnf
    In the file, place this line:

    Code:
    tmpdir=/mysqltmp
    Save the file with :wq command, then restart MySQL:

    Code:
    /etc/init.d/mysql restart
    If it is not MySQL doing this, then are you running EAccelerator on the machine and does it save files to /tmp location? You can see if you have EAccelerator enabled with this command:

    Code:
    php -v | grep -i eaccelerator
     
Loading...

Share This Page