Web Hosting Talk







View Full Version : [tmp] drive full? clearing it up?


jezzomaster
06-01-2004, 09:23 PM
How do I clear up the TMP ?

Thanks,
jezzo

TLott
06-01-2004, 09:26 PM
By *carefully* removing files from /tmp and/or /var/tmp

Dont touch things like mysql.sock...

jezzomaster
06-01-2004, 09:28 PM
well, what do I remove?

TLott
06-01-2004, 09:30 PM
What's in there? Should be able to find a batch of garbage/old files that are obviously unused.

Pheaton
06-01-2004, 09:36 PM
well... if you don't have any important files in there just run rm -rf /tmp/*, but you probably do (such as mysql.sock) so I wouldn't advise doing that.

Show us the output of 'ls /tmp'.

KNL-BSW
06-01-2004, 09:47 PM
rm -f -r ses*

That is a good start

Then
cd /tmp

ls -l

See what is left.

jezzomaster
06-01-2004, 10:34 PM
Originally posted by cMark

Show us the output of 'ls /tmp'.

t
root@red [~]# ls /tmp
./ cpanel.TMP.ZZb04sL0NICmCrPC
../ .font-unix/
cpanel.TMP.1gKMfmCbmYfYFhpH horde.log
cpanel.TMP.54Q3qG1MALb5Kp8n .iroha_unix/
cpanel.TMP.AUYfmrtRbfm8aQQI ixed/
cpanel.TMP.cFqvJ5q1T1U5jppP jd_sockV4=
cpanel.TMP.cJPcKWrSAI35oacC lost+found/
cpanel.TMP.CmUo9SAuQlmFnP1J mysql.sock@
cpanel.TMP.D0j_5LusHYLqRcIX phpc4wJNR
cpanel.TMP.D6sePCkRw3Z8LIYZ sess_170791b377937ad7589b1fbd53b1127a
cpanel.TMP.DCRe5TNk7R0sel1_ sess_2445b8127e172e10eb270816611ed349
cpanel.TMP.dnd_C9QehErzmG3R sess_24a9c970fdff1fdd67adbe5d10ae01d3
cpanel.TMP.eYHosjjaHCve2dmA sess_2c5d89f41b2d608eea358b1834122b66
cpanel.TMP.fbUcQR6B7TPSZaEQ sess_31d83ecfe4e0f45ec86fe349f7b34330
cpanel.TMP.gASYiy_MDdaCeU37 sess_3de464a8dca28f714e823ce083f6afe9
cpanel.TMP.gK_dfWs8ffUslzh3 sess_5853f7a8228129cf4698d637522a2ece
cpanel.TMP.h2BTD94Lzg0261wL sess_615393a7087d6b46def170e66e07fe17
cpanel.TMP.I7hGC5_J9q8BZSak sess_6928a300dea65702b279cb00f8b8c547
cpanel.TMP.IhwcyZTieqcx36AE sess_6b1de1dff58f9c9e49fed3e283cb3ec0
cpanel.TMP.j7DjFrVROIodPQCp sess_7ee0bb23421a253631c6589111c269be
cpanel.TMP.JCJ10hTAZyffyB24 sess_86e721e8965a1aa65e3404165c0db545
cpanel.TMP._KKiszDVbDAa2PyH sess_89bd61cbfb1b6d569b91f84c306584a9
cpanel.TMP.LBr3nGeNulNP8J0K sess_8cbfe5df05236399dde014978c73b490
cpanel.TMP.MHooSOwIui3BDsAt sess_8dce2f45d83e59d08054aa3bcca7138e
cpanel.TMP.MKS6n3TELqI6i_36 sess_90f2d2669f1d7ef2bbb8219f4276421c
cpanel.TMP.MktFX2a5sQcArxTJ sess_9e35d988db355e5603caac32c807a2c4
cpanel.TMP.OhhvkjXwOLlCharp sess_9f13a82e80b52993954e333b0ba8f8a1
cpanel.TMP.qWldez0MBEs3RekS sess_a41a92bae3bb8fa59becebad88d1635e
cpanel.TMP.swD_DVia3UPyhjCC sess_acb56f7903b66fbc3a93cf345d76f058
cpanel.TMP.tK4C6qN1hY8_IKx0 sess_b1da9ea366be18362369ba2e541ee3f0
cpanel.TMP.ubrF7NupEGpQerWO sess_b5793481c16a80515a23a36475f4774a
cpanel.TMP.usQmRzOlWHydH8ZB sess_c77928186d2ed4937073b2a009c2ce1d
cpanel.TMP.Utf6cOmuThgm3aky sess_c9ee5876f23f96d9b896a9e1c21cc892
cpanel.TMP.uYogtLcrNQpA9hwH sess_da581d6c431477d0bce23dab78181941
cpanel.TMP.vqeJuyNT60epl52v sess_dee7cd25a06f4b1618180779c6497a07
cpanel.TMP.Vqkz3x1Cu6LgMQJp sess_e456bb17b88b123635bbe48a3b40c0c2
cpanel.TMP.Xz4lilPYAenIkpwe sess_e5a9180fc170a0eda1c260aa4c39de62
cpanel.TMP.XzxoubiUx561tiLT sess_f3207587f7dc5b1dcfb2fb5cbc7eab1b
cpanel.TMP.Y1rMw4cYapUCbqZo sess_f94e8239812d59fa5fc06e820fe5787c
cpanel.TMP.ybSML2RslcOH3ExQ sess_fad45b2f4ddae534f970bc171be1e5dc
cpanel.TMP.yuXFAgQB1kyC3WZj ZCUDjJkXq4
cpanel.TMP.zLu8yYFlGMoPy50W ZCUDqEOLI2

