Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Secret Agent
    Guest

    Default /tmp won't increase in size

    Used chirpy's method

    /etc/init.d/chkservd stop
    /etc/init.d/mysql stop
    umount /var/tmp
    umount /tmp
    replace "256000" "512000" -- /scripts/securetmp
    rm /usr/tmpDSK
    /scripts/securetmp --auto
    cd /tmp
    ln -s /var/lib/mysql/mysql.sock
    /etc/init.d/mysql start
    /etc/init.d/chkservd start
    df

    # Add the following line before /scripts/securetmp to /etc/rc.d/rc.local
    replace "256000" "512000" -- /scripts/securetmp

    Its not increasing in size. I got no errors either. I rebooted before I began and even after. /tmp is only 190MB now. Anyone know what the issue could be? I want /tmp to be about 2GB in size

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Cleveland, Ohio
    Posts
    378

    Default

    edit /etc/rc.local and remove the "/scripts/securetmp --auto" line.

    /etc/init.d/chkservd stop
    /etc/init.d/mysql stop
    umount /var/tmp
    umount /tmp
    rm /usr/tmpDSK
    /scripts/updatenow
    replace "256000" "512000" -- /scripts/securetmp
    /scripts/securetmp
    /etc/init.d/mysql start
    /etc/init.d/chkservd start


    Try that (should be no "--auto" option when running from command line).

  3. #3
    Secret Agent
    Guest

    Default

    Thank you. Got it
    Last edited by Secret Agent; 03-19-2005 at 06:06 AM.

  4. #4
    Member Alexandre Duran's Avatar
    Join Date
    May 2003
    Location
    Rio de Janeiro - BRAZIL
    Posts
    59

    Default

    when I execute: umount /tmp I receive the message: umount: /tmp: device is busy

    My DF:

    root@ns1 [~]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda3 68437272 53993828 10966980 84% /
    /dev/sda1 101089 14922 80948 16% /boot
    none 512696 0 512696 0% /dev/shm
    /dev/tmpMnt 984248 282808 651440 31% /tmp
    Last edited by Alexandre Duran; 03-21-2005 at 11:24 PM.

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Indeed it will be busy. You should try the following to release it:

    service chkservd stop
    service httpd stop
    service mysql stop
    service postgresql stop

    umount /tmp


    If it's still coming up busy, you need to find out what processes have files open on it:

    lsof | grep /tmp

    You'll need to kill off any processes listed. When you're done, restart the services you killed and:

    service postgresql start
    service mysql start
    service httpd start
    service chkservd start
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member Alexandre Duran's Avatar
    Join Date
    May 2003
    Location
    Rio de Janeiro - BRAZIL
    Posts
    59

    Default

    Hi,

    Didn't work.
    I execute:

    service chkservd stop
    service httpd stop
    service mysql stop
    service postgresql stop

    umount /tmp
    Message:
    umount: /tmp: device is busy

    and:
    lsof | grep /tmp

    The terminal is stopped, nothing is listed.

    I try to execute:
    umount /tmp

    And the message returns:
    umount: /tmp: device is busy

    My df :

    root@ns1 [/]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda3 68437272 53650044 11310764 83% /
    /dev/sda1 101089 14922 80948 16% /boot
    none 512696 0 512696 0% /dev/shm
    /dev/tmpMnt 984248 282816 651432 31% /tmp

    What is that " none "?

    My fstab:

    /dev/sda3 / ext3 defaults,usrquota 1 1
    /dev/sda1 /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/sda2 swap swap defaults 0 0
    /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
    /dev/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0

Similar Threads & Tags
Similar threads

  1. How to increase /tmp size ?
    By agnivo007 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2009, 04:55 AM
  2. mysql failed - i change size of /tmp /var/tmp use this command
    By dlthhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-13-2007, 03:39 AM
  3. How to: Increase parition size of /tmp/
    By AkhilStyle in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-16-2006, 10:55 AM
  4. increase tmp size
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-08-2005, 10:43 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube