/tmp/ out of disk space

Hello,

I have a dedicated Linux (CentOS) web server located 2000 miles away that I have full root SSH access to.

I had some trouble uploading files from a web-based form to one of my websites so I checked out my diskspace using df.

It shows /tmp at 100% and /var/tmp at 100%.

Is this a problem?  What should I do?  

Is this a GOOD or BAD idea?

        rm -rf /var/tmp/*
        rm -rf /tmp/*


/dev/sdb5             10317828    767396   9026316   8% /
/dev/sdb1               101086     30267     65600  32% /boot
none                   1037156         0   1037156   0% /dev/shm
/dev/sdc1            241083332     94284 228742704   1% /disk2
/dev/sdb7            206927892  35177592 161238976  18% /home
/dev/sdb8              1035660   1034700         0 100% /tmp
/dev/sdb3             10317860   4532016   5261724  47% /usr
/dev/sdb2             10317860   2074264   7719476  22% /var
/tmp                   1035660   1034700         0 100% /var/tmp

Open in new window

LVL 16
hankknightAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent OlsenData Warehouse Architect / DBACommented:
Hi hankknight,

If the system is configured correctly, it will still run after such a blanketing purge.

But, there's always a chance that some system routine or application as installed in such a way that space from /tmp was "borrowed".  That could be devastating.

Keep in mind that any applications that are currently trying to allocate more space on /tmp are simply in a "wait" state.  When space becomes available, the tasks will resume.  Also realize that if all of the files on /tmp are currently open to tasks awaiting space, deleting them ONLY removes their catalog entry.  They are not actually purged until the task that has them open closes them.  Either explicitly or by terminating.

Personally, I'd search for a small gun.  See if there are some backup files or other such items that can be deleted.  Anything ending in .tar, .log etc, on /tmp should be fair game.



Good Luck,
Kent
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hankknightAuthor Commented:
Thanks!  I found a 2 gig .txt file in there that was doing nothing.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.