Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

/tmp filled up during download on Debian 9 server

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
frudak
Posts: 3
Joined: 2018-01-04 08:14

/tmp filled up during download on Debian 9 server

#1 Post by frudak »

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 partitions gets completely filled up.
What should I do?

frudak
Posts: 3
Joined: 2018-01-04 08:14

Re: /tmp filled up during download on Debian 9 server

#2 Post by frudak »

The actual error:

Code: Select all

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

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: /tmp filled up during download on Debian 9 server

#3 Post by p.H »

I assume that sda5 is /var ?
frudak wrote:the /tmp partitions gets completely filled up.What should I do?
Extend /tmp. Or move it to another filesystem with plenty of space.

Two notes :
- Do not use guided partitioning. It will almost always choose an inadequate size for at least one partition.
- When you split the hierarchy in many filesystems and you are not sure of the size requirements over time, I would recommend to use LVM logical volumes instead of plain partitions, and leave plenty of free space in the volume group for future growth. Extending a logical volume and its filesystem is easy and can be done online. Extending a partition often requires reducing and/or moving other partitions, which is not easy and must often be done offline.

frudak
Posts: 3
Joined: 2018-01-04 08:14

Re: /tmp filled up during download on Debian 9 server

#4 Post by frudak »

Is it possible to pass to LVMs without reinstalling the system?
I don't know exactly how LVMs are used.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: /tmp filled up during download on Debian 9 server

#5 Post by GarryRicketson »

This is what I do when I don't know about something .

On Debian how are LVMs used ?
==============
1st hit:
https://wiki.debian.org/LVM

---------------------------------------------
Can I create LVMs without reinstalling the system?
==============================
1 hit says this:
LVM can be set up after the system is installed. But putting the root partition on the LVM after the fact is quite difficult and probably would be better done with a reinstallation
============ edit ==========
I don't think you should need to re-install,
There is no unused space.
Even if all the partitions are being used, and that is normal, what counts
is how much space in the partition is being use, and how much free space is
available.

Code: Select all

/dev/sda7 85137408 89040895 3903488 1.9G 83 Linux <--- /tmp
/dev/sda8 89042944 130985983 41943040 20G 83 Linux <--- /home 
You probably could shrink the /home partition, then grow the /tmp partition.
Please show the out put of :

Code: Select all

df -h

For example here:

Code: Select all

/dev/sd0k      496G   21.4G    450G     5%    /home
/dev/sd0d      3.9G   12.0K    3.7G     0%    /tmp
 
If I needed to , I could shrink the /home partition, by maybe 5gb,
and use that to make the /tmp partiton 8.7 gb,.... not needed, but just a example.
Or another example:

Code: Select all

$ df -h
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  143G  4.1G  132G   4% /
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   202M  200K  202M   1% /run
/dev/disk/by-uuid/xxxxxxxxxxxxxxxx  143G  4.1G  132G   4% /
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
tmpfs                                                   1.2G     0  1.2G   0% /run/shm
 
Like wise , I have plenty of available space , out of 132G I am only using 4.1G
Last edited by GarryRicketson on 2018-01-04 11:54, edited 1 time in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: /tmp filled up during download on Debian 9 server

#6 Post by p.H »

frudak wrote:Is it possible to pass to LVMs without reinstalling the system?
Not easily. And I would not recommend it if you have never used LVM before.

Post Reply