Web Hosting Talk







View Full Version : tmp dir short of space


carpman
07-31-2001, 08:28 AM
hello, i keep getting error messges about / partition getting full, this happens because the tmp folder is getting full of cpanel theme tmp files. Here is the current disk setup

Current Disk Usage
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 251M 156M 82M 66% /
/dev/hda1 38M 2.4M 34M 7% /boot
/dev/hda9 5.9G 136M 5.5G 2% /home
/dev/hda5 2.5G 590M 1.8G 25% /usr
/dev/hda6 509M 19M 464M 4% /var


it seems to me that when the server was set up they did not give the / partition (where tmp is) enough space.

Is it possible to move or allow the /tmp dir more space with out to much hassle?

Or maybe setup a cron job to delete the old tmp files?

cheers

(SH)Saeed
07-31-2001, 08:45 AM
You can move the /tmp dir to another partition where there's more space and create a symbolic link for it.

carpman
07-31-2001, 05:23 PM
Cheers, any chance of a quick outline of what i have to do.

Would it be something like this.

Go to partition with plenty of space

create dir called tmp

then go to current tmp dir and create symbolic link to new tmp dir

PS how do create symbolic link or do have to get my linux book out :)

teck
07-31-2001, 05:24 PM
Type:

man ln

:)

carpman
07-31-2001, 05:27 PM
One other thing, i see by your signature you like mysql, i have been trying to get mysql to let me access it from home cable connection with dreamweaver via odbc.

any idea how i can do this

Tim Greer
07-31-2001, 08:37 PM
mv /tmp /tmp_old
mkdir /home/tmp
chmod 1777 /home/tmp
ln -s /home/tmp /tmp
cd /tmp_old
cp * -R /home/tmp/