Currently, in PXC 5.7, the tmpdir parameter doesn’t do very much for xtrabackup-v2 SST (changes the location of some temporary files used by the script)
To change the location of the backup files, as a workaround, you can manually edit the wsrep_sst_xtrabackup-v2 script
change the line (around line 1127)
itmpdir=$(mktemp -d)
to
itmpdir=/path/to/your/temp/file
Hi,
another option set the TMPDIR on the top of the script:
edit wsrep_sst_xtrabackup-v2 and add
export TMPDIR=/mysql/sst_ist_stage
later, you will se the change on the script:
WSREP_SST: [INFO] Streaming with xbstream (20170323 16:11:51.102)
WSREP_SST: [INFO] Using socat as streamer (20170323 16:11:51.105)
WSREP_SST: [INFO] Using /mysql/sst_ist_stage/tmp.LxzmCD7EUA as xtrabackup temporary directory (20170323 16:11:51.126)
WSREP_SST: [INFO] Using /mysql/sst_ist_stage/tmp.yPp4ONZAvD as innobackupex temporary directory (20170323 16:11:51.130)