S3 object storage (eg RustFS) + ZFS

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

gea

Well-Known Member
Dec 31, 2010
3,727
1,457
113
DE
What For?
The best method to expose storage to the internet—whether for a cloud provider or private file sharing/backup—is S3 Object Storage. Until recently, the leading open-source S3 server was MinIO. However, MinIO is dead (open-source development was discontinued and it is now strictly commercial). As a 1:1 replacement for MinIO, RustFS is rapidly gaining traction under a much more open license.

Advantages
of S3 Object Storage was designed to make large volumes of files highly available and redundant over the internet. Performance with 100 million files is barely worse than with 1 million files. Every file can be accessed via an authenticated HTTP(S) URL.

Servers like RustFS support clustered operations where files are distributed across multiple servers—essentially acting as a RAID across servers instead of drives. Combined with a load balancer, users won't notice a single server failure.

Disadvantages
of S3 S3 does not support file locking for simultaneous multi-user access, nor does it support file-level ACLs; it only provides authentication at the server or bucket level. Buckets look like folders in standard file systems, but they are merely structural elements. As a result, using S3 is strictly limited to upload, download, and file versioning.

S3 + SMB Because of these limitations, it is not possible to directly expose a local SMB working share to the internet via S3. However, using a bidirectional, event-driven sync service like napp-it cs-sync (which utilizes inheritable folder ACLs), you can keep an S3 share and an SMB share identical.

An upload to S3 appears immediately in the SMB share, and any document saved via SMB becomes instantly visible in S3 (e.g., in the web console).

Architecture
Modern internet tools—such as S3 servers, S3 management utilities (like mc), or S3 clients (like rclone or restic)—are built using Go or Rust. They ship as single binary executables, meaning they have no OS dependencies ("copy and run") and are extremely easy to maintain. Updating is as simple as replacing a single file.

Installation
Binaries can be downloaded for common operating systems, or built from source for others (e.g., Unix systems like OmniOS): Topicbox

For napp-it cs, pre-compiled binaries are directly available (e.g., for OmniOS).

Startup
RustFS is started either via a loader app (on Windows) or typically using a script (.bat / .sh):

Code:
 1. Download or build binaries

- Create data directory: mkdir -p /data/rustfs
- Start RustFS (background): create a script:
RUSTFS_ACCESS_KEY=rustfsadmin
RUSTFS_SECRET_KEY=rustfsadmin
RUSTFS_VOLUMES=/data/rustfs
RUSTFS_ADDRESS=:9000
RUSTFS_CONSOLE_ENABLE=true
RUSTFS_CONSOLE_ADDRESS=:9001
RUST_LOG=error
/root/rustfs/target/release/rustfs server > /tmp/rustfs.log 2>&1 &

-Web Console: http://:9001/rustfs/console/index.html Login: rustfsadmin / rustfsadmin
- S3 API endpoint: http://:9000

Accessing S3
To access S3 from a client (Duplicati, rclone, restic, Proxmox PBS, RustFS web console, etc.), all you need is a name (Access Key) and a password (Secret Key).


Use Cases
RustFS/S3 object storage and ZFS have different use cases
If combined eg with a bidir sync between smb and S3 shares with SMB folder ACL inheritance respected,
the result is much more than a simple addition of features

RustFS modes

Single Node, single disk
Single Node, multiple disk (RustFS software raid)
Multi node (HA Cluster), each with single or multiple disks

RustFS on ZFS — my summary

RustFS single disk mode on top of a ZFS pool is superior to RustFS software raid/-native multi-disk erasure coding in every dimension — checksums (block-level + self-heal vs. object-level only), snapshots (COW, near-free vs. per-object versioning at real storage cost), caching (ARC/L2ARC/SLOG hybrid tiering vs. plain page cache), and no redundant Reed-Solomon CPU overhead for redundancy ZFS already provides. "Single disk" here means a single RustFS target — the ZFS pool underneath can itself be a mirror/RAIDZ/Draid and Anyraid in near futurw across multiple physical disks, so no physical redundancy is actually given up.


This holds even for large multi-node deployments. Distributed erasure coding across nodes is still the right tool for whole-node-failure tolerance without replication lag, single-namespace capacity beyond one node, and aggregate multi-node throughput — but each node's own local storage should still be a ZFS-redundant pool underneath, not RustFS-managed raw disks. Local disk faults get absorbed by ZFS before they ever reach the distributed EC layer at all, with no downside.

Ideal: RustFS single node, single target-on-ZFS, plus RustFS bucket/site replication for redundancy across nodes/locations — for small/medium setups this is the whole answer; for large setups it's the same pattern per node, with distributed EC layered on top only when node-count/throughput/namespace needs actually call for it.

Open wish, not yet real: exposing ZFS snapshots of RustFS's data directory as read-only S3 object versions natively in RustFS. Not implemented today — would need RustFS to actively integrate with .zfs/snapshot/ and reconcile that against its own object metadata DB, a real feature request to the project, not a config option. Until then, the two mechanisms stay complementary but separate: zfs snapshot for whole-store point-in-time recovery, RustFS's own object versioning for granular per-object history.

The one remaining exception: hosts without ZFS. If OpenZFS on Windows/macOS support matures to production-ready, that exception may shrink or disappear — worth confirming current status before relying on it for winpool or macOS hosts specifically. OpenZFS is released on OSX now with a nearly ready rc on Windows.

This is how i integrate it in my napp-it cs single server or Cluster management tool for S3, Storage Spaces and ZFS

Gea
 
Last edited:
RustFS 1.0 beta12, now good for production oriented testings

1785766993839.png
 
1. „You use more space running erasure coding on top of zfs redundancy“ – ✅ korrect.
2. „If you are only looking for disk failure protection, EC is very cheap in comparison“ – ❌ wrong,

For *only* disk-failure protection, ZFS is cheaper: RAIDZ2 protects against 2 drive failures on 16 drives with only 12.5% overhead. MinIO's default (EC:4) costs 25% – twice as much – and EC:8 even 50%.

But this is not the point. ZFS software raid is superior to EC raid on disk failure handling, hybrid pools, has dedup and compress included with ZFS snaps at no costs and you can have S3 cloud sharing beside local multiuser SMB sharing on same pool with same data in bidir sync.

Regarding RustFS
You are right, it is not as stable as minIO after 10 years that it wants to replace as minIO is no longer supported. RustFS went from first beta to rc1 within a few months. For production use, I would wait some months more.

You can discuss AI use in coding quality, but it is superiour in bug finding, so fixes are to be expected much faster than with minIO over many years

.