From owner-freebsd-fs@FreeBSD.ORG Thu Aug 8 07:17:32 2013 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4D71A98A for ; Thu, 8 Aug 2013 07:17:32 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D0D22AFC for ; Thu, 8 Aug 2013 07:17:32 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 0539F153434; Thu, 8 Aug 2013 09:17:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7H8TNkv5E9gN; Thu, 8 Aug 2013 09:17:19 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:5d33:3a19:2ee6:6e9f] (unknown [IPv6:2001:4cb8:3:1:5d33:3a19:2ee6:6e9f]) by smtp.digiware.nl (Postfix) with ESMTP id 11B9E153433; Thu, 8 Aug 2013 09:17:19 +0200 (CEST) Message-ID: <520345F9.7090508@digiware.nl> Date: Thu, 08 Aug 2013 09:17:13 +0200 From: Willem Jan Withagen Organization: Digiware Management b.v. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Steven Hartland , fs@freebsd.org Subject: Re: Crash while sending ZFS file system References: <520262C6.2060606@digiware.nl> <4467AAF5BA6A450FAC9BD9306110A256@multiplay.co.uk> <52026DC2.8070000@digiware.nl> <5202AB11.205@digiware.nl> <39CF025C25F34968A4AF344142CC7225@multiplay.co.uk> In-Reply-To: <39CF025C25F34968A4AF344142CC7225@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 08 Aug 2013 07:17:32 -0000 On 2013-08-07 23:22, Steven Hartland wrote: > > ----- Original Message ----- From: "Willem Jan Withagen" >> # zfs send -n -v -R zfsraid@box > ... > >> Need origin_guid 16676154253971996192 for zfsraid/home >> Need parent_guid 3602069970101155964 for zfsraid/home/clone_20100925 >> Need parent_guid 3602069970101155964 for zfsraid/home/Software >> Need parent_guid 3602069970101155964 for zfsraid/home/www >> Need parent_guid 3602069970101155964 for zfsraid/home/Media >> Need parent_guid 3602069970101155964 for zfsraid/home/angelic >> Need parent_guid 3602069970101155964 for zfsraid/home/mrtg >> Need parent_guid 3602069970101155964 for zfsraid/home/wjw >> Assertion failed: (progress), file >> /usr/srcs/src9/src/cddl/lib/libzfs/../../../cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c, >> >> line 1318. >> Abort (core dumped) > > I believe the problem you have is that zfsraid/home depends on its > parent guid of 16676154253971996192 which according to your > zfs list is:- > zfsraid/home/clone_20100925@20100925 16676154253971996192 - > > This is a child of zfsraid/home so it will itself dependent on > zfsraid/home creating a cyclic dependency which can't be resolved. > > I suspect zfsraid/home was cloned from zfsraid/somethingelse and > then subsiquently zfsraid/somethingelse was renamed to > zfsraid/home/clone_20100925 creating the cycle. > > The updated patch should had enough extra debug to confirm this. > > If I'm right then simpy renaming zfsraid/home/clone_20100925 to > zfsraid/clone_20100925, so its not under zfsraid/home, should be > enough to remove the cycle and allow the send to complete. I think you are most probably right. I have been experimenting with clones at one time to sort of "clean up" old snapshots.. But one way or another it did not work. I'll patch libzfs and send the resulting output. Is there a way to shortcut the buildproces? Now I just do 'make -DNO_CLEAN -DNOCLEAN buildworld && make installworld' But I have a feeling that there could be a shortcut. --WjW