Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    31

    Thumbs up Problem repairing table /tmp getting full. Urgent help needed please!

    Hello, please tell me how can i clear /temp

    /usr/tmpDSK 485M 460M 16K 100% /tmp

    let me know.. thanks...
    Last edited by cool999; 01-29-2010 at 05:22 AM.

  2. #2
    Member
    Join Date
    Jan 2010
    Posts
    31

    Default

    i found the reason why my tmp is getting full, one my database table is crashed, and when i try to repair it, it make the tmp full, and because of this i m not able to repair my table... ( i cleared the /tmp using this cmd - rm -f -r ses* ) please help me out... can i stop it from created log / session files or whatever in tmp so i can repair my table or any other way?

    urgent help please..

    Thank you...

  3. #3
    Member
    Join Date
    Nov 2005
    Posts
    7

    Default

    I guess your database is of large size and the memory allocated for mysql is not good enough.In such situations it will try to use /tmp and if it is also full then will fail.
    Removing session files is not a good option as its of very small size.
    Either you increase the memory for mysql or increase the /tmp size. This will help whenever you need to repair that database again.

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    31

    Default

    I did this and increased my /tmp to 2 GB, and repaired my table successfully..

    Code:
    # /etc/init.d/mysql stop
    # cp -af /var/tmp /var/tmp.bak
    # umount /var/tmp
    # umount /tmp
    # rm -f /usr/tmpDSK
    # dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=1048576
    # mkfs /usr/tmpDSK
    # tune2fs -j /usr/tmpDSK
    # mount -t ext3 -o nosuid,noexec,loop /usr/tmpDSK /tmp
    # mount -o bind,noexec,nosuid /tmp /var/tmp
    # cp -a /var/tmp.bak/* /tmp/
    # rm -rf /var/tmp.bak/
    # chmod 1777 /tmp
    # /etc/init.d/mysql start

    enjoy

Similar Threads & Tags
Similar threads

  1. /temp full please help
    By cool999 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-28-2010, 11:13 PM
  2. Temp Directory
    By codegirl42 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-24-2006, 11:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube