ZFS "Dataset is busy" error / Samba + Previous Versions

Richard Mahlerwein mahlerrd at yahoo.com
Thu Dec 31 13:52:25 UTC 2009


>From: Miroslav Lachman <000.fbsd at quip.cz>
>Subject: Re: ZFS "Dataset is busy" error / Samba + Previous Versions
>
>Richard Mahlerwein wrote:
>>> From: Bob Friesenhahn<bfriesen at simple.dallas.tx.us>
>
>[...]
>
>>> 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 at 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



      


More information about the freebsd-fs mailing list