deb http://ppa.launchpad.net/dajhorn/zfs/ubuntu natty main
deb-src http://ppa.launchpad.net/dajhorn/zfs/ubuntu natty main
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1EE8660B
Fix "Samba sharing is not supported.":
apt-get install nfs-kernel-server
Create pool:
# zpool create chasm raidz /dev/sda /dev/sdb /dev/sdc /dev/sdd
# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
chasm 1.81T 303K 1.81T 0% 1.00x ONLINE -
Create filesystem and set options:
# zfs create chasm/data
# zfs set atime=off chasm
# zfs set mountpoint=/srv/pub chasm/data
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
chasm 215K 1.33T 41.9K /chasm
chasm/data 67.3K 1.33T 67.3K /srv/pub
Set up share with no real security but a decent slice of space:
# vi /etc/samba/smb.conf
[media]
path = /srv/pub/media
comment = Various media.
valid users = greyproc smbadmin uninvited
write list = greyproc smbadmin
read list = uninvited
available = yes
browseable = yes
writable = no
guest ok = no
printable = no
locking = no
strict locking = no
And verify:
$ smbclient -L localhost -U greyproc
Enter greyproc's password:
Domain=[Khazadum] OS=[Unix] Server=[Samba 3.5.8]
Sharename Type Comment
--------- ---- -------
...
media Disk Various media.
...
IPC$ IPC IPC Service (Here Be Dragons (Frostfall 3.5.8))
Reference:
https://launchpad.net/~dajhorn/+archive/zfs
http://groups.google.com/group/kqstor-zfs-discuss/browse_thread/thread/c4cd225c45530964?tvc=2
http://zfsonlinux.org/