From owner-freebsd-fs@FreeBSD.ORG Sun Apr 7 22:31:02 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0FD87CAB; Sun, 7 Apr 2013 22:31:02 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (lrosenman-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3ad::2]) by mx1.freebsd.org (Postfix) with ESMTP id D15DD33A; Sun, 7 Apr 2013 22:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=I7vaFBL2goRXMxfWs5TsBxReNqjIbn/p92TqN/EcHaA=; b=WDg5w+PHsZyvMTBrEoYjB1SeHWiEVNgOUi7AK2afC9x7wqzuEP9eaYRmU+9mhDFUUb+a15an+vfsoDs3K+CPh6EYuzs6fhIOxuz3TH8fWXn0ZSeHfDVFxnY/s+tPuYX8NM8Ks7N1BlVjoOodc5VDB8Eh3F6jHYpMcGxXJRlW4fs=; Received: from localhost.lerctr.org ([127.0.0.1]:29504 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpa (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UOy71-000PGx-7h; Sun, 07 Apr 2013 17:31:00 -0500 Received: from cpe-72-182-19-162.austin.res.rr.com ([72.182.19.162]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Sun, 07 Apr 2013 17:30:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 07 Apr 2013 17:30:58 -0500 From: Larry Rosenman To: , , Subject: Fwd: Re: [CRASH] ZFS recv (fwd)/CURRENT Message-ID: <289c2c9fdee18a5acefcb225e28b9310@webmail.lerctr.org> X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/0.8.5 X-Spam-Score: -5.3 (-----) X-LERCTR-Spam-Score: -5.3 (-----) X-Spam-Report: SpamScore (-5.3/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-2.373 X-LERCTR-Spam-Report: SpamScore (-5.3/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-2.373 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Apr 2013 22:31:02 -0000 Anyone have any ideas on how to debug this? -------- Original Message -------- Subject: Re: [CRASH] ZFS recv (fwd)/CURRENT Date: 2013-04-07 17:04 From: Larry Rosenman To: Martin Matuska I updated to 249241, and got: backups/TBH/home/unofficial-dbs@2013-04-07 received 33.2MB stream in 14 seconds (2.37MB/sec) receiving incremental stream of vault/home/spolk@2013-04-07 into zroot/backups/TBH/home/spolk@2013-04-07 received 103KB stream in 1 seconds (103KB/sec) receiving incremental stream of vault/home/cb3law@2013-04-07 into zroot/backups/TBH/home/cb3law@2013-04-07 received 18.5KB stream in 1 seconds (18.5KB/sec) receiving incremental stream of vault/home/raymie@2013-04-07 into zroot/backups/TBH/home/raymie@2013-04-07 received 25.8KB stream in 1 seconds (25.8KB/sec) receiving incremental stream of vault/home/ekb@2013-04-07 into zroot/backups/TBH/home/ekb@2013-04-07 received 1.63MB stream in 2 seconds (833KB/sec) receiving incremental stream of vault/ldyer@2013-04-07 into zroot/backups/TBH/ldyer@2013-04-07 received 13.0KB stream in 1 seconds (13.0KB/sec) receiving incremental stream of vault/tmp@2013-04-07 into zroot/backups/TBH/tmp@2013-04-07 received 214KB stream in 3 seconds (71.2KB/sec) receiving incremental stream of vault/var@2013-04-07 into zroot/backups/TBH/var@2013-04-07 cannot receive incremental stream: invalid backup stream # I've seen this before, but have not been able to solve it.... I have copies of both streams..... # cat backup-TBH-ZFS.sh #!/bin/sh DATE=`date "+%Y-%m-%d"` DATE2=2013-03-24 #DATE2=`date -v "-1d" "+%Y-%m-%d"` # snap the source ssh root@tbh.lerctr.org zfs snapshot -r vault@${DATE} # zfs copy the source to here. ssh root@tbh.lerctr.org "zfs send -R -D -I vault@${DATE2} vault@${DATE} | \ tee /tmp/backup.stream.send.${DATE} | \ ssh home.lerctr.org \"tee /tmp/backup.stream.receive.${DATE} | \ zfs recv -F -u -v -d zroot/backups/TBH\"" # make sure we NEVER allow the backup stuff to automount. /sbin/zfs list -H -t filesystem -r zroot/backups/TBH| \ awk '{printf "/sbin/zfs set canmount=noauto %s\n",$1}' | sh # is the script I ran. HELP. On 2013-04-05 15:52, Martin Matuska wrote: > Hi larry, > so if you desperatedly need a solution, use the attached patch > against -CURRENT, it should work correctly. > A fix in Illumos + a backport to current will follow soon. > Cheers, > mm > On 5.4.2013 21:52, Matthew Ahrens wrote: > >> Yep, that's basically what I'll be pushing to illumos. >> --matt >> On Fri, Apr 5, 2013 at 12:33 PM, Martin Matuska >> wrote: >> >>> Yes, you are right. What about the attached updated patch? Here I >>> use >>> gmep for both holds and releases. >>> Thanks, >>> mm >>> On 5.4.2013 21:07, Matthew Ahrens wrote: >>>> I am working on integrating a fix into illumos. FYI, the patch you >>>> attached will not quite work, because you are using different tags >>>> to >>>> hold and release the dataset (FTAG is a macro which has a >>>> calling-function-specific value). >>>> --matt >>> -- >>> Martin Matuska >>> FreeBSD committer >>> http://blog.vx.sk [1] > -- > Martin Matuska > FreeBSD committer > http://blog.vx.sk [1] > > Links: > ------ > [1] http://blog.vx.sk -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893