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 full , but inside directory is just a few files

Discussion in 'General Discussion' started by activa, Apr 19, 2012.

  1. activa

    activa Well-Known Member

    Joined:
    May 23, 2006
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    Hello

    i have the /tmp file set to 2 Gb , and i get errors about mysql can't create tmp files , when i check the partition i get the fallowing info

    Code:
    root@server3 [/tmp]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/md2              916G  459G  411G  53% /
    /dev/md1              508M   29M  455M   6% /boot
    tmpfs                 4.0G     0  4.0G   0% /dev/shm
    /usr/tmpDSK           2.0G  1.9G   21M  99% /tmp
    when i enter the /tmp folder i found is just 17Mb usage

    Code:
    root@server3 [/tmp]# cd ..
    root@server3 [/]# cd /tmp
    root@server3 [/tmp]# du -sh
    17M     .
    root@server3 [/tmp]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/md2              916G  459G  411G  53% /
    /dev/md1              508M   29M  455M   6% /boot
    tmpfs                 4.0G     0  4.0G   0% /dev/shm
    /usr/tmpDSK           2.0G  1.8G   81M  96% /tmp
    what is the probleme here ? the df usage is not the same as th du usage ? any idea or road to go ?

    Note i have the mysql tmp dir set to /tmp .

    i have other servers with the same configuration but has not the tmp usage probleme .
     
  2. 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
    I would bet they are hidden files by MySQL instead. The temporary table files it creates are all hidden and wouldn't appear on a regular du of the folder. If it is breaching the size, you'll get "Incorrect key" entries in /var/lib/mysql in the error log there (hostname.err where hostname is the server's fully qualified hostname).

    You might check for prior threads discussing this. There are numerous ones, frequently one or more a week on this forum.
     
  3. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    Hello @activa, did you fixed your problem?

    BTW I was wondering how to do to increase the size of the /tmp partition
     
  4. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  5. jacks_webzia

    jacks_webzia Registered

    Joined:
    Sep 2, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    See the output of command

    cd /tmp
    du -sch *
     
Loading...

Share This Page