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 [...]
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%) [...]
I ran iozone on many different ZFS pool configurations, to get an idea of which drives are best for L2ARC (cache) and the ZIL. I also wanted to get an idea of whether using gpart affects performance. The configurations shown in the tables below have the formation [cache]_[gpart/gnop]_[zil]. Where [cache] is the L2ARC type. [gpart/gnop] [...]
I recently had a problem with ZFS. I went back to not using glabel, mainly because I wanted to force 4KB sector alignment on my drives and therefore used a gnop trick. About a month after doing so, I shuffled my drives around. I had ada4 and ada5 set up in a mirror configuration. At [...]
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 [...]
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. [...]
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 [...]
server# zpool create tank raidz /dev/gpt/WD15EARS /dev/gpt/FANTOM1TB /dev/gpt/WD20EARS invalid vdev specification use ‘-f’ to override the following errors: raidz contains devices of different sizes server# zpool create -f tank raidz /dev/gpt/WD15EARS /dev/gpt/FANTOM1TB /dev/gpt/WD20EARS Now, I’ve got: server# zfs list NAME USED AVAIL REFER MOUNTPOINT tank 87.9K 1.78T 24.0K /tank server# ls /tank server# zpool [...]
Have 3 drives: 1.5 TB WD15EARS, 1 TB Fantom Green (eSATA), 2 TB WD20EARS. First, did a: server# gpart add -b 2048 -s 2929865452 -t freebsd-zfs -l WD15EARS ada0 ada0p1 added server# gpart add -b 2048 -s 1953113452 -t freebsd-zfs -l FANTOM1TB ada1 ada1p1 added server# gpart add -b 2048 -s 3906617452 -t freebsd-zfs -l [...]
I’ve been reading up on using a USB flash drive as an L2ARC for ZFS. Some reason that since the bandwidth of USB is much lower than SATA. However, others reason that since the USB flash drive has no seek time, it will speed up non-sequential reads, which is what the L2ARC is there for. [...]