Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What would happen if /tmp is full? Would the server stop working? Only the applications running on it?
Any process that needs space in /tmp will have to work around this failure. If the process was written with the assumption that /tmp always has space (which would be bad code), it might just abort or raise other error conditions with misleading messages.
Stricly speaking, “the server” would not stop working, but it depends on what you mean by “the server”. For example, you might be unable to log on, or run any programs. The kernel would not panic.
Quote:
Can /tmp be filled by processes in memory?
What do you mean by that? Processes are in memory when they run. A process that is not in memory, i.e. swapped out, can’t run and therefore not fill /tmp.
Quote:
Sorry for such basic question
Not that basic, actually. It’s not clear at all which parts of your system would stop working.
Out of interest, why are you asking this question? Are you trying to figure out how much disk space to allocate to /tmp, or are you experiencing issues where /tmp is fairly full?
Thanks. I see the layers of complexity building up. I’m experiencing issues with /tmp getting filled up. When I check individuall files they don’t amount to the size of the file system. My server is a Hp with centos on it. Yesterday I got a close call and notice a core dump in the messages log file. I moved the largest file on /tmp to another file system and nothing happened after some time then the usage dropped to 40%.
I don’t see /tmp in the list of mounted filesystems. This means you should have 34G free space.
Often, temporary files are unlinked immediately after their creation. As a result, the ls command can’t see them, but they still exist and use up space as long as the corresponding file descriptor is not closed. This would explain why your file sizes and disk usage don’t correlate.
Last edited by berndbausch; 05-02-2019 at 06:09 PM.
The OP opened a duplicate thread - now closed - that has more relevant information.
Quote:
Today I had a near miss when /tmp got to 100%. Right before that happened it was 42%. I'm under the impression it was caused by a sos report the Linux Admin was running. At that time we noticed Red Hat cluster had failed over to the other node. I suggested being /tmp at 100% could have caused the failover but the Linux Admin dismisses the idea. Any thoughts on this?
If indeed /tmp did fill, that is most likely merely an after-effect of whatever caused the fail-over.
Talk to your sysadmin.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.