How To Setup ZFS Storage Pool On Ubuntu 14.044 min read
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.
★ How To Install Apache Cloud Stack Management Server On Ubuntu 18.04
★ How To Install Zabbix 5.0 On Ubuntu 20.04 Server
####################################### 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.
[email protected]:~# lsb_release -a [email protected]:~# df -h [email protected]:~# ip r [email protected]:~# apt update && apt upgrade -y
Step #02: Add zfs repo then install zfs storage.
[email protected]:~# apt-add-repository --yes ppa:zfs-native/stable [email protected]:~# apt update [email protected]:~# apt-get -y install ubuntu-zfs [email protected]:~# whereis zfs
Check all disk before add new storage disk.
[email protected]:~# lsblk [email protected]:~# fdisk -l |grep "^Disk /"
Now add 4 additional disk for setup zfs storage pool.
[email protected]:~# fdisk -l |grep "^Disk /" [email protected]:~# service zfs-share start [email protected]:~# /sbin/modprobe zfs
Now add 4 additional disk for setup zfs storage pool. Now check all disk show from your termical.
[email protected]:~# fdisk -l |grep "^Disk /" [email protected]:~# service zfs-share start [email protected]:~# /sbin/modprobe zfs
Step #03: Now create zpool using added 4 disk.
[email protected]:~# zpool create -f pool mirror /dev/xvdb /dev/xvdc /dev/xvde /dev/xvdf [email protected]:~# zfs list
Create admin user
[email protected]:~# adduser admin
Then type password two times.
Step #04: Install samba package for share zfs storage.
[email protected]:~# apt-get install -y samba
Then create admin user for access zfs storage from windows client machine.
[email protected]:~# pdbedit -a admin [email protected]:~# service smbd stop [email protected]:~# service smbd start
Then create testing directory and mount on zfs pool.
[email protected]:~# mkdir -p /mnt/W_Share [email protected]:~# zfs set mountpoint=/mnt/W_Share pool
Setup permission and zfs share on.
[email protected]:~# chown admin:admin /mnt/W_Share [email protected]:~# chmod 755 /mnt/W_Share [email protected]:~# zfs set sharesmb=on pool
See zpool status using below command.
[email protected]:~# zpool status [email protected]:~# 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.
- 9 Ways to Speed Up Your MacBook Yosemite - February 21, 2023
- How To Install GitLab CE on Ubuntu 22.04 - December 15, 2022
- 7 Things to Know About Laptop Internet Cards - October 26, 2022
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!