From owner-freebsd-fs@freebsd.org Thu Jan 7 07:36:15 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12C89A66012 for ; Thu, 7 Jan 2016 07:36:15 +0000 (UTC) (envelope-from john@potato.growveg.org) Received: from potato.growveg.org (potato.growveg.org [62.49.247.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D052D1CDF for ; Thu, 7 Jan 2016 07:36:14 +0000 (UTC) (envelope-from john@potato.growveg.org) Received: from john by potato.growveg.org with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aH57D-000JBz-AQ for freebsd-fs@freebsd.org; Thu, 07 Jan 2016 07:36:11 +0000 Date: Thu, 7 Jan 2016 07:36:11 +0000 From: John To: freebsd-fs@freebsd.org Subject: Re: zfs send compression query Message-ID: <20160107073611.GA50011@potato.growveg.org> Reply-To: freebsd-fs@freebsd.org Mail-Followup-To: freebsd-fs@freebsd.org References: <20160106233557.GA6185@potato.growveg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: john X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 07:36:15 -0000 On Wed, Jan 06, 2016 at 05:01:44PM -0800, Sean Chittenden wrote: > > >-- >Sean Chittenden > > >> On Jan 6, 2016, at 15:35, John wrote: >> >> $ zfs send -R vms/132@2016-01-06.2122 | pigz -9c | ssh backup@[remote_ip] \ >> pigz -dc | zfs recv -Fdvu storage/snapshots The problem I'm getting with that compressor (and others) is that it bails like this: send from @ to vms/133@2016-01-07.0648 estimated size is 32.1G total estimated size is 32.1G cannot receive: specified fs (storage/snapshots) does not exist Pseudo-terminal will not be allocated because stdin is not a terminal. TIME SENT SNAPSHOT -bash: line 1: syntax error near unexpected token |' [then get a load of binary garbled output and then a broken pipe error] zfs send works fine if I don't try to compress the stream: $ zfs send -Rv vms/133@2016-01-07.0648 | ssh backup@[redacted] zfs recv -Fdvu storage/snapshots send from @ to vms/133@2016-01-07.0648 estimated size is 32.1G total estimated size is 32.1G TIME SENT SNAPSHOT receiving full stream of vms/133@2016-01-07.0648 into storage/snapshots/133@2016-01-07.0648 07:26:44 300K vms/133@2016-01-07.0648 07:26:45 1.92M vms/133@2016-01-07.0648 07:26:46 3.42M vms/133@2016-01-07.0648 I'm guessing I'm doing something wrong with the pipes, but not sure how to solve it... -- John