Post in the list.
> -----Original Message-----
> From: Fred Liu
> Sent: 星期五, 十二月 14, 2012 23:41
> To: 'real-men-dont-cl...@gmx.net'
> Subject: RE: [zfs-discuss] any more efficient way to transfer snapshot
> between two hosts than ssh tunnel?
> > Hi Fred,
> > I played with zfs send/reveive some time ago. One important thing I
> > learned was that netcat is not the first choice to use.
> > There is a tool called mbuffer out there. mbuffer works similar to
> > netcat but allows a specific buffer size and block size.
> > From various resources I found out that the best buffer and block
> > for zfs send/receive seem to be 1GB for the buffer with a block size
> > 131073.
> > Replacing netcat by mubuffer dramatically increases the throughput.
> > The resulting commands are like:
> > ssh -f $REMOTESRV "/opt/csw/bin/mbuffer -q -I $PORT -m 1G -s 131072 |
> > zfs receive -vFd $REMOTEPOOL"
> > zfs send $CURRENTLOCAL | /opt/csw/bin/mbuffer -q -O $REMOTESRV:$PORT
> > 1G -s 131072 > /dev/null
> > cu
> Thank you so much for the sharing and I will try it.
zfs-discuss mailing list