Skip to content

Commit

Permalink
MDEV-21709 ZFS snapdir=visible breaks Galera rsync SST replcation
Browse files Browse the repository at this point in the history
Fix for Galera rsync SST with the specific conditions listed in MDEV-21709
Exclude needs to be on receiving side too
  • Loading branch information
darkain authored and Jan Lindström committed Jun 24, 2020
1 parent eba9189 commit fe0cf85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/wsrep_sst_rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ fi

# New filter - exclude everything except dirs (schemas) and innodb files
FILTER="-f '- /lost+found'
-f '- /.zfs'
-f '- /.fseventsd'
-f '- /.Trashes'
-f '+ /wsrep_sst_binlog.tar'
Expand Down Expand Up @@ -354,7 +355,7 @@ EOF
[ "$OS" = "Linux" ] && count=$(grep -c processor /proc/cpuinfo)
[ "$OS" = "Darwin" -o "$OS" = "FreeBSD" ] && count=$(sysctl -n hw.ncpu)

find . -maxdepth 1 -mindepth 1 -type d -not -name "lost+found" \
find . -maxdepth 1 -mindepth 1 -type d -not -name "lost+found" -not -name ".zfs" \
-print0 | xargs -I{} -0 -P $count \
rsync ${STUNNEL:+--rsh="$STUNNEL"} \
--owner --group --perms --links --specials \
Expand Down Expand Up @@ -437,6 +438,7 @@ timeout = 300
$SILENT
[$MODULE]
path = $WSREP_SST_OPT_DATA
exclude = .zfs
[$MODULE-log_dir]
path = $WSREP_LOG_DIR
[$MODULE-data_dir]
Expand Down

0 comments on commit fe0cf85

Please sign in to comment.