KNL-BSW
06-01-2004, 10:39 PM
rm -f -r cpanel*

Those are all just temp files.

Pheaton
06-01-2004, 10:39 PM
issue the command rm -rf /tmp/cpanel.TMP.* to clean out all the temporary cpanel files. They're not needed.

jezzomaster
06-01-2004, 10:54 PM
DAMN!!!!

Good going me,... I did this

root@red [~]# rm -rf /tmp cpanel.TMP.*

So it deleted everything in the tmp DIR...
Now what do I do?
*beats himself*

KNL-BSW
06-01-2004, 10:57 PM
cd /
mkdir tmp
chmod 755 tmp

That should fix it if you actually deleted the temp folder.

If you didn't, just reboot and all services will restart.

If you can't reboot try "service mysql restart" and hopefully that is the only one that will be down.

vizhost.com
06-01-2004, 11:34 PM
actually.

i think your going to have to recreate the mysql.sock
as ddi said, if you reset it, there might be a chance it might come back.

If not, and assuming you have cpanel, try running upcp.

KNL-BSW
06-01-2004, 11:56 PM
ln -s /var/lib/mysql/mysql.sock mysql.sock works too. :)

Just did it for him.

jezzomaster
06-02-2004, 12:07 AM
Yes, DDIHosting was very helpful

Thanks Larry. Really appreciate the help. Not all community members are helpful. But thank you. Really appreciate the hospitality.

CretaForce
06-02-2004, 04:51 AM
Try to link /var/tmp to /tmp and then create /tmp in a seperate partition with 500MB-1GB of disk space. Then you will not have to worry if /tmp eats space from /

Also you can write a simple shell script to clear your /tmp every week or month.

IRCCo Jeff
06-02-2004, 05:15 AM
Originally posted by jezzomaster
DAMN!!!!

Good going me,... I did this

So it deleted everything in the tmp DIR...
Now what do I do?
*beats himself*

That's not so bad. I had an admin go:

rm -rf /usr

Instead of

rm -rf /usr/src

Needless to say he does not work for me anymore ;)

abnormis
06-02-2004, 06:29 AM
Originally posted by DeathNova
That's not so bad. I had an admin go:

rm -rf /usr

Instead of

rm -rf /usr/src

Needless to say he does not work for me anymore ;)

O.o

Man, cntl-z won't help you outta that one! :D

KNL-BSW
06-02-2004, 06:34 AM
Originally posted by DeathNova
That's not so bad. I had an admin go:

rm -rf /usr

Instead of

rm -rf /usr/src

Needless to say he does not work for me anymore ;) :eek: :eek: :eek: :eek:

That would have been my reaction hearing someone say that.

I'm not even sure how I would have reacted to the person themselves............... :rolleyes:

frankiee
06-02-2004, 07:08 AM
---------------------- THIS ONE WORKS FOR SURE----------------------

Logon to root SSH, then:
(it's exactly as follows)

Type in: cd /tmp

then

Type in: rm -rf cpanel*

then

Type: service cpanel restart;service mysql restart

------------------------------------------------------
Logoff, you're done.

The asterix (*) is essential
WORKS EVERYTIME!

jezzomaster
06-02-2004, 10:08 AM
Thanks fx-host, i got it taken care of :)

frankiee
06-02-2004, 11:28 AM
No problem :)