From owner-freebsd-fs@freebsd.org Fri Aug 19 08:23:18 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 B24BABBFEBC; Fri, 19 Aug 2016 08:23:18 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44D6D16BE; Fri, 19 Aug 2016 08:23:18 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id q128so24815388wma.1; Fri, 19 Aug 2016 01:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=XudDE4YK6XONsuVyvfMpLIKIhMyMEwGZInjqbQmepIY=; b=f7fMM+XuPCqB3f4BBMxyJY34O7l/KVvdTiKhgWXPg3jL6M1itTZgYA5GI4Elau+xqY cE5LnWQSSgF0HcKP+l2R0/xc9iNXctRvvd/IUebg4yBneH6MGrASb1mUOFF1agGPGXBi DOhzXr+nFWnkRtUeDbczRueoWOr7WDCK7WJMJ983QfuGOFow80xNkiFYE7fMtshrEPhd uDAF1yC1WYXVsMobEpju9R3rK/Zo+7eWpE86NheGaPQeUbAxZs2FbjPc/1w1pvH9SW5r 3xbEs5srf79+yzAEeKkH7fKOeidP6t8VMIzilYA8rPR2FG017TGSByzMCMyQLQIHT/0U 4qXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=XudDE4YK6XONsuVyvfMpLIKIhMyMEwGZInjqbQmepIY=; b=M8xMPlBVF4NwtnaWm1QFecMdEq4DKQpQEfl88+1JdRQmrLr1c08IOpx96T78KGtCI9 BvsXNzm6ta74aA8nz3mVvZNHBS0T56QInfrU6E2JUsF5mXiafWoUXks3a3AKcC7h8Eh6 KePdp65fx8NWp+iM6vLp+SilT9MyK9WJBH5bqN+3fSMANy69UhbWde2kWbckhIp/oNfp XkC++tHtJrlEFnBCrdjHjVos4Cx07raacmC5BYgcQ6qYt2G9lLwLuB+DJDcnhPT5TEHV A/Z3IbEOpVnmAhXFmCU7LGnnxj6bd4NdcVtGm4kZabkWOeMPmrhO41F8t2AD22bvZupQ gMAA== X-Gm-Message-State: AEkoouuK2v0C1kpw4+Cuy8pA/H6EfsQyzQr5qHjCqOhhV5YvffHW6TguxBU7l6psKeDO/g== X-Received: by 10.28.32.77 with SMTP id g74mr2752671wmg.45.1471594996724; Fri, 19 Aug 2016 01:23:16 -0700 (PDT) Received: from brick (euc212.neoplus.adsl.tpnet.pl. [83.20.174.212]) by smtp.gmail.com with ESMTPSA id w129sm3306406wmd.9.2016.08.19.01.23.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 01:23:15 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Fri, 19 Aug 2016 10:23:10 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: "Eugene M. Zheganin" Cc: FreeBSD FS , freebsd-stable Subject: Re: cannot destroy '': dataset is busy vs iSCSI Message-ID: <20160819082310.GA14806@brick> Mail-Followup-To: "Eugene M. Zheganin" , FreeBSD FS , freebsd-stable References: <57B5CD2F.2070204@norma.perm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57B5CD2F.2070204@norma.perm.ru> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 08:23:18 -0000 On 0818T1958, Eugene M. Zheganin wrote: > Hi. > > I'm using zvol clones with iSCSI. Perdiodically I renew them and destroy > the old ones, but sometimes the clone gets stuck and refuses to be > destroyed: > > (I'm showing the full sequence so it's self explanatory who is who's parent) > > [root@san2:/etc]# zfs destroy esx/games-reference1@ver5_6 > cannot destroy 'esx/games-reference1@ver5_6': snapshot has dependent clones > use '-R' to destroy the following datasets: > esx/games-reference1-ver5_6-worker111 > [root@san2:/etc]# zfs destroy esx/games-reference1-ver5_6-worker111 > cannot destroy 'esx/games-reference1-ver5_6-worker111': dataset is busy > > The only entity that can hold the dataset open is ctld, so: > > [root@san2:/etc]# service ctld reload > [root@san2:/etc]# grep esx/games-reference1-ver5_6-worker111 /etc/ctl.conf > [root@san2:/etc]# zfs destroy esx/games-reference1-ver5_6-worker111 > cannot destroy 'esx/games-reference1-ver5_6-worker111': dataset is busy > > As you can see, the clone isn't mentioned in ctl.conf, but still refuses > to be destroyed. > Is there any way to destroy it without restarting ctld or rebooting the > server ? iSCSI is vital for production, but clones sometimes holds lot > of space. Could you do "ctladm devlist -v" and see if the LUN for this file somehow didn't get removed?