Backup crashes server

Hello,

This server is a new install of webmin/virtualmin on centos 7, with latest updates.

After starting a backup from the web interface on

                 virtualmin > backup and restore > backup virtual server and there: -all virtual server, include subservers, -local file or directory: /home/bkup/bkup.tar.gz, -single archive file, -action on error: continue with other features and services (I've always used that option with all systems because sometimes the are some errors such as log rotate file not found)

the full system freezes and a lot services crash. After some digging I found out that the reason:

# df (before starting the backup)

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/mapper/vg0-root 55087360 23288208 28977832 45% /

devtmpfs 1016552 0 1016552 0% /dev

tmpfs 1024292 0 1024292 0% /dev/shm

tmpfs 1024292 8528 1015764 1% /run

tmpfs 1024292 0 1024292 0% /sys/fs/cgroup

/dev/vda1 495844 124597 345647 27% /boot

/dev/mapper/vg0-temp 1998672 6148 1871284 1% /tmp

tmpfs 204860 0 204860 0% /run/user/0

# df (after starting the backup)

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/mapper/vg0-root 55087360 23287940 28978100 45% /

devtmpfs 1016552 0 1016552 0% /dev

tmpfs 1024292 0 1024292 0% /dev/shm

tmpfs 1024292 8536 1015756 1% /run

tmpfs 1024292 0 1024292 0% /sys/fs/cgroup

/dev/vda1 495844 124597 345647 27% /boot

/dev/mapper/vg0-temp 1998672 1982056 0 100% /tmp

tmpfs 204860 0 204860 0% /run/user/0

I've never had this issue on any virtualmin system...

Status: 
Active

Comments

Howdy -- it looks like your temp directory isn't large enough for the size backups that are being performed.

The /tmp directory is used for creating the backup files within Virtualmin, and if it's filling up, you may need to change what directory is being used as the temp dir.

To change that, you can go into Webmin -> Webmin -> Webmin Configuration -> Advanced Options, and there, you can change the Webmin temp directory path.

It looks like you still have space on the / partition, so you could change it to something like /var/tmp/.webmin (it's set to /tmp/.webmin by default).

If you have any followup questions -- it looks like you're using Virtualmin GPL there, and the area here is for folks using Virtualmin Pro. For additional questions, you'd want to use the Forums for support. We monitor the Forums, along with lots of wonderful folks in the community. Thanks!

Thanks for your reply!

Shouldn't Virtualmin check if there is enough space before writing the files on the partition? :)

Filling up /tmp shouldn't crash the system though... Also, Virtualmin has no way of knowing in advance how large a compressed backup will be, so it can't prevent /tmp or the backup destination from filling up.