X

How To Setup ZFS Storage Pool On Ubuntu 14.04

Now I want to show how to setup zfs storage pool on ubuntu 14.04 server. This is linux based storage system fully open source. You can create ZFS storage is many ways like mirror, raid & raid-z etc.

#######################################
OS Type : Ubuntu 14.04
RAM  : 2 GB
DISK  : 25 GB Main
IP Address : 10.66.100.13
Disk  : /dev/xvdb, /dev/xvdc, /dev/xvde & /dev/xvdf  
vCPU  : 2
Service : ZFS Storage
########################################

Step #01: Prepare this server before install zfs storage.

root@zfs-storage:~# lsb_release -a
root@zfs-storage:~# df -h
root@zfs-storage:~# ip r
root@zfs-storage:~# apt update && apt upgrade -y

Step #02: Add zfs repo then install zfs storage.

root@zfs-storage:~# apt-add-repository --yes ppa:zfs-native/stable
root@zfs-storage:~# apt update
root@zfs-storage:~# apt-get -y install ubuntu-zfs
root@zfs-storage:~# whereis zfs

Check all disk before add new storage disk.

root@zfs-storage:~# lsblk
root@zfs-storage:~# fdisk -l |grep "^Disk /"

Now add 4 additional disk for setup zfs storage pool.

root@zfs-storage:~# fdisk -l |grep "^Disk /"
root@zfs-storage:~# service zfs-share start
root@zfs-storage:~# /sbin/modprobe zfs

Now add 4 additional disk for setup zfs storage pool. Now check all disk show from your termical.

root@zfs-storage:~# fdisk -l |grep "^Disk /"
root@zfs-storage:~# service zfs-share start
root@zfs-storage:~# /sbin/modprobe zfs

Step #03: Now create zpool using added 4 disk.

root@zfs-storage:~# zpool create -f pool mirror /dev/xvdb /dev/xvdc /dev/xvde /dev/xvdf
root@zfs-storage:~# zfs list

Create admin user

root@zfs-storage:~# adduser admin

Then type password two times.

Step #04: Install samba package for share zfs storage.

root@zfs-storage:~# apt-get install -y samba

Then create admin user for access zfs storage from windows client machine.

root@zfs-storage:~# pdbedit -a admin
root@zfs-storage:~# service smbd stop
root@zfs-storage:~# service smbd start

Then create testing directory and mount on zfs pool.

root@zfs-storage:~# mkdir -p /mnt/W_Share
root@zfs-storage:~# zfs set mountpoint=/mnt/W_Share pool

Setup permission and zfs share on.

root@zfs-storage:~# chown admin:admin /mnt/W_Share
root@zfs-storage:~# chmod 755 /mnt/W_Share
root@zfs-storage:~# zfs set sharesmb=on pool

See zpool status using below command.

root@zfs-storage:~# zpool status
root@zfs-storage:~# zpool list -v

Step #05: Now access zfs share from windows client machine using network.

Goto file explorer and type your zfs server ip address.

\.66.100.13\
Authentication 
User : admin
Pass : *******

Now store any file in this share folder.

If you have any error so you can see my YouTube video for more details.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment