Title pretty much says it all. What is everything you can find out about a snapshot? I know there's basic stuff like what files are in it and how it differs from snapshots before/after it, and it's name, and the size it occupies, but I assume there's more.
To give an analogy, for files the observable properties would be things like the size, permissions, owner, group, the mtime/atime/etc, xatters, etc.
Mirrored Boot OS SATA SSDs: 2 x Intel SSD DC S3700 200GB (used enterprise gear)
HBA Card: LSI 9305-16i
PSU: Corsair RM850x
-------------------------
Update:
Message I got from ServerPartDeals regarding the issue. Is this sound advice?:
The 0.1s ERC value is not the normal factory default — it should be 7 seconds on enterprise drives like these, and the refurb/recertification process likely reset it. Totally understandable to notice and question it.
The reason it keeps reverting is most likely your HBA silently dropping the SCT command rather than passing it through to the drive. This is a known quirk with SAS HBAs and SATA drives. You can try:
smartctl -d sat,16 -l scterc,70,70 /dev/sdX
If it still won’t stick, setting the kernel SCSI timeout (echo 180 > /sys/block/sdX/device/timeout) is a good fallback that gives you similar protection for ZFS.
You’re safe to go ahead with badblocks either way.
The thirteenth annual OpenZFS Developer Summit and second annual OpenZFS User Summit took place in Portland, Oregon, USA October 25th through 28th, 2025.
I have a ZFS volume that definetly seems to be completely full as sanoid is throwing this for me: Sep 29 09:30:06 albert-bkup01 sanoid[2930787]: cannot create snapshots : out of space
What is interesting is this: Zpool list: SSDPool1 2.91T 2.00T 930G - - 71% 68% 1.00x ONLINE -
In daily work with storage systems, we usually deal with performance, security, and scalability issues. But every now and then we run into cases that surprise even seasoned sysadmins. This is one of those stories: a real-world example of how a ZIP bomb can “explode” inside a filesystem—and how ZFS behaves very differently compared to traditional filesystems.
The odd backup job
It all started with something seemingly minor: an incremental backup that wouldn’t finish. Normally, such a job takes just a few minutes, but this one kept running for hours—actually the entire night. Digging deeper, we discovered something strange: a directory filled with hundreds of files, each reported as 86 terabytes in size. All this on a server with just a 15 TB physical disk.
At first, we thought it was a reporting glitch or some weird system command bug. But no—the files were there, accessible, readable, and actively being processed.
The culprit: a malicious archive
The system in question was running a Template marketplace, where users can upload files in various formats. Someone decided to upload a .rar file disguised as a model. In reality, it was a decompression bomb: a tiny archive that, once extracted, inflated into a single massive file—86 TB of nothing but zeros.
Logical Size VS Phisical size
This trick relies on the very principle of compression: highly repetitive or uniform data (like endless sequences of zeros) can be compressed extremely efficiently. Instead of storing billions of zeros explicitly, compression algorithms just encode an instruction like: “write zero 86,000,000,000,000 times.” That’s why the original archive was just a few MB, yet decompressed into tens of terabytes.
The impact on the filesystem
Here’s where OpenZFS made all the difference. The system had LZ4 compression enabled—a lightweight algorithm that handles repetitive data exceptionally well.
From a logical perspective, the filesystem recorded more than 19 petabytes written (and counting).
From a physical perspective, however, disk usage remained negligible, since those blocks of zeros were almost entirely compressed away.
Had this happened on ext4 or XFS, the disk would have filled instantly, causing crashes and downtime.
And what if this had been in the cloud?
On a dedicated server with ZFS, the incident was mostly an oddity. But imagine the same scenario in a distributed filesystem or on a service like Amazon S3.
There, logical size equals real allocated and billable storage. Those 19–20 PB generated by the ZIP bomb would have turned into real costs. For context: storing 20 PB on S3 costs around $420,000 per month. A single unchecked upload or misconfigured app could quickly snowball into a million-dollar disaster.
20 Petabyte month price on AWS S3
Beyond the financial hit, such an overflow could congest storage pipelines, overwhelm bandwidth, and cripple downstream services.
Lessons learned
This case left us with some valuable takeaways:
ZFS offers unique resilience: with compression (LZ4 in this case) and intelligent block handling, bogus content doesn’t consume physical space.
Technology alone isn’t enough: input validation, quotas, and monitoring are essential—especially where every byte written has a price tag.
The economic risk is real: what looks like a quirky test file can translate into hundreds of thousands of wasted dollars in hyperscaler environments.
So yes, our server has “digested” a nearly 20 PB ZIP bomb without using a single byte beyond minimal metadata. But it’s a strong reminder of how thin the line is between a fun curiosity and a catastrophic outage.
👉 Has anyone here experienced similar cases of data amplification, ZIP bombs, or compression anomalies that blew up storage usage way beyond reason?
I recently started looking into NAS and data backups. I'm posting this idea here because I believe the idea would need to be implemented at the file system level and I figured this subreddit would find the idea interesting.
The 3-2-1 rule is hard to achieve without paying for a subscription service. Mainly the offsite recommendation. This made me think about distributed backups, which led me to Tahoe-LAFS. The idea is that anyone using the distributed system must provide storage to the system. So if you want to store 1TB of data with 3 copies you would need to add 3TB of storage to the system. Your local storage would store one copy, and the other 2TB would be accessible by the distributed system. 2 copies of your data would be encrypted and sent into the distributed network (encrypted before leaving your local hardware to ensure security). Tahoe-LAFS seems to do this thing, but I believe it exists at the wrong level in a software stack. I don't think this sort of distributed backup system would ever catch on until it is integrated at the file system level. I would think that it would need to exist as a special type of distributed pool.
I don't think this will happen anytime soon (I would like to contribute myself, but also don't trust myself to remain motivated long enough to even finish reading the OpenZFS codebase. Curses be to ADHD). But I would like to know what other people think of this idea. I highly recommend looking at Tahoe-LAFS to understand exactly what I mean by distributed backup and how that would work.
I feel conflicted about posting an idea I have no intention of contributing towards on a subreddit for a piece of open source software. Especially contributing is something I should be capable of doing.
Since the 2.1.0 release on linux, I've been contemplating using dRAID instead of RAIDZ on my new NAS that I've been building. I finally dove in and did some tests and benchmarks and would love to not only share the tools and test results with everyone, but also request any critiques of the methods so I can improve the data. Are there any tests that you would like to request before I fill up the pool with my data? The repository for everything is here.
My hardware setup is as follows:
5x TOSHIBA X300 Pro HDWR51CXZSTB 12TB 7200 RPM 512MB Cache SATA 6.0Gb/s 3.5" HDD
main pool
TOPTON / CWWK CW-5105NAS w/ N6005 (CPUN5105-N6005-6SATA) NAS
Mainboard
64GB RAM
1x SAMSUNG 870 EVO Series 2.5" 500GB SATA III V-NAND SSD MZ-77E500B/AM
Operating system
XFS on LVM
2x SAMSUNG 870 EVO Series 2.5" 500GB SATA III V-NAND SSD MZ-77E500B/AM
Mirrored for special metadata vdevs
Nextorage Japan 2TB NVMe M.2 2280 PCIe Gen.4 Internal SSD
Reformatted to 4096b sector size
3 GPT partitions
volatile OS files
SLOG special device
L2Arc (was considering, but decided to not use on this machine)
I could definitely still use help analyzing everything, but I think I did conclude that I was going to go for it and use dRAID instead of RAIDz for my NAS; it seems like all upsides. This is a ChatGPT summary based on my resilver result data:
Most of the tests were as expected, slog and metadata vdevs help, duh! Between the two layouts (with slog and metadata vdevs), they were pretty neck-in-neck for all tests except for the large sequential read test (large_read), where dRAID smoked RAIDZ by about 60% (1,221MB/s vs 750MB/s).
Hope this is useful to the community! I know dRAID tests for only 5 drives isn't common at all so hopefully this contributes something. Open to questions and further testing for a little bit before I want to start moving my old data over.
I am attempting to use my ZFS formatted harddisk on a fresh Raspberry Pi 5 with new 64 bit OS install. I figured out how to install zfs-dkms on RaspbianOS from bookworm-backports and everything seemed good. After all, 'modprobe zfs' works. I reboot and try to mount my ZFS harddisk. No dice. I had formatted the ZFS disk on my Mac and retested it on my Mac: it still works. But the Raspberry Pi does not show up the pool. 'sudo zpool import april' doesn't mount the april pool, apparently it doesn't exist. 'zpool list' shows nothing. Any hints would be nice.
Writing some tooling in Go to manage my servers (freebsd 14 + zfs) and wanted to dig deeper on the output options to commands such as zfs get or zfs list -t snapshot, etc...
OpenZfs doc indicates a -j or --json or --json-int option to output as json, great for machine ingestion:
But then when I tried on FreeBSD, it errored. And indeed FreeBSD's version of the zfslist man page makes no mention of the existence of a json output option:
how was I supposed to read the openZfs doc? as "pertains to linux only"?
Anyone know if there is another way to get json output of zfs commands (especially zfs list) on FreeBSD?
Do differences between OpenZFS and the FreeBSD implementation exist in many places? I always thought that FreeBSD's implementation of zfs was sort of 'first class citizen'.
I have 2 10TB drives attached* to an RPi4 running ubuntu 24.04.2. They're in a RAID 1 array with a large data partition (mounted at /BIGDATA). (*They're attached via USB/SATA adapters taken out of failed 8TB external USB drives.)
I use syncthing to sync the user data on my and my SO's laptops (MacBook Pro w/ MacOS) <==> with directory trees on BIGDATA for backup, and there is also lots of video, audio etc which don't fit on the MacBooks' disks. For archiving I have cron-driven scripts which use cp -ral and rsync to make hard-linked snapshots of the current backup daily, weekly, and yearly. The latter are a PITA to work with and I'd like to have the file system do the heavy lifting for me. From what I read ZFS seems better suited to this job than btrfs.
Q: Am I correct in thinking that ZFS takes care of RAID and I don't need or want to use MDADM etc?
In terms of actually making the change-over I'm thinking that I could mdadm--fail and --remove one of the 10TB drives. I could then create a zpool containing this disk and copy over the contents of the RAID/ext4 filesystem (now running on one drive). Then I could delete the RAID and free up the second disk.
Q: could I then add the second drive to the ZFS pool in such a way that the 2 drives are mirrored and redundant?