FreeBSD Mastery: ZFS

Chưa phân loại
The Book 7 in the series FreeBSD Mastery is one of the most informative and engaging tech-related book I have read. FreeBSD Mastery: ZFS serves as a gateway drug to novice users who are looking to adapt OpenZFS.As the title suggests, the book is about OpenZFS on FreeBSD, but most things that you will learn in this book are applicable to any ZFS system, in general. The FreeBSD specifics that are referenced, such as GEOM storage providers, are interesting concepts on their own and won’t put you off, in my opinion. Despite being the book 7 of a series, it is pretty self-contained.

Knowledge Not Memorizing Commands

I find that most “tech books” are filled with a tonne of commands and details that one can’t ever hope to cram in his/her head. Yet authors write, expecting the users to memorize whatever is mentioned in the text.

This book from Michael Lucas and Allan Jude is anything but a boring college textbook. You can enjoy this book on bright Sunday afternoon, in a coffee shop, without having a ZFS pool to actually work on. The writing incites visual imagination in the mind of the readers. How zpools are constructed, how disks are grouped into vdevs and how various datasets can share a given zpool you will learn about it all without having to memorize anything. When in doubt, the book serves as a decent reference text as well. Although I much prefer man pages because software gets updated whereas the books stay the same.

Without overwhelming the readers with a tonne of commands and tuneable parameters, FreeBSD Mastery: ZFS imparts knowledge. After reading this book, you would know what to do when confronted with the task of creating your own zpool and zfs datasets. The trade-offs between redundancy (offered via mirroring, RAID-Z, etc) and performance (read/write speed) is discussed at length, for example.


Both the authors of this book have had years of experience with various UNIX and Linux systems before they settled down with FreeBSD. The same is true with storage devices. From spinning disks to NVMe flash and from FAT32 to FFS they have dealt with it all, so you don’t have to.

“A wise man learns from the experience of others.” and this book provides the perfect opportunity for you to do so. Michael Lucas is not only an experienced sysadmin but also a seasoned writer (he writes both fiction and non-fiction), so the book is full of witty remarks and humor, unlike other texts which are all just dry passionless documentation of a system.

A Word for New Users

If you are young enough to not know anything about the state of computing back in late 90s and early 2000s, consider yourself lucky. This was the time when both the disk technology and file systems were constantly evolving. People created abstractions like Volume Manager to represent multiple disks as a single one. Vendors manufactured disks that would report different sector size in different scenarios and so on.

A lot of unclean ways were used to manage storage arrays, not the least of which were hardware RAID controllers which are often irreplaceable and act as a single point of failure — the one thing that they were supposed to mitigate.

There are references to the older technologies, mostly about things like volume manager, RAID controller, etc. Look in the web for these words if you don’t quite get what they mean, it will provide you with a nice contrast between the way ZFS treats your disks vs how traditionally they were treated.

An Overview

With sophisticated software like OpenZFS user often worry they won’t know what to do. However, sophistication doesn’t necessarily imply complication. The question users should be asking themselves is, “How does it work?” everything else will follow naturally. It designed to be easy enough that one can use it single-handedly, you know.

The first chapter gives an overview of ZFS, its history, its purpose, a few introductory commands and how the rest of the book is arranged. The second and third chapter dive into vdevs and zpools and takes you through the thought process before you arrange and format your disks with ZFS. What type of redundancy you may want striping, mirroring, raidz, etc? How will the performance be affected? And so on. These are ZFS specific abstractions and therefore its important for the beginners to understand them straight away. Fortunately, the writing is also unambiguous and paints a clear picture of everything that happens under the hood.

Once you have arranged and formatted the disks, the chapter on datasets (‘dataset’ is another term for filesystem in ZFS lingo) follows next. Here, you get to tune parameters on a filesystem level. Reserve spaces for dataset, restricting datasets from hogging up all of the space, setting up compression, etc can be learnt in here.

The chapters that follow after this are mostly on maintenance of your zpool. How to check for errors, what to do when a disk fails, etc. There’s also a chapter dedicated to snapshots and clones which is immensely helpful and takes full advantage of ZFS’ copy-on-write functionality.


If you just go through the first 4 chapters that is enough for you to get started with your own ZFS setup. You can treat the rest of the book as a useful reference material for when you need to look something up. However, I doubt if you will be able to stop at just chapter 4. The writing is entertaining and incites curiosity. You will be left wanting for some more action after you are done with the book

If you really want to go down the rabbit-hole of ZFS, there’s also “FreeBSD Mastery: Advanced ZFS” which is next on my reading list. If you want something more general than just storage, check out the author’s new Absolute FreeBSD, 3rd Edition.

Sandclock IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, Sandclock IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Bash Head and Tail Command Tutorial

Many types of commands are available in bash to show the content a file. Most commonly used commands are ‘cat’,...

How to install MPV Video Player 0.25.0 on Ubuntu 17.04, Ubuntu 16.04, Linux Mint

MPV Video Player 0.25.0 recently released, is a free, open source, and cross-platform movie player based on MPlayer and...

How to Update Ubuntu Linux

Method 1: Update Ubuntu via the Command Line First, open the terminal in Ubuntu desktop. You can find it in the menu,...
Bài Viết

Bài Viết Mới Cập Nhật

Hướng dẫn chuyển đổi windows server windows evaluation to standard và active windows server 2008 + 2012 + 2016 + 2019

How to Update Ubuntu Linux

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu

Hướng dẫn cài đặt Apache CloudStack

Hướng dẫn ký file PDF bằng chữ ký số (chữ ký điện tử) và sửa lỗi mới nhất 2021 foxit reader