From owner-freebsd-fs@freebsd.org Thu Aug 18 14:58:59 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 ABBAFBBDA91; Thu, 18 Aug 2016 14:58:59 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EFB21350; Thu, 18 Aug 2016 14:58:58 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from bsdrookie.norma.com. ([IPv6:fd00::7fe]) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTPS id u7IEwtox052480 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 18 Aug 2016 19:58:55 +0500 (YEKT) (envelope-from emz@norma.perm.ru) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=norma.perm.ru; s=key; t=1471532335; bh=hnc4Ar2j/187ahmTWpLNqP1CJA3hyHJ3tgqfhuFf7Qc=; h=To:Cc:From:Subject:Date; b=joczOecG2LeOvEj3UA9SR1Y2erZ7Flsl19FQJD032D5Wi/3aQx/MvqbIR5fBq/jGJ 68JRKTa97EP1xrQrOEgJv0ngPoRVJNwaw3Ml6mcGsEguzNYzz5svAkKYotQ6w2Qoxb Uwq68fm0lWYNFTPElG4b70VCB45VzYKSoaUjYbkg= To: FreeBSD FS Cc: freebsd-stable From: "Eugene M. Zheganin" Subject: cannot destroy '': dataset is busy vs iSCSI Message-ID: <57B5CD2F.2070204@norma.perm.ru> Date: Thu, 18 Aug 2016 19:58:55 +0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit 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: Thu, 18 Aug 2016 14:58:59 -0000 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. Thanks. Eugene.