Skip to content

Tag Archives: ZFS

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: Note that I’ve set up Samba with the ZFS ACL module. For each share, I’ve added […]

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: [cce_bash] 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”; […]

Create ZFS pool

31-Jan-11

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 status […]

Partitioning for ZFS

31-Jan-11

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 […]

Flash disk cost and performance (USB, SSD, SDHC)

08-Jan-11

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. […]

Re-labeling my ZFS devices with glabel

06-Apr-10

As I stated before, I wanted to move the underlying devices in my ZFS pool to glabel-based naming. To do so, I did the following 3 commands: Then, doing a yields: When the resilvering of is done, I’ll do and in a similar manner. This way, I don’t have to plug the USB drives into […]

Adding cache device to ZFS

04-Apr-10

I went ahead and bought this USB stick to put in the back of my Portwell machine. The idea is to use it as a device cache to speed up my ZFS tank. Based on this post by Alexander Leidinger, it should reduce latency (when data is in the cache), but not otherwise. I was […]

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 : Luckily, I had already built samba with AIO support. In : In : in : See also http://www.psc.edu/networking/projects/tcptune/. Nuts. Still topping out at 11 MB/s. Wonder if it’s the disk, or if it’s the Windows 7 machine that I’m using […]

Replaced my 250GB hard drive with a 1TB hard drive

25-Feb-10

the replacement 1 TB Hitachi arrived. So, I decided to take out the 250 GB hard drive and replace that slice with the 1 TB Hitachi.