Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    70

    Default /tmp filling up when running repair on database

    Hello

    I have a client with a 1 gb MySQL DB and in the midst of running a repair on her database, the page just went blank (white) and the /tmp partition filled up, grinding a couple of other sites on server to a standstill.

    Problem is, when it timed out, it was fixing a table on her database which is now locked saying "in use" and I'm not sure I want to run another "repair" on it for the fear of affecting other clients or further ruining this table/database.

    Any guidance on how I can increase the size of the /tmp folder or what would be a potential fix.

    FYI when I click on the table in question, I see this error

    #1016 - Can't open file: 'post.MYI' (errno: 144)
    Will appreciate any help you can provide.

  2. #2
    Member outlaw web's Avatar
    Join Date
    Mar 2006
    Posts
    45

    Default

    I would advise against trying to increase the size of the /temp partition.

    you'd be better to try deleting any or all unused files out of it to gain space.

    try this:

    cd /tmp | ls -la -S2 | more
    this will tell you what's eating up the space. the largest of which will be at the top.

    or

    cd /tmp
    ls -l

    Or, sort by size:
    ls -l | sort -n +4


    then it's a process of deleting the unnecessary files thst are clogging up your /temp folder.


    also the 1016 - Can't open file: 'post.MYI' (errno: 144) error will be caused most likely because the database user does not have write access to the /tmp directory on that server

    OWM
    Last edited by outlaw web; 07-29-2007 at 07:03 PM.
    I never think of the future - it comes soon enough......

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    70

    Default

    Thanks for the response. The thing is the /tmp folder gets full trying to run the REPAIR command via phpmyadmin and goes back to being empty as soon as the process is terminated. Hence I asked if I could increase the size of the /tmp folder, maybe that would help executing the db REPAIR effectively.

  4. #4
    Member outlaw web's Avatar
    Join Date
    Mar 2006
    Posts
    45

    Default

    this may help.

    http://www.webhostgear.com/34.html


    that's one hell of a size of an sql db.
    OWM
    Last edited by outlaw web; 07-29-2007 at 07:32 PM.
    I never think of the future - it comes soon enough......

  5. #5
    Member
    Join Date
    Jun 2005
    Posts
    70

    Default

    Thanks for that chief, yea its a 1 gb database.

  6. #6
    Member outlaw web's Avatar
    Join Date
    Mar 2006
    Posts
    45

    Default

    hmm....

    there is another option that would be more server friendly.

    get the client to download and repair the database locally on their pc....then re upload it once they've repaired it.

    OWM
    I never think of the future - it comes soon enough......

  7. #7
    Member
    Join Date
    Jun 2005
    Posts
    70

    Default

    The screw up with that is the doing the repair the first time and getting the whitepage resulted in the posts table (which is about 750 mb) to get locked. phpmyadmin shows its "in use". So performing a backup results in getting a DB that's only 100 something MB.

  8. #8
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    Just reassign the temp file for that session to a different partition when you are doing the repair.

    TMPDIR=/home/tmp; export TMPDIR ;

    Most people have lots of room in home.
    Lloyd F Tennison

Similar Threads & Tags
Similar threads

  1. messages-archive filling /tmp
    By Pyrix in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-10-2008, 02:14 PM
  2. Clamav and spamd are filling my /tmp
    By anton_latvia in forum E-mail Discussions
    Replies: 7
    Last Post: 11-05-2007, 11:05 AM
  3. Logwatch filling up /tmp
    By Solokron in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 05-15-2007, 12:01 AM
  4. /tmp filling up 100%
    By cz1179 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-08-2005, 03:09 PM
  5. Database Repair
    By jackal in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-30-2003, 07:38 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube