Skip to main content

Temporary disk full in backup

Comments

6 comments

  • SysSachin
    Tell WHM/cPanel to make the compression process in home folder, not tmp folder : I think that could be the solution. Is there anybody who knows how to do it?

    You have to set /backup directory for store backups files. Login to WHM >> Backup Configuration Once you have set /backup then the backup files will stored in that folder.
    0
  • hayridumanli
    As I wrote above, /backup directory has been already set, I left it as default as I always did, attached please see screenshot. The problem happens when cPanel creates the backup file of big accounts, it uses tmp disk for creating the compressed account files, since tmp disk is not big enough to store the compressing file, it gets full. For the small accounts, it can compress the account files and put it into backup folder, I have seen it. The problem is big sized accounts.
    0
  • Infopro
    Why are you backing up to the same drive as your accounts? You should know that if that drive gets corrupted, or drops over dead, it happens, your backups go with it with this sort of configuration for backups.
    0
  • hayridumanli
    Of course I am not backing up to the same drive :) And I think there is a problem in my English :) OK, I write it one by one, if I make any mistake please warn me; 1) I make backup of all of the accounts by WHM backup to Amazon S3, I make it for years, so I know how to backup to Amazon S3 and it was working very good until 2 days 2) Backup process of WHM/cPanel goes like this; a) cPanel compresses an account, it gives the name as accountname.tar.gz, and this compression process is being done in tmp disk b) When it finishes compression, it puts the compressed accountname.tar.gz file into backup directory (as written in Backup Configuration in WHM, such as /backup) c) Then starts to upload the file to backup destination (in my case it's Amazon S3, or it can be ftp, etc.) d) In the meantime, cPanel goes on to compress the another account, then continue the process in b, c and d order. OK, my problem is in 2-a, if the account is 100 GB, the compression disk needs at least 100 GB I think, when it's compressed it may be 40 - 50 GB, but the needed disk space should be at least the size of account. So, I have 50 GB in tmp folder, 100 GB account cannot be compressed in this size of disk, size of tmp folder is not enough to put the compressing files. I know it, because cPanel can compress small sized accounts, puts the compressed file in /backup folder, and then sends the file to Amazon S3, I can see them in Amazon. But when the time comes to big sized accounts, it cannot finish the compression process, because the size of tmp folder is not big enough to handle the compression process. So, I repeat my solutions, 3 is the one about cPanel; 1) Merge /var/tmp disk and home disk ; it would be marvellous, it was always like this in my previous VDSs, but as far as I read from forums, you cannot combine (merge) the disks. Is there anybody who knows how to do it? 2) Expand the tmp disk : They say it's very risky, I have to backup home folder first (which I cannot make backup as I said), then unmount home folder, expand the tmp folder, then mount home folder again and restore the backups. It's something like you have to be physically near the server, because my whole data is around 80 GB. 3) Tell WHM/cPanel to make the compression process in home folder, not tmp folder : I think that could be the solution. Is there anybody who knows how to do it?
    0
  • cPanelMichael
    Hello, Updating the partition setup often requires the reinstallation of the OS. That might be the better long-term solution. In the meantime, you could configure the default backup directory in "WHM >> Backup Configuration" to "/home/backup" after creating that directory with the "mkdir /home/backup" command. The other solution would be to exclude the files or directories that your largest accounts use in order to reduce the space required for the backup archive to generate: How to Exclude Files From Backups - cPanel Knowledge Base - cPanel Documentation You'd then setup a custom script that manually rsyncs the excluded data to the remote destination. Thank you.
    0
  • hayridumanli
    Hi again, Changing the default backup directory from /backup to /home/backup worked like a charm. Thank you so much Michael for your support. But the new server has been already setup, I will transfer my accounts to a new server, so I'll follow your reinstallation of OS solution, too.
    0

Please sign in to leave a comment.