User Tools

Site Tools


fileservices:zfs_ubuntu

ZFS on Ubuntu

Install ZFS

  1. make sure add-apt-repository is installed
    apt-get install python-software-properties
  2. add native zfs repo
    add-apt-repository ppa:zfs-native/stable
    apt-get update
  3. install zfs package
    apt-get install ubuntu-zfs

Create Pool and datasets

  1. create pool
    zpool create tank /dev/<DISK>
  2. create dataset
    zfs create tank/vol1
  3. create volume
    zfs create -V 2g tank/v1

Create iSCSI Target

  1. Install iscsitarget
    apt-get install iscsitarget iscsitarget-dkms
  2. enable iscsitarget, edit /etc/default/iscsitarget
    ISCSITARGET_ENABLE=true
  3. Add Target: add to /etc/iet/ietd.conf
    Target iqn.zfs.sebekaschools.net:storage.sys0
            Lun 0 Path=tank/v1,Type=blockio,ScsiId=lun0,ScsiSN=lun0
fileservices/zfs_ubuntu.txt · Last modified: 2013/09/17 13:27 by tschulz