Setting up ZFS on FreeBSD on 4 drives

Norman Khine norman at khine.net
Thu May 17 13:05:16 UTC 2012


Hello,
I have a server with a total of 4 drives:

# dmesg | grep ad | grep device
ada0: <INTEL SSDSA2CT040G3 4PC10362> ATA-8 SATA 2.x device
ada1: <INTEL SSDSA2CT040G3 4PC10362> ATA-8 SATA 2.x device
ada2: <ST2000DM001-9YN164 CC4C> ATA-8 SATA 3.x device
ada3: <ST2000DM001-9YN164 CC4C> ATA-8 SATA 3.x device

ada0 and ada1 are 40Gb each
with ada2 and ada3 being 2Tb each

here are the full details:

http://pastie.org/3904764

i have followed several tutorials of setting up ZFS but have a question:

is it a good idea to have /var reside on the 2Tb drive and /usr on the 40Gb?

here is how i set it up http://pastie.org/3925356, and on line 63

zfs create -o compression=gzip -o exec=off -o setuid=off  pool0/ROOT/usr/src
zfs create -o compression=gzip -o setuid=off  pool0/ROOT/usr/ports
zfs create -o compression=off -o exec=off -o setuid=off
pool0/ROOT/usr/ports/distfiles
zfs create -o compression=off -o exec=off -o setuid=off
pool0/ROOT/usr/ports/packages
zfs create -o compression=lzjb pool0/ROOT/usr/obj

zfs create -o compression=on -o exec=on -o setuid=off pool1/ROOT/tmp

zfs create -o compression=lzjb  -o exec=off  -o setuid=off
pool1/ROOT/var/crash
zfs create -o compression=off -o exec=off -o setuid=off   pool1/ROOT/var/empty
zfs create -o compression=lzjb  -o exec=on -o setuid=off  pool1/ROOT/var/tmp

any advise of making this better much appreciated.


-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )


More information about the freebsd-fs mailing list