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.

/scripts/securetmp -- How to create MUCH LARGER /tmp folder?

Discussion in 'General Discussion' started by pkiula, Apr 29, 2012.

  1. pkiula

    pkiula Member

    Joined:
    Jan 14, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    The default setting for disk size in the script
    Code:
    /scripts/securetmp 
    is about 512 MB.

    This is pretty useless for any real world server with a website that gets any amount of meaningful traffic.

    I went into the script and changed the value in the following line:

    Code:
    #---- my $tmpdsksize     = 512000;    # Must be larger than 250000
    my $tmpdsksize     = 2097152;;    # Must be larger than 250000
    
    Then I executed the usual commands:


    Code:
    lsof /tmp
    umount -l /tmp
    umount -l /var/tmp
    rm -fv /usr/tmpDSK
    /scripts/securetmp
    
    Then I do the "df -h" and it shows me this:


    Code:
    /dev/sda8     ext3    996M  509M  436M  54% /tmp
    

    Why is it "996M" when I specified 2GB? It should be close to 2000M right?

    Any tips welcome. Thanks.
     
    #1 pkiula, Apr 29, 2012
    Last edited: Apr 29, 2012
Loading...

Share This Page