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.
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.
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
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!