solaris zfs replication with mbuffer

mbuffer and incremental snapshots:

download and compile mbuffer

on source, create pool filesystem and snapshot.

-=-=-=-=-=-=-=-=-=-=

zpool create source disk1

zfs create source/f1

zfs snapshot source/f1@a

-=-=-=-=-=-=-=-=-=-=

on destination, create pool and filesystem.

-=-=-=-=-=-=-=-=-=-=

zpool create dest disk1

zfs create dest/f1

-=-=-=-=-=-=-=-=-=-=

on source send snapshot to destination

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

zfs send source/f1@a | ssh dest zfs receive dest/f1

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

send incremental using mbuffer.

1. on destination start mbuffer to listen.

/usr/sfw/mbuffer -s 128k -m 1G -I 9090|zfs receive dest/f1

2. on source start zfs send to mbuffer.

zfs send -i source/f1@a source/f1@b | /usr/sfw/mbuffer -s

128k -m 1G -O dest:9090

watch the transfer....

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.