Datamation Logo

Tip of the Trade: ZFS on Leopard

March 19, 2008
Datamation content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

ZFS, the space-age filesystem developed by Sun, is now available for Mac OS X Leopard. You can get the binaries and source code from ZFS on OS X. Be warned that this is a beta version — fun for testing and learning but not ready for mission-critical systems.

ZFS, all by itself, replaces the herd of separate filesystem management tools we’ve come to rely on: fsck, dump, restore, mkfs, tunefs, volume managers like EVM and LVM, raidtools, mdadm, rysnc, quota, fdisk, and all the rest. Mac OS X uses HFS+, which is a perfectly good journaling filesystem. However, it’s not in the same class as ZFS. This is not meant as a criticism, as very few filesystems are.

You can’t have your root filesystem using ZFS, but if you have a large enough hard disk you can test all of its features, including pools and simple RAID setups. Don’t do anything to the partition containing your root filesystem, and remember that every partition ZFS touches will be overwritten.

diskutil list displays your existing partitions. Creating a ZFS-formatted storage pool with two disk partitions is done like this:

# zpool create newpool /device1 /device2

zpool list shows your new storage pool. You could stop there, create a mountpoint and mount it, start putting data on it, and see what happens. zpool destroy newpool gets rid of it. Want to create a mirror? Try this:

# # zpool create newmirror mirror /device1 /device2

There is a whole lot more you can do, and there are issues specific to Mac OS X, which you can read about at ZFS on OS X. Two helpful articles about ZFS are ZFS: Should You? and
ZFS Adds Exciting Twist to Mundane World .

This article was first published on ServerWatch.com.

  SEE ALL
ARTICLES
 

Subscribe to Data Insider

Learn the latest news and best practices about data science, big data analytics, artificial intelligence, data security, and more.

Datamation Logo

Datamation is the leading industry resource for B2B data professionals and technology buyers. Datamation's focus is on providing insight into the latest trends and innovation in AI, data security, big data, and more, along with in-depth product recommendations and comparisons. More than 1.7M users gain insight and guidance from Datamation every year.

Advertisers

Advertise with TechnologyAdvice on Datamation and our other data and technology-focused platforms.

Advertise with Us

Our Brands


Privacy Policy Terms & Conditions About Contact Advertise California - Do Not Sell My Information

Property of TechnologyAdvice.
© 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.