FreeBSD Mastery: ZFS

29/12/2020
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.

Experience

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.

Conclusion

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.

ONET 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, ONET 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

How to Install and Get Started with QGIS 3 on Ubuntu 18.04

QGIS is an open source software package for drawing geospatial information. QGIS is a very popular and cross platform GIS...
28/12/2020

Debian Linux Job Interview Questions and Answers

This article is a complement of Linux Networking Job Interview Questions and Answers for interviews oriented specifically...
29/12/2020

Tìm hiểu về công nghệ Livestream

Livestream hay streaming video ngày nay đã là những thuật ngữ không còn xa lạ trong đời sống hàng...
30/12/2020
Bài Viết

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

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024

Thuê mua IPv4 giá rẻ, tốc độ nhanh, uy tín #1
28/05/2024

Thuê địa chỉ IPv4 IPv6 trọn gói ở đâu chất lượng, giá RẺ nhất?
27/05/2024