/tmp filled up during download on Debian 9 server

Kernels & Hardware, configuring network, installing services

/tmp filled up during download on Debian 9 server

Postby frudak » 2018-01-04 08:35

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

Postby frudak » 2018-01-04 08:43

The actual error:

Code: Select all
svnrdump: E000028: Can't write to file '/tmp/svn-RWs0Ds': No space left on device
frudak
 
Posts: 3
Joined: 2018-01-04 08:14

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

Postby p.H » 2018-01-04 10:14

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.
p.H
 
Posts: 395
Joined: 2017-09-17 07:12

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

Postby frudak » 2018-01-04 10:53

Is it possible to pass to LVMs without reinstalling the system?
I don't know exactly how LVMs are used.
frudak
 
Posts: 3
Joined: 2018-01-04 08:14

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

Postby GarryRicketson » 2018-01-04 11:27

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.
User avatar
GarryRicketson
 
Posts: 4807
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

Postby p.H » 2018-01-04 11:33

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.
p.H
 
Posts: 395
Joined: 2017-09-17 07:12


Return to System configuration

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable