From owner-freebsd-fs@FreeBSD.ORG Fri Oct 22 13:34:51 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CB5E1065670 for ; Fri, 22 Oct 2010 13:34:51 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 308B68FC1C for ; Fri, 22 Oct 2010 13:34:50 +0000 (UTC) Received: by gxk2 with SMTP id 2so619336gxk.13 for ; Fri, 22 Oct 2010 06:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=0k/2z4GkvemSYO4lsHaN8p6m+Pletcri3jY9RyGcU1c=; b=BuuX7FjcBUYho349I9vqYk+0K/S+XzrwbgJt1NuIYoZ5bytxESKbrq2lrlnVyiW2yI WdOO1jYXYRikxVvlIESkkMOJ80Gls7S8/Xi274klPHtdtXEQrQ/xB095AT56YUZlGjwL g7ke9k+XC1XFFTgaMoHjSe2dZWd3h9O+vCsE4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=vF7xZ4vtXHTM+ThLlStkt4kxNPEyQ8+8fUk27Qg4d7RSefr5IvsrsBSHqc4WSFjgwd ymRo8VZG9ItTkj6Oca+k4vSWUQmYw0RqMDB68UJ5WpThO40zkQENxnyrslNLMLTpU8Xq e6pzflJlTgYTlMxk9esuAvV7VWu7qkr00Rxrk= Received: by 10.229.189.74 with SMTP id dd10mr2225752qcb.73.1287752833553; Fri, 22 Oct 2010 06:07:13 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-136-243.dsl.klmzmi.sbcglobal.net [99.181.136.243]) by mx.google.com with ESMTPS id m7sm2555958qck.37.2010.10.22.06.07.11 (version=SSLv3 cipher=RC4-MD5); Fri, 22 Oct 2010 06:07:12 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4CC18C7E.702@DataIX.net> Date: Fri, 22 Oct 2010 09:07:10 -0400 From: jhell Organization: http://www.DataIX.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.11) Gecko/20101021 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Willem Jan Withagen References: <4CBD52F4.2010105@digiware.nl> In-Reply-To: <4CBD52F4.2010105@digiware.nl> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: fs@freebsd.org Subject: Re: ZFS destroy snapshot does not work 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: Fri, 22 Oct 2010 13:34:51 -0000 On 10/19/2010 04:12, Willem Jan Withagen wrote: > Hi, > > Probably due to too many reboots when the system was livelocked. > But now I have the following problem. > > /sbin/zfs destroy -r zfsraid/backups@Monday > cannot destroy 'zfsraid/backups@Monday': dataset does not exist > no snapshots destroyed > /sbin/zfs snapshot -r zfsraid/backups@Monday > cannot create snapshot 'zfsraid/backups@Monday': dataset is busy > no snapshots were created > > /sbin/zfs destroy -r zfsraid/home@$DATE > cannot destroy 'zfsraid/home@Monday': dataset does not exist > no snapshots destroyed > /sbin/zfs snapshot -r zfsraid/home@Monday > cannot create snapshot 'zfsraid/home@Monday': dataset is busy > no snapshots were created > > Where this used to work(tm).... > > I can iterate over all filesystems and then destroy/create a backup. > > Except for one: > # zfs list -r zfsraid/home/trouble > NAME USED AVAIL REFER MOUNTPOINT > zfsraid/home/trouble 149G 3.49T 148G none > zfsraid/home/trouble@Sunday 1.06G - 148G - > > # zfs destroy -r zfsraid/home/trouble > cannot destroy 'zfsraid/home/trouble@Sunday': dataset already exists > Exit 1 > # zfs destroy zfsraid/home/trouble@Sunday > cannot destroy 'zfsraid/home/trouble@Sunday': dataset already exists > Exit 1 > # zfs destroy -r zfsraid/home/trouble@Sunday > cannot destroy 'zfsraid/home/trouble@Sunday': snapshot is cloned > no snapshots destroyed > > But of this last fact I do not remember cloning anything. Nor can I find > any suggestions as to the filesystem being cloned..... > > So how do I get ride of this rouge filesystem. > > There is something like zdb, but the manual page is purposely vague on > how to use that... > > Thanx, > --WjW > Can you give a ( zfs list -t snapshot ) here please? -- jhell,v