From owner-freebsd-fs@FreeBSD.ORG Thu Dec 31 13:52:24 2009 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 D66211065672 for ; Thu, 31 Dec 2009 13:52:24 +0000 (UTC) (envelope-from mahlerrd@yahoo.com) Received: from web51002.mail.re2.yahoo.com (web51002.mail.re2.yahoo.com [206.190.38.133]) by mx1.freebsd.org (Postfix) with SMTP id 899E78FC17 for ; Thu, 31 Dec 2009 13:52:24 +0000 (UTC) Received: (qmail 17251 invoked by uid 60001); 31 Dec 2009 13:52:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1262267541; bh=kFuGSpBPJil7A9kJrlBbGT+A6LWqawMRkiAb5S8JGMY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=30u+8uVq9cdx2gN5Fd9CSeyuFnEfHYKef5Ipu1/62zJ/btd4pFAG8idQ+nTgVg65ydNYx+fX3S0W3ZSXiusJfyMULd3MC87vnQAiDFpJnIR4izlhk8nLwRstnbtHpc/R6p8hwLH8nOuP69WgWyAPH87tzKrNEYbOOsWtAsNHQdA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=rKx4NF3Ft73uVgnr6PBxrZ9Wlfwp2LiMRw0KLui0Na3T4tu+pI8nI7yWsQFUqJaA7x9R2ZcO+JSfM+PVJkU3FOr73l1rUUbsRAUHSIKtpFFdxdKXk6fi3CnF1JGjL7pKLSS6jBVfz/Yx6bWjFRqQrTeZX54EgEhNVzpSEEK60g4=; Message-ID: <463202.16609.qm@web51002.mail.re2.yahoo.com> X-YMail-OSG: qeXYTQEVM1mmGiyr3THVggx2sFRRR3mRlFuQ9tv_0nBOcu1DZiTKDOByMbs1N.PkNlBLxvUzcv15L5dIZj5j2Ha_aaiV63rMR1YzFEgSg8pvm9g2QbJ7tFtiPprmraypI1l2n87fRK3l7V_eb.9fOACADVDqa9jCDPYX.Ktol5DAm.f.FDCL.ln4uUep8Rnz03NM6mIvDbLzrayenpj6DhWfuNU91v1VBiU6LLsPM.BSO.gHZn6M67OqWH.yK8Xb3El9NHJGZNxvhDeRONnsX1KmIkfvrLEHDxunfdbdQ6aS5nhMZnO9cWHZSsk37cDckFgxXKeRSm3q6IDieMR.B.UDHrSxmlD9Hvdk5E3xpqvHtyBZ5gRd14O6T_SE2kw3VVXhM_BGJymD23nJp9GII0SSlyzxuvyoYJRIp9hhLzgRARY0XfYQKGqvEHH8eT0_X0HU4tG02kKPKqvE8qHSMXTkM04VNq0o4fDceN7KRXD6C4M2qhA2UUOqiMdEwjPnb85NuZ2809cIDVIg5.UwNOxW2rx2ETK0fH7aX.VvuLnVHEqKLIESl1vTjljtAknRFWy0vrtwKF3y8rOl.7r7KqepUWiPZ2sr.epB9Vb2siYm7Vl1xntcAM4nohW89AtUe06mhrJeAcJeWLahf43Zjbm.tLTE3U1U_cYQCzNMmV499I._gJzHsnN.we182GGB.KH_js7ZD6wBTHkoKrd0N0f7664.et7pJsqRkQ-- Received: from [174.101.168.4] by web51002.mail.re2.yahoo.com via HTTP; Thu, 31 Dec 2009 05:52:21 PST X-Mailer: YahooMailRC/240.3 YahooMailWebService/0.8.100.260964 References: <368515.86742.qm@web51005.mail.re2.yahoo.com> <489290.49450.qm@web51006.mail.re2.yahoo.com> <4B3C751A.9040909@quip.cz> Date: Thu, 31 Dec 2009 05:52:21 -0800 (PST) From: Richard Mahlerwein To: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: <4B3C751A.9040909@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@freebsd.org Subject: Re: ZFS "Dataset is busy" error / Samba + Previous Versions X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Richard Mahlerwein List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 13:52:25 -0000 >From: Miroslav Lachman <000.fbsd@quip.cz> >Subject: Re: ZFS "Dataset is busy" error / Samba + Previous Versions > >Richard Mahlerwein wrote: >>> From: Bob Friesenhahn > >[...] > >>> This seems to have something to do with how the filesystem is mounted. >>> See >>> http://www.mail-archive.com/zfs-discuss@opensolaris.org/msg00812.html >>> Also see >>> http://defect.opensolaris.org/bz/show_bug.cgi?id=5000 >>> So try >>> zfs unmount tank >>> zfs mount tank >>> and maybe it will start working as expected. >>> >>> I am finding more Google hits for FreeBSD and OS-X than I am for >>> Solaris so it may be that this issue is somewhat OS specific. >> >> So, a completely unrelated bug with Windows and ACPI took >> down my machine while the VM was running. After some >> tomfoolery to get filesystems cleaned back up again, I tried >> what you suggested... >> >> curie# zfs unmount tank >> curie# zfs mount tank >> curie# zfs snapshot tank@snap1 >> curie# >> >> Poof! Success! At least at making snapshots. Of course, >> I don't yet see a "Previous Versions" tab in the properties of >> anything yet (which I do see on some other shares from other >> servers). But at least now I can fool with those a bit. > >Do you see Previous Versions on Samba shares from FreeBSD? I >think you need some tweaks in smb.conf: > >http://www.edplese.com/samba-with-zfs.html > >http://www.edplese.com/blog/2009/12/02/samba-shadow_copy2-enhancements/ > >http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/VFS.html#id2651813 > >Miroslav Lachman Thanks!. I had found the last link, but it was a bit hard to follow since it was so LVM specific. Hopefully, the patches in the second link will be reasonably easily modified to apply to the 3.3.9 source, because that's my easiest avenue to get it running. And, the first link looks fabulous. When I get something working, I'll have to try some of those. Neat stuff. Hopefully I'll get some time to fool with it this week yet and if I get anywhere, I'll update everyone. -Rich