Skip to main content

Increase /tmp directory

Comments

4 comments

  • Sebastienbo
    Re: Increase /tmp folder I've been able to create it with dd, but it looks like its not beeing utilised SO I don't know where tmp is getting those 512mb from...but it's certainly not from the tmpdsk
    0
  • Sebastienbo
    Re: Increase /tmp folder I've find a custumised solution, it seems that the mkfs was the problem, it stopped at mkfs and then I had to re-execute it to make it work. So my script is now in two parts, to make it work, i now got a 2GB tmp (4 times bigger then initially) offcourse I also edite the securetmp file so that the next reboot doesn't kill my changes /etc/init.d/cpanel stop /etc/init.d/httpd stop /etc/init.d/lsws stop /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=2048576 mkfs /usr/tmpDSK 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 /etc/init.d/httpd start /etc/init.d/cpanel start /etc/init.d/lsws start [COLOR="silver">- - - Updated - - - Dohhh, After reboot I got again 512mb tmp!!! Can someone help here, please
    0
  • Sebastienbo
    Ok, everything works now with this script (and change the securetmp script value to 4G) /etc/init.d/cpanel stop /etc/init.d/httpd stop /etc/init.d/lsws stop /etc/init.d/mysql stop cp -af /var/tmp /var/tmp.bak umount /var/tmp umount /tmp rm -f /usr/tmpDSK /scripts/securetmp /etc/init.d/mysql start /etc/init.d/httpd start /etc/init.d/cpanel start /etc/init.d/lsws start
    0
  • cPanelMichael
    Hello :) I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.