The professional filesystem ZFS

Snapshots

Another common technique for enhancing the data security of a filesystem is creating snapshots. ZFS provides very easy and efficient snapshot capability thanks to its copy-on-write technology; older data is always saved, because the filesystem stores new datasets in free memory blocks instead of overwriting the existing data. The following command creates snapshots of a volume:

# zfs snapshot pool_name/volume@snapshot_name

The system creates the snapshot in the current directory in a hidden folder with the extension .zfs. Although this folder is not displayed with the ls -lisa command, you can change to it with a simple cd .zfs. This .zfs directory has a snapshot/ subfolder, where you will find your snapshot(s).

The individual snapshots are accessible as in conventional file hierarchies: You can retrieve or copy files from them, and you can create backups. The snapshot technology built into ZFS is far more flexible than you will find in other filesystems (Figure 4).

Figure 4: Create and access ZFS snapshots from a terminal window.

Conclusions

ZFS is one of the most innovative and modern filesystems available for Unix-flavored operating systems today. Restrictions of obsolete filesystems fall away completely with ZFS, and ZFS comes with a range of features, such as RAID, snapshots, and data compression. ZFS also cuts a good figure on the desktop. The less sophisticated Btrfs provides some of the enhanced features of ZFS, but Btrfs has its own issues. It is time to resolve the restrictive license disputes around ZFS and make the ZFS filesystem fully suitable for use on Linux.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • ZFS on Linux

    License issues prevent the integration of ZFS with the Linux kernel, but Linux users can try the highly praised filesystem in userspace.

  • Red Hat to Drop Support for Btrfs

    The company is building their own storage solution called Stratis.

  • Managing Linux Filesystems

    Even with all the talk of Big Data and the storage revolution, a steady and reliable block-based filesystem is still a central feature of most Linux systems.

  • Btrfs

    The Btrfs filesystem offers advanced features such as RAID, subvolumes, snapshots, checksums, and transparent compression, but do desktop users really need all that power?

  • Snapshot Tools

    Experts agree that you should keep a copy of your data, but restoring from incremental backups takes time and sometimes doesn't work as expected. Alternatively, you can capture your data in a snapshot. Read on for a review of some leading Linux snapshot tools.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News