Skip to main content

increasing /usr/tmpDSK directory

Comments

13 comments

  • server9host
    Hello, Please follow below steps to increase the /tmp disk space : So log into SSH and SU to root so we may being! cd /dev
    Create 100MB file for our /tmp partition. If you need more space, make count size larger. dd if=/dev/zero of=tmpMnt bs=1024 count=100000
    Make an extended filesystem for our tmpMnt file /sbin/mke2fs /dev/tmpMnt
    Backup your /tmp dir- I had mysql.sock file that I needed to recreate the symbolic link for. Other programs may use it to store cache files or whatever. cd / cp -R /tmp /tmp_backup
    Mount the new /tmp filesystem with noexec mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp chmod 1777 /tmp
    Copy everything back to new /tmp and remove backup cp -R /tmp_backup/* /tmp/ rm -rf /tmp_backup
    Now we need to add this to fstab so it mounts automatically on reboots. vi /etc/fstab
    You should see something like this: /dev/hda3 / ext3 defaults,usrquota 1 1 /dev/hda1 /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/hda2 swap swap defaults 0 0
    At the bottom add /dev/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0
    Save the file Now you can check your /tmp disk space is increases. :)
    0
  • cPanelMichael
    Hello :) The securetmp script will utilize 1% of disksize with a minimum of 500M and a maximum of 4G, based on the available space on the /usr partition (where the tmpDSK file is stored). You are welcome to manually create a /tmp partition if you prefer to use a larger size. Thank you.
    0
  • gadalf
    Thank you for your reply, I tried to follow the steps and when i reached at: vi /etc/fstab
    I did not received the end results showed. Once it asked me to use [QUOTE]tune2fs -c
    to overwrite it and now i keep getting cp: overwrite. see the attached picture please!.vB
    0
  • server9host
    Hello, Please perform tune2fs -c for new tmp partition to adjust filesystem parameters.
    0
  • gadalf
    I failed again :( I am not very good in linux plz take a look what i did and explain i details plz .vB
    0
  • server9host
    Hello, /tmp writing process running on server that why you face this issue. Please stop all services then try to backup the /tmp file. If still face issue then run below command : lsof |grep /tmp
    you will see what processes are still writing and you can kill them: kill -9 PID. or do umount -l /tmp umount -l /var/tmp
    Then try to backup the your tmp directory and proceed for further steps. Thanks
    0
  • gadalf
    Thank you for your reply but i still have not yet resolved it. It keeps increasing, I contacted my compamy where I got the vps and here is their reply: [QUOTE] In your particular case we notice around 4 gb of data at /tmp/eaccelerator when you might want to have a look and delete if you think it is not of any use to you.
    Can you tell me please how to access /tmp/eaccelerator and see what files are there?
    0
  • cPanelMichael
    [quote="gadalf, post: 1743332">Thank you for your reply but i still have not yet resolved it. It keeps increasing, I contacted my compamy where I got the vps and here is their reply: Can you tell me please how to access /tmp/eaccelerator and see what files are there?
    You could modify the following line in your /usr/local/lib/php.ini file: eaccelerator.cache_dir="/tmp/eaccelerator"
    To: eaccelerator.cache_dir="/home/eaccelerator"
    Then run the following commands: mv /tmp/eaccelerator /home/ /scripts/restartsrv_httpd
    Thank you.
    0
  • gadalf
    Thank you very much for you reply, Please tell me how to access to this file [QUOTE]/usr/local/lib/php.ini
    ? What comand I should run to access that, or i can access from WHM?
    0
  • server9host
    Hello, You can access the php.ini file using below command : vi /usr/local/lib/php.ini
    Thanks
    0
  • gadalf
    thank you!
    0
  • aravindan
    Hi, Can I able to increase /tmp partition size to 10 GB or more than that ? Thanks Aravindan R
    0
  • cPanelMichael
    Hi , Can I able to increase /tmp partition size to 10 GB or more than that ? Thanks Aravindan R

    Hello, Please see my earlier post here:
    0

Please sign in to leave a comment.