LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-22-2021, 10:53 AM   #1
GooberJack
LQ Newbie
 
Registered: Aug 2016
Distribution: CentOS 6.4
Posts: 7

Rep: Reputation: Disabled
Expand /tmp


Hello,

I have a server running Ubuntu 14.04.5 LTS. The /tmp is on a on a separate 2TB drive and is showing 94% full. Users are complaining they don't have enough space. They have a request to increase the space but I'm not really sure how to do this or even if it's possible based on the setup. I've done a Google search and seen processes where people increase /tmp but I'm not sure if this is along the same lines or not. I've attached a picture showing the disk layout and usage. Any help in clarifying how this works would be greatly appreciated.

Thank You
Attached Thumbnails
Click image for larger version

Name:	linux_tmp.JPG
Views:	26
Size:	25.7 KB
ID:	35328  
 
Old 01-22-2021, 11:42 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Users shouldn't be out of space with 200G left. I take it the space is actual space, not bad blocks, inodes, directories, etc.

I don't know your situation, but what needs so much space in /tmp? How can anyone find a file in 1.6T of /tmp files? If there's directories there, you can symlink stuff to another partition Add another partition, mount it, slide stuff off tmp into your new partition and then put a symlink in /tmp pointing at the new directory.

My instinctive reaction would be to install order on guys spewing drivel into /tmp and overfilling it, but that's the parent in me
 
2 members found this post helpful.
Old 01-22-2021, 11:49 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by GooberJack View Post
Hello,
I have a server running Ubuntu 14.04.5 LTS. The /tmp is on a on a separate 2TB drive and is showing 94% full. Users are complaining they don't have enough space. They have a request to increase the space but I'm not really sure how to do this or even if it's possible based on the setup. I've done a Google search and seen processes where people increase /tmp but I'm not sure if this is along the same lines or not. I've attached a picture showing the disk layout and usage. Any help in clarifying how this works would be greatly appreciated.
Well, my first thought would be to stop and install a current version of Ubuntu. 14.04 has been end-of-life since 2019...and it's now 2021. You are behind on patches/security fixes, so a fresh install/restore-from-backup would let you repartition things easily.

Second thought: you don't have a /home mounted anywhere...so I'm assuming that your users actually have their home directories in /tmp??? Why on earth would they be there? And the /view partition would make me question what this server does. As business_kid said, what are the users doing in /tmp in the first place?? That server is EOL, so now would be an excellent time to rebuild it, in my opinion.

Given the price of drives, grabbing new ones wouldn't be a bad thing...shove the old ones into external enclosures so you can copy data over later if needed. Do a fresh install, and put /home on its own drive (or partition).
 
1 members found this post helpful.
Old 01-22-2021, 12:39 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
/tmp is full?

Reboot, it's supposed to be volatile data.

Or check what's in there first.
 
Old 01-22-2021, 02:20 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The question is what are your users doing with temp. I assume this is a ext filesystem and you can gain some space by reducing reserved space to 1% or even zero as a short term fix.
 
1 members found this post helpful.
Old 01-22-2021, 03:18 PM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Time to run tmpwatch.
 
  


Reply

Tags
tmp, ubuntu 14.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 03:36 AM
"/tmp/sv001.tmp/setup.bin" error while installing OO1.1.0 Choey Linux - Software 0 09-16-2003 04:52 PM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM
how to expand my /tmp...partition Zvezda Linux - General 2 07-03-2003 07:42 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration