LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-04-2018, 03:35 AM   #1
frudak
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Rep: Reputation: Disabled
/tmp filled up during download on Debian 9 server


Hi there!
I would need some help with respect to a problem that I don't know how to address.
I'm running Debian 9 on a virtual server (RAM: 4GB, hard disk space: 850GB).
I chose the default installation settings provided by the Graphic Installer, especially as regards partitions, where I selected

Partitioning scheme: guided, “Separate /home, /var, and /tmp partitions”

For my server applications, however, I figured out that a /srv partition for "server data hosted by the system" (as man hier says) would be a good thing.
So I ended up with the following partitions (using resize2fs and fdisk and modifying /etc/fstab):

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 48828415 48826368 23.3G 83 Linux <--- /
/dev/sda2 48830462 1782577151 1733746690 826.7G 5 Extended
/dev/sda5 48830464 68360191 19529728 9.3G 83 Linux
/dev/sda6 68362240 85135359 16773120 8G 82 Linux swap / Solaris
/dev/sda7 85137408 89040895 3903488 1.9G 83 Linux <--- /tmp
/dev/sda8 89042944 130985983 41943040 20G 83 Linux <--- /home
/dev/sda9 130988032 1782577151 1651589120 787.6G 83 Linux <--- /srv


There is no unused space.
Now I am trying to migrate an SVN repository with

svnrdump dump --username my_user_name -r revisions SVN_url > dump_file

but it fails at downloading a certain revision because the /tmp partition gets completely filled up:

svnrdump: E000028: Can't write to file '/tmp/svn-RWs0Ds': No space left on device

What should I do?

Last edited by frudak; 01-04-2018 at 03:39 AM.
 
Old 01-04-2018, 04:02 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
the first question is: how much space do you really need?
I don't know this svnrdump, but probably it will honor the variable TMP or TMPDIR and you can specify another location.
next, you can (temporarily) remove (umount) /tmp and use /tmp as part of the root filesystem
You may try to shrink /home and add that space to /tmp too.
 
1 members found this post helpful.
Old 01-04-2018, 04:19 AM   #3
frudak
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your answer.

Hard to say about /tmp... I heard that it should be approximately half of the RAM.
Anyway I followed the guided partition configuration and assumed it was OK for what I had to do...
By the way, which criteria do you advise me to properly size it?

I will try out what you suggested.

Last edited by frudak; 01-04-2018 at 04:23 AM.
 
Old 01-04-2018, 04:26 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by frudak View Post
/tmp... I heard that it should be approximately half of the RAM.
i think you are confusing this with swap.

in any case, the application filling the /tmp likely has a config setting where you can specify a different tmp directory; one that won't fill up too quickly.
tried that?

generally speaking, this meticulous partitioning is somewhat outdated.
it can be good, but it also can make things harder.
 
Old 01-04-2018, 04:31 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
Oh yes, probably you mixed swap and tmp. But anyway without knowing any details about the usage of your server nobody can suggest you anything. For example I have no any idea if swap was required at all. If you need a home dir for something. Or if you have a database. Or .....
 
Old 01-04-2018, 04:50 AM   #6
frudak
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
generally speaking, this meticulous partitioning is somewhat outdated.
it can be good, but it also can make things harder.
My source was here.

Quote:
i think you are confusing this with swap.
My source was here, but maybe I interpreted wrongly.

Quote:
But anyway without knowing any details about the usage of your server nobody can suggest you anything.
It is primarily a SVN server, but in the future I will use it also as a git server.
 
Old 01-04-2018, 05:54 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
frudak, you failed to address the most important bit:
Quote:
Originally Posted by ondoho View Post
in any case, the application filling the /tmp likely has a config setting where you can specify a different tmp directory; one that won't fill up too quickly.
tried that?
i'm guessing it's svn and i'm pretty sure it can be configgerd to use a different tmp dir.
 
Old 01-04-2018, 06:20 AM   #8
frudak
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
frudak, you failed to address the most important bit
ondoho, you failed to read what pan64 and I wrote before your posts in this thread.
Please post only if you have something new to say (and let me try before answering).
 
Old 01-04-2018, 07:42 AM   #9
frudak
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Temporarily unmounting /tmp solved the issue. However, IMHO it is worth to consider moving to LVMs for more flexibility.
Thank you for the help!
 
  


Reply



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
[SOLVED] Debian limits /tmp size to 1.1 GB the98 Debian 6 04-09-2015 06:47 PM
I've downloaded office.org tar file. Moved it from 'download' folder to a tmp directo hypex Linux - Software 2 05-01-2011 06:30 PM
Debian puts the squeeze on me: /usr filled up! jamesac Debian 4 02-08-2011 11:51 PM
Debian: what to download, how to burn iso.tmp? kb=mvp Debian 10 07-17-2004 10:50 PM
Every thing i download goes to tmp Notfromkansas Linux - General 0 01-08-2002 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:26 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