Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2016 10:23:10 +0200
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        "Eugene M. Zheganin" <emz@norma.perm.ru>
Cc:        FreeBSD FS <freebsd-fs@freebsd.org>, freebsd-stable <freebsd-stable@FreeBSD.org>
Subject:   Re: cannot destroy '<dataset name>': dataset is busy vs iSCSI
Message-ID:  <20160819082310.GA14806@brick>
In-Reply-To: <57B5CD2F.2070204@norma.perm.ru>
References:  <57B5CD2F.2070204@norma.perm.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160819082310.GA14806>