Samba access to ZFS broken

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Thu, 31 May 2007 23:46:11 +0200
On 2007-05-31 14:18 +0200, Johan Hendriks <Johan_at_double-l.nl> wrote:
> Hello all
> 
> I am running a test machine (dual PIII 1Ghz HP Netserver E800) 
> with Current as of yesterday
> 
> I have installed Samba 3.0.25,1And I have two scsi drives da1 
> and da2 as a zfs mirror. the base system is a another disk da0

I'm seeing the same problem on a non-SMP system with a recent
current. A kernel from about 3 weeks ago and pre-gcc-4.2 user
land worked on the same configuration.

> My zfs output.
[...]
> [mediafiles]
>    comment = mediafiles
>    path = /usr/local/samba
>    writable = yes
>    admin users = MYDOMAIN|administrator
> 
> this is a share on the zfs pool
> The issue is that i can not access the share! i get the following error in /var/log/massages
> 
> May 31 14:09:44 sbsd001 smbd[60464]: [2007/05/31 14:09:44, 0] lib/fault.c:fault_report(41)
> May 31 14:09:44 sbsd001 kernel: pid 60464 (smbd), uid 0: exited on signal 6
> May 31 14:09:44 sbsd001 smbd[60464]:   ===============================================================
> May 31 14:09:44 sbsd001 smbd[60464]: [2007/05/31 14:09:44, 0] lib/fault.c:fault_report(42)
> May 31 14:09:44 sbsd001 smbd[60464]:   INTERNAL ERROR: Signal 6 in pid 60464 (3.0.25)
> May 31 14:09:44 sbsd001 smbd[60464]:   Please read the Trouble-Shooting section of the Samba3-HOWTO
> May 31 14:09:44 sbsd001 smbd[60464]: [2007/05/31 14:09:44, 0] lib/fault.c:fault_report(44)
> May 31 14:09:44 sbsd001 smbd[60464]:
> May 31 14:09:44 sbsd001 smbd[60464]:   From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
> May 31 14:09:44 sbsd001 smbd[60464]: [2007/05/31 14:09:44, 0] lib/fault.c:fault_report(45)
[...] 
> If i copy the /usr/local/samba dir to /usr/ and edit my smb.conf 
> file so the share location reads
> 
> path = /usr/samba
> 
> All is fine i can acces the share.
> Al permissions on the directory are the same.
> 
> uname -a
> FreeBSD sbsd001.double-l.local 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed May 30 11:42:26 CEST 2007     root_at_sbsd001.double-l.local:/usr/obj/usr/src/sys/KRNL  i386
> 
> Am i doing something wrong ?

I don't think so, since I'm observing the same problem on a 
single-CPU system with different configuration. Common is 
Samba access to files stored on ZFS.

My current work around is to NFS export the file systems and to 
mount them on localhost. Samba works just fine when configured
to access files in ZFS via this NFS loopback. (It does not work
on a nullfs mount of the ZFS partitions.)

I have no time for further tests before the weekend, but this 
seems to either be a bug introduced by a recent ZFS change, or
to be caused by compilation with gcc-4.2.

Regards, STefan
Received on Thu May 31 2007 - 19:59:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC