Skip to content

Tag Archives: Samba

FreeBSD 9.0 post-install Samba performance

21-Jan-12

Note that the Samba shares resides in a ZFS pool with dedup turned on. Since the blocks that make up the file being sent are probably already on the pool, it’s not necessarily writing the block data to disk. Using the same method as last time: C:\Users\Poojan\Desktop>time_recv.bat 1 file(s) copied. Took: 112.75 sec. C:\Users\Poojan\Desktop>time_send 1 [...]

Samba FreeBSD 8.2 benchmarks (pre-upgrade to FreeBSD 9.0)

13-Jan-12

I’m about to upgrade to FreeBSD. While I csup the latest RELENG-9.0 branch, I’m looking at my Samba performance on 8.2. I’m measuring a copy of FreeBSD-8.2-RELEASE-i386-dvd1.iso to the Samba server using the following batch file (taken from here): @echo off set starttime=%TIME% set startcsec=%STARTTIME:~9,2% set startsecs=%STARTTIME:~6,2% set startmins=%STARTTIME:~3,2% set starthour=%STARTTIME:~0,2% set /a starttime=(%starthour%*60*60*100)+(%startmins%*60*100)+(%startsecs%*100)+ (%startcsec%) [...]

HP L7600/L7650 and Samba/FreeBSD

02-Oct-11

This all-in-one printer can scan to a Windows share. I have a Windows share hosted by Samba on FreeBSD. Unfortunately, the printer/scanner intermittently (and pretty often) says it can’t find my FreeBSD machine when I–or more importantly my wife tries to scan a document. I went pretty deep on this and took a packet capture:

ZFS / NFSv4 ACL’s for a public Samba share

27-Aug-11

I’ve finally taken the time to figure things out step-by-step. NFSv4 ACL’s, which are supported by ZFS on FreeBSD (and Solaris) are pretty cool. However, I’ve never really understand how they work. By taking the time to use the command-line, I’ve figured out what I think is a good approach for a public share–one where [...]

Samba and ZFS (NFSv4) ACL settings for FreeBSD

27-Apr-11

My latest security schemees that I’ve mapped the Samba guest user to a new user “samba_guest”. I’ve made nobody the owner of public shares. I’ve removed the allow settings for the “nobody” user. I then enable everyone to read: owner@:————–:——:deny group@:-w-p———-:——:deny group@:r-x———–:——:allow everyone@:—-Dd-A-W-Co-:f—–:deny everyone@:rwxp–a-R-c–s:-d—-:allow Note that I’ve set up Samba with the ZFS ACL module. [...]

Re-doing Public Samba Share with FreeBSD/ZFS

01-Feb-11

This time, I’m going to to try using FreeBSD’s support for NFS ACL’s, using http://forums.freebsd.org/showthread.php?t=17627 as a reference: server# zfs set aclmode=passthrough tank/Users server# zfs set aclinherit=passthrough tank/Users I created ZFS filesystems within tank/Users/Public like so: server% cat add_pub.sh #!/bin/sh u="$1" zfs create tank/Users/$u chown nobody:nogroup /tank/Users/$u for d in "Documents" "Music" "Videos" "Pictures"; do [...]

Setting up public (anonymous) shares on Samba

23-Jul-10

It’s documented here: http://micheljansen.org/blog/entry/182. However, I only found this post after learning each lesson individually. I wanted to set up a \\server\Public share that anyone on the network could connect to. Certain users can write, but everyone can read. I tried enabling guest ok in /usr/local/etc/smb.conf (and changed the file/directory masks, so anyone can read [...]

Tuning FreeBSD for Samba network performance

16-Mar-10

I’ve already compiled a custom kernel that enables polling. I’m now following http://forums.freebsd.org/showthread.php?t=9187: in loader.conf: aio_load="YES" Luckily, I had already built samba with AIO support. In smb.conf: min receivefile size = 131072 aio read size = 1 aio write size = 1 use sendfile = yes In rc.conf: ifconfig_re0="DHCP polling" in sysctl.conf: kern.ipc.maxsockbuf=16777216 kern.ipc.nmbclusters=32768 kern.ipc.somaxconn=32768 [...]

Sharing Samba shares between users

19-Jan-10

As far as the UNIX groups, etc., I created a UNIX group called Users to house the entire family. The UNIX directory /tank/Users/Public has the group set to Users. So, only members of the group can read/write (at the UNIX) level, and only the wife and I can write at the Samba level.

Freebsd + Samba with ZFS

18-Jan-10

I then used the following script to create user ZFS filesystems under the /tank directory, for each user, and with compression on for the Documents directory: