Yes. Doing so outputs the same notice -Did you try running the script a second time after receiving that initial failure?
It's a straight-up dedicated server.Is your system Virtuozzo or OpenVZ? If so, then /scripts/securetmp will not work on those systems due to not having a loopback device on them.
if ( !grep /loop/, @modules ) {
print "*** Notice *** No loop module detected\n"; # could be built into kernel, so don't bail out yet
print "If the loopback block device is built as a module, try running `modprobe loop` as root via ssh and running this script again.\n";
print "If the loopback block device is built into the kernel itself, you can ignore this message.\n";
}
if ( !$has_loop_device ) {
print "*** Notice *** No working loopback device files found. Try running `modprobe loop` as root via ssh and running this script again$
You can use the verbose flag when running the command manually. EX:No output was given when issuing the "/usr/sbin/tmpwatch --mtime --all 24 /tmp" command
/usr/sbin/tmpwatch --verbose --mtime --all 24 /tmp
Hi,Hello,
What size is your /tmp partition? You can resize it if it isn't large enough. Many servers have only 500MB for /tmp which isn't large enough and should be around 2GB instead. You could edit /scripts/securetmp for this line:
Change to this line for 2GB:Code:my $tmpdsksize = 512000; # Must be larger than 250000
Save the fileCode:my $tmpdsksize = 2097152; # Must be larger than 250000
wq), then run these commands to resize /tmp partition:
Unfortunately, if you aren't able to catch it when it has the high usage, it's difficult for us to state why it's alerting. It could be high session activity (those sessions do clear on their own) for some site during the times it hits the high disk space level. It could be MySQL having the temporary MyISAM tables filling it up. It could be EAccelerator writing files to it (if you use that, it writes some temporary files there). There are many reasons it could be happening. If you aren't certain, you can simply resize it to be larger. Otherwise, you'll have to watch it closely until you do catch it and then provide the details on what you are seeing.Code:umount -l /tmp umount -l /var/tmp rm -fv /usr/tmpDSK /scripts/securetmp
There are also some scripts that will periodically clear tmp such as tmpwatch, but you need to be careful not to cron clear /tmp as EasyApache writes to /tmp during build, so you cannot simply clear files every 15 minutes or something, since you'll then break EasyApache from recompiling properly.
Thanks.
The /tmp partition is read only and indicates file system corruption or disk issues. You would need to contact your provider, datacenter or NOC to reboot the machine and have them run an fsck on it. This is outside of anything to do with cPanel and is a hardware level issue./tmp/crontab.XXXXJRVkLb: Read-only file system
You can use the following steps to move the MySQL /tmp directory location:
1. Edit /etc/my.cnf file to set new tmpdir for MySQL
Place the following line into the file under the [mysqld] section:Code:vi /etc/my.cnf
Save the file with :wqCode:tmpdir=/mysqltmp
2. Create the /mysqltmp directory
3. Restart MySQL and check that the tmpdir is now /mysqltmpCode:mkdir /mysqltmp chmod 1777 /mysqltmp
You should see the following return:Code:/etc/init.d/mysql restart mysqladmin var | grep tmpdir
This presumes / partition itself has sufficient space. I would like to hope / partition would have more space than /tmp was provided on most systems.Code:# mysqladmin var | grep tmpdir | slave_load_tmpdir | /mysqltmp | tmpdir | /mysqltmp
hello dearHello,
What size is your /tmp partition? You can resize it if it isn't large enough. Many servers have only 500MB for /tmp which isn't large enough and should be around 2GB instead. You could edit /scripts/securetmp for this line:
Change to this line for 2GB:Code:my $tmpdsksize = 512000; # Must be larger than 250000
Save the fileCode:my $tmpdsksize = 2097152; # Must be larger than 250000
wq), then run these commands to resize /tmp partition:
Unfortunately, if you aren't able to catch it when it has the high usage, it's difficult for us to state why it's alerting. It could be high session activity (those sessions do clear on their own) for some site during the times it hits the high disk space level. It could be MySQL having the temporary MyISAM tables filling it up. It could be EAccelerator writing files to it (if you use that, it writes some temporary files there). There are many reasons it could be happening. If you aren't certain, you can simply resize it to be larger. Otherwise, you'll have to watch it closely until you do catch it and then provide the details on what you are seeing.Code:umount -l /tmp umount -l /var/tmp rm -fv /usr/tmpDSK /scripts/securetmp
There are also some scripts that will periodically clear tmp such as tmpwatch, but you need to be careful not to cron clear /tmp as EasyApache writes to /tmp during build, so you cannot simply clear files every 15 minutes or something, since you'll then break EasyApache from recompiling properly.
Thanks.
cp /scripts/securetmp /scripts/securetmp.bck
$tmpdsksize = int($tmpdsksize);
my $FOUR_GIG_k = ( 1024 * 1024 * 2 );
my $FOUR_GIG_k = ( 2048 * 2048 * 4 );
service cpanel stop
service httpd stop
service mysql stop
service exim stop
cp -r /tmp /root/tmp.backup
cp -r /usr/tmpDSK /root/tmpDSK.backup
umount -l /tmp
umount -l /var/tmp
rm -fv /usr/tmpDSK
/scripts/securetmp
service cpanel start
service httpd start
service mysql start
service exim start