--tmpdir= should change the tmp directory for streaming all files, not just for backup-my.cnf

Bug #1086136 reported by Brad Lang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
New
Undecided
Unassigned

Bug Description

When I do a

innobackupex --user=backupuser --password=<password> --stream=xbstream --tmpdir=/mnt/lv1/tmp /doesntneedtoexist | ssh <email address hidden> "xbstream -x -C /backups/<dir>/base-<year-month-day>/"

on a large database (5TB in my case), the OS disk fills up before the backup finishes. xtrabackup 2.0.3 seems to store files in /tmp before streaming them over to the backup location near the end of the process. I found the culprit with
sudo lsof | grep '(deleted)'
which I'm pretty sure was a giant ibdata1.

So --tmpdir= doesn't seem to work for the most important, largest files. I had to symlink /tmp to my /mnt/lv1/tmp so I could actually complete the backup. It does seem to change the directory for backup-my.cnf

Revision history for this message
Jervin R (revin) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.