Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/tmp won't increase in size

Discussion in 'General Discussion' started by Secret Agent, Mar 18, 2005.

  1. Secret Agent

    Secret Agent Guest

    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. Blue|Fusion

    Blue|Fusion Well-Known Member

    Joined:
    Sep 12, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Cleveland, Ohio
    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. Secret Agent

    Secret Agent Guest

    Thank you. Got it
     
    #3 Secret Agent, Mar 19, 2005
    Last edited by a moderator: Mar 19, 2005
  4. Alexandre Duran

    Alexandre Duran Well-Known Member

    Joined:
    May 6, 2003
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Rio de Janeiro - BRAZIL
    when I execute: umount /tmp I receive the message: umount: /tmp: device is busy :confused:

    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
    :confused:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 Alexandre Duran, Mar 21, 2005
    Last edited: Mar 21, 2005
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Alexandre Duran

    Alexandre Duran Well-Known Member

    Joined:
    May 6, 2003
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Rio de Janeiro - BRAZIL
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice