if you are getting error on site due to tmp of full or getting emails Drive Critical: /dev/loop0 (/var/tmp) is 97% full
then you have to follow steps below.
First you have to resize the tmp partation
Edit /scripts/securetmp
and fine the line my $tmpdsksizeCode:nano /scripts/securetmp
Code:my $tmpdsksize = 512000; # Must be larger than 250000
Change to this line for 2GB:
Save the file then run these commands to resize /tmp partition:Code:my $tmpdsksize = 2097152; # Must be larger than 250000
You can use the following steps to move the MySQL /tmp directory location:Code:umount -l /tmp umount -l /var/tmp rm -fv /usr/tmpDSK /scripts/securetmp
Place the following line into the file under the [mysqld] section:Code:nano /etc/my.cnf
Save the fileCode: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
USA/Canada:+19177466166 | UK: +447937432982 | INDIA: +918808807967 | PAKISTAN: +923135096592
[Only registered and activated users can see links. Click Here To Register...]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks