# SST xtrabackup-v2 with custom directories

**URL:** <https://forums.percona.com/t/sst-xtrabackup-v2-with-custom-directories/3555>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [June 18, 2014, 2:34pm UTC](https://forums.percona.com/t/sst-xtrabackup-v2-with-custom-directories/3555 "2014-06-18T14:34:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HTF1](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@HTF1](https://forums.percona.com/u/HTF1)\
**Post date:** [June 18, 2014, 2:34pm UTC](https://forums.percona.com/t/sst-xtrabackup-v2-with-custom-directories/3555/1 "2014-06-18T14:34:23Z")

</div>

I’ve created a separate directory for bin&relay logs however xtrabackup-v2 is not able to sync/create them on joiner.  
When I disable these options below it works fine, is there a way to exclude this directory (log)?

> [@](#):
>
> log-bin = /var/lib/mysql/log/mysql-bin  
> relay-log = /var/lib/mysql/log/mysql-relay  
> relay\_log\_info\_file = /var/lib/mysql/log/relay-log.info  
> slave\_load\_tmpdir = /var/lib/mysql/log/tmp

> [@](#):
>
> WSREP\_SST: [INFO] Cleaning the binlog directory /var/lib/mysql/log as well (20140618 20:18:48.611)  
> find: `/var/lib/mysql/log’: No such file or directory  
> WSREP\_SST: [ERROR] Cleanup after exit with status:1 (20140618 20:18:48.618)  
> WSREP\_SST: [INFO] Removing the sst\_in\_progress file (20140618 20:18:48.622)  
> 2014-06-18 20:18:48 29379 [ERROR] WSREP: Process completed with error: wsrep\_sst\_xtrabackup-v2 --role ‘joiner’ --address ‘$IP’ --auth ‘$USER:$PASSWORD’ --datadir ‘/var/lib/mysql/’ --defaults-file ‘/etc/my.cnf’ --parent ‘29379’ ‘’ : 1 (Operation not permitted)  
> 2014-06-18 20:18:48 29379 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.  
> 2014-06-18 20:18:48 29379 [ERROR] WSREP: SST failed: 1 (Operation not permitted)  
> 2014-06-18 20:18:48 29379 [ERROR] Aborting

---

<div class="post-metadata">

**Author:** ![jomar](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jomar](https://forums.percona.com/u/jomar)\
**Post date:** [June 18, 2014, 2:55pm UTC](https://forums.percona.com/t/sst-xtrabackup-v2-with-custom-directories/3555/2 "2014-06-18T14:55:27Z")

</div>

could it be directory ownership issue? I usually create custom directories with no problem.

---

<div class="post-metadata">

**Author:** ![HTF1](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@HTF1](https://forums.percona.com/u/HTF1)\
**Post date:** [June 18, 2014, 3:34pm UTC](https://forums.percona.com/t/sst-xtrabackup-v2-with-custom-directories/3555/3 "2014-06-18T15:34:17Z")

</div>

> [@jomar;17229](#):
>
> could it be directory ownership issue? I usually create custom directories with no problem.

I don’t think this is a ownership issue:

> [@](#):
>
> # ll -d /var/lib/mysql/log/
> 
> drwxr-xr-x 4 mysql mysql 28 Jun 18 22:01 /var/lib/mysql/log/

It looks like this directory is removed and then SST process is not able to re-create it?!

> [@](#):
>
> WSREP\_SST: [INFO] Proceeding with SST (20140618 21:59:12.713)  
> WSREP\_SST: [INFO] Cleaning the existing datadir and innodb-data/log directories (20140618 21:59:12.717)  
> removed `/var/lib/mysql/log/mysql-bin.000001' removed `/var/lib/mysql/log/mysql-bin.index’  
> removed directory: `/var/lib/mysql/log' removed `/var/lib/mysql/ibdata1’  
> removed `/var/lib/mysql/ib_logfile1' removed `/var/lib/mysql/ib\_logfile0’  
> removed `/var/lib/mysql/auto.cnf' removed `/var/lib/mysql/mysql.sock’  
> WSREP\_SST: [INFO] Cleaning the binlog directory /var/lib/mysql/log as well (20140618 21:59:13.127)  
> find: `/var/lib/mysql/log’: No such file or directory  
> WSREP\_SST: [ERROR] Cleanup after exit with status:1 (20140618 21:59:13.133)  
> WSREP\_SST: [INFO] Removing the sst\_in\_progress file (20140618 21:59:13.137)  
> 2014-06-18 21:59:13 32344 [ERROR] WSREP: Process completed with error: wsrep\_sst\_xtrabackup-v2 --role ‘joiner’ --address ‘$IP’ --auth ‘$USER:$PASSWORD’ --datadir ‘/var/lib/mysql/’ --defaults-file ‘/etc/my.cnf’ --parent ‘32344’ ‘’ : 1 (Operation not permitted)  
> 2014-06-18 21:59:13 32344 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.  
> 2014-06-18 21:59:13 32344 [ERROR] WSREP: SST failed: 1 (Operation not permitted)  
> 2014-06-18 21:59:13 32344 [ERROR] Aborting
