From owner-freebsd-fs@FreeBSD.ORG Tue Jul 12 10:14:41 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EA631065670 for ; Tue, 12 Jul 2011 10:14:41 +0000 (UTC) (envelope-from luke@digital-crocus.com) Received: from mail.digital-crocus.com (node2.digital-crocus.com [91.209.244.128]) by mx1.freebsd.org (Postfix) with ESMTP id 15E2C8FC12 for ; Tue, 12 Jul 2011 10:14:40 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dkselector; d=hybrid-logic.co.uk; h=Received:Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding:X-Spam-Score:X-Digital-Crocus-Maillimit:X-Authenticated-Sender:X-Complaints:X-Admin:X-Abuse; b=0Wb8tmXW0zb5v5WnrPKDKA8U/+tEskLflqKVTd/MQKoNfGRMgotwmXAMUag0vmWX0ljxI/+ewjYik1hhqJS5+jhBx1cEuAE49Ncfr3jGaDXILvoWgC/ZrdRUrvaplFmF; Received: from luke by mail.digital-crocus.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1QgZyQ-000MWP-Vr for freebsd-fs@freebsd.org; Tue, 12 Jul 2011 11:13:50 +0100 Received: from vlan111.pact.srf.ac.uk ([193.37.225.200] helo=[10.0.111.134]) by mail.digital-crocus.com with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1QgZyQ-000MS2-Fs; Tue, 12 Jul 2011 11:13:50 +0100 From: Luke Marsden To: freebsd-fs@freebsd.org In-Reply-To: <1310383541.30844.73.camel@behemoth> References: <1310383541.30844.73.camel@behemoth> Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Jul 2011 11:14:51 +0100 Message-ID: <1310465691.26698.1.camel@behemoth> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 X-Digital-Crocus-Maillimit: done X-Authenticated-Sender: luke X-Complaints: abuse@digital-crocus.com X-Admin: admin@digital-crocus.com X-Abuse: abuse@digital-crocus.com (Please include full headers in abuse reports) Cc: tech@hybrid-logic.co.uk Subject: Re: ZFS bug in v28 - temporary clones are not automatically destroyed on error X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2011 10:14:41 -0000 On Mon, 2011-07-11 at 12:25 +0100, Luke Marsden wrote: > Hi all, > > I'm experiencing this bug on mm's ZFS v28 image from 19.06.2011 > r222557M: > > cannot destroy 'hpool/hcfs/fs@snapshot': dataset already exists > > That is on a v4 formatted zfs filesystem on a v28 formatted pool, if I > zfs upgrade the filesystem to v5 the error changes to "snapshot has > dependent clones" (from memory) which is more informative but otherwise > behaves the same. See: > > http://serverfault.com/questions/66414 > http://opensolaris.org/jive/thread.jspa?messageID=484242&tstart=0 > Just an update on this for posterity, I found this: http://www.freebsd.org/cgi/query-pr.cgi?pr=157728 The workaround indicated there - which in our case was implemented by a semaphore around 'zfs list' and 'zfs recv' operations (so they never run in parallel for the same filesystem), seems to have worked perfectly and we're not seeing any more stray clones. It would be good to fix this properly, of course :-) -- Best Regards, Luke Marsden CTO, Hybrid Logic Ltd. Mobile: +447791750420 www.hybrid-cluster.com - Cloud web hosting platform