Daily Shaarli
July 25, 2021
Managing ZFS Properties
Dataset properties are managed through the zfs command's set, inherit, and get subcommands.
-
Setting ZFS Properties
-
Inheriting ZFS Properties
-
Querying ZFS Properties
When Android was launched soon after Apple's own iPhone, Steve Jobs threatened to "destroy" it.
Ever since, and across the world, the rivalry between both systems has animated users.
Now the results are in: worldwide, consumers clearly prefer one side — and it's not Steve Jobs'. //
Feelings between Android and Apple were pretty tribal from the get-go. It was Steve Jobs himself who said, when Google rolled out Android a mere ten months after Apple launched the iPhone, "I'm going to destroy Android, because it's a stolen product. I'm willing to go thermonuclear war on this."
Buying a phone is like picking a side in the eternal feud between the Hatfields and the McCoys. Each choice for automatically comes with an in-built arsenal of arguments against.
Described as "The last word in filesystems" ZFS is stable, fast, secure, and future-proof. Being licensed under the CDDL, and thus incompatible with GPL, it is not possible for ZFS to be distributed along with the Linux Kernel. This requirement, however, does not prevent a native Linux kernel module from being developed and distributed by a third party, as is the case with zfsonlinux.org (ZOL).
ZOL is a project funded by the Lawrence Livermore National Laboratory to develop a native Linux kernel module for its massive storage requirements and super computers
zrep is, by design, fairly simple. It is based around zfs properties. Therefore, when in doubt, check the properties. zrep gives an easy way to do this.
Here is an example of a set of properties used when zrep is replicating to a filesystem on the same host. Note that src-host and dest-host are the same:
# ./zrep list -v scratch/zreptest
scratch/zreptest:
zrep:src-fs scratch/zreptest
zrep:src-host hamachi
zrep:dest-fs scratch/zreptest_2
zrep:master yes
zrep:savecount 5
zrep:dest-host hamachi
For the destination filesystem (in this case scratch/zreptest_2), the properties would be mostly the same. The only difference would be, instead of "zrep:master yes", you would see "readonly on"
ZFS property overview
Fixing zfs properties
To manually change a zfs property, use
zfs set zrep:something=newval file/system
To remove a property, zfs is a little odd. The standard (and in fact, only) way of removing a property in zfs, is as follows:
zfs inherit zrep:master file/system
This tells zfs to set the value type of that property, to be "inherited" from the parent filesystem. Since the parent usually does not have any zrep properties, that effectively 'removes' a property from a filesystem or snapshot.
If you’re looking for an alternative to CentOS, you cannot go wrong with VzLinux. Virtuozzo has a vast amount of experience developing for Linux within the realm of containers and virtualization, so anyone looking to take Linux down either of those paths will do well with this distribution.
The Zettabyte File System
by J Bonwick · Cited by 117 — 1 Introduction. Upon hearing about our work on ZFS, some people appear to be genuinely surprised and ask, “Aren't local file
The Z File System (ZFS) was created by Matthew Ahrens and Jeff Bonwick in 2001. ZFS was designed to be a next generation file system for Sun Microsystems’ OpenSolaris. In 2008, ZFS was ported to FreeBSD. The same year a project was started to port ZFS to Linux. However, since ZFS is licensed under the Common Development and Distribution License, which is incompatible with the GNU General Public License, it cannot be included in the Linux kernel. To get around this problem, most Linux distros offer methods to install ZFS.
It is the late 1990s and the computer server world is dominated by enterprise UNIX operating systems – all competing with each other. Windows 2000 is not out yet and Windows NT 4 is essentially a toy that lesser mortals run on their Intel PCs which they laughingly call ‘servers’. Your company has a commercial UNIX and its called Solaris. Your UNIX is very popular and is a leading platform. Your UNIX however has some major deficiencies when it comes to storage.
IRIX – a competing proprietary UNIX – has the fantastic XFS file system which vastly out performs your own file system which is still UFS (“Unix File System” – originally developed in the early 1980s) and doesn’t even have journalling – until Solaris 7 at least (in November 1998). IRIX had XFS baked into it from 1994. IRIX also had a great volume manager – where as Solaris’ ‘SVM’ was generally regarded as terrible and was an add-on product that didn’t appear as part of Solaris itself until Solaris 8 in 2000. //
ZFS – and sadly btrfs – are both rooted in a 1990s monolithic model of servers and storage. btrfs hasn’t caught on in Linux for a variety of reasons, but most of all its because it simply isn’t needed. XFS runs rings around both in terms of performance, scales to massive volume sizes. LVM supports XFS by adding COW snapshots and clones, and even clustering if you so wanted. I believe the interesting direction in file systems is actually things like Gluster and Ceph – file systems designed with the future in mind, rather than for a server model we’re not running any more. ///
Interesting to compare the comments to the disparaging statements in the article.
ZFS combines hardware and software layers, combines volume, disk & partition management in one application.
It is the only production ready journaled CoW file system with data integrity management.
Btrfs is not production ready.
I don’t think anyone, right or left, really thinks Joe Biden can afford to hold Beijing to account for much of anything due to the degree to which he and his drug-addled, sex-addicted grifting son are compromised by China’s intelligence services. It is also difficult to believe that Navy leadership, which has to be at least as aware of the Navy’s ineptitude as the rest of us, didn’t give the Benfold orders to skedaddle when faced with Chinese pushback. The US Navy, indeed the US military, is simply not capable of carrying out a limited conflict to defend freedom of navigation in the South China Sea and protecting the territorial integrity of the nations in the region, including those of our allies. The Chinese know it. Our allies know it. Our military and political leadership know it. Maybe, eventually, the American people will wake up to just how poorly they are being served before too many young Americans have to die to make the point.