9 comments

  • kev0093 hours ago
    I am curious about the inverse, using the dataset layer, to implement some higher level things like objects for an S3 compatible storage or pages directly for an RDBMS. I seem to remember hearing rumblings about that but it is hard to dredge up.
    • p_l1 hour ago
      ZFS-Lustre operates this way.<p>Main issue with opening it further is lack of DMU-level <i>userland</i> API, especially given how syscall heavy it could get (and iouring might be locked out due to politics)
    • suprasam1 hour ago
      For RDBMS pages on object storage - you might be thinking of Neon.tech. They built a custom page server for PostgreSQL that stores pages directly on S3.
  • infogulch3 hours ago
    How suitable would this be as a zfs send target to back up your local zfs datasets to object storage?
    • suprasam1 hour ago
      Yes, this is a core use case ZFS fits nicely. See slide 31 &quot;Multi-Cloud Data Orchestration&quot; in the talk.<p>Not only backup but also DR site recovery.<p><pre><code> The workflow: 1. Server A (production): zpool on local NVMe&#x2F;SSD&#x2F;HD 2. Server B (same data center): another zpool backed by objbacker.io → remote object storage (Wasabi, S3, GCS) 3. zfs send from A to B - data lands in object storage Key advantage: no continuously running cloud VM. You&#x27;re just paying for object storage (cheap) not compute (expensive). Server B is in your own data center - it can be a VM too. </code></pre> For DR, when you need the data in cloud:<p><pre><code> - Spin up a MayaNAS VM only when needed - Import the objbacker-backed pool - data is already there - Use it, then shut down the VM</code></pre>
    • p_l1 hour ago
      Quite probably should work just fine.<p>The secret is that ZFS actually implements an object storage layer on top of block devices and only then implements ZVOL and ZPL (ZFS POSIX filesystem) on top of that.<p>A &quot;zfs send&quot; is essentially a serialized stream of objects sorted by dependency (objects later in stream will refer to objects earlier in stream, but not the other way around).
  • PunchyHamster4 hours ago
    FS metrics without random IO benchmark are near meaningless, sequential read is best case for basically every file system and it&#x27;s essentially &quot;how fast you can get things from S3&quot; in this case
    • suprasam1 hour ago
      It is all part of ZFS architecture with two tiers: - Special vdev (SSD): All metadata + small blocks (configurable threshold, typically &lt;128KB) - Object storage: Bulk data only If the workload is randomized 4K small data blocks - that&#x27;s SSD latency, not S3 latency.
    • gigatexal3 hours ago
      Yup. IIRC low queue depth random Reads are king for desktop usage
  • digiown1 hour ago
    Exciting stuff, but will this be merged? I remember another similar effort that went nowhere because the company decided to not proceed with it
  • yjftsjthsd-h3 hours ago
    Could someone possibly compare this to <a href="https:&#x2F;&#x2F;www.zerofs.net&#x2F;nbd-devices" rel="nofollow">https:&#x2F;&#x2F;www.zerofs.net&#x2F;nbd-devices</a> (&quot;zpool create mypool &#x2F;dev&#x2F;nbd0 &#x2F;dev&#x2F;nbd1 &#x2F;dev&#x2F;nbd2&quot;)
    • suprasam52 minutes ago
      ZeroFS doesn&#x27;t exploit ZFS strengths with no native ZFS support, just an afterthought with NBD + SlateDB LSM Good for small burst workloads where everything kept it in memory for LSM batch writes. Once compaction hits all bets off with performance and not sure about crash consistency since it is playing with fire. ZFS special vdev + ZIL on ssd is much safer. No need for LSM. MayaNAS ZFS metadata at SSD speed and large blocks get throughput from high latency S3 at network speed.
    • 0x4573 hours ago
      I know my missing something, but can&#x27;t figure out: why not just one device?
      • yjftsjthsd-h3 hours ago
        IIRC the point is that each NBD device is backed by a different S3 endpoint, probably in different zones&#x2F;regions&#x2F;whatever for resiliency.<p>Edit: Oops, &quot;zpool create global-pool mirror &#x2F;dev&#x2F;nbd0 &#x2F;dev&#x2F;nbd1&quot; is a better example for that. If it&#x27;s not that, I&#x27;m not sure what that first example is doing.
        • 0x4573 hours ago
          In context of real AWS S3, I can see raid 0 being useful in this scenario, but in mirror that seems like too much duplication and cross-region replication like this going to introduce significant latency[citation needed]. AWS provides that for S3 already.<p>I can see it on not real S3 though.
          • mgerdts2 hours ago
            Mirroring between s3 providers would seemingly give protection against your account being locked at one of them.<p>I expect this becomes most interesting with l2arc and cache (zil) devices to hold the working set and hide write latency. Maybe would require tuning or changes to allow 1m writes to use the cache device.
  • curt155 hours ago
    How does this relate to the work presented a few years ago by the ZFS devs using S3 as object storage? <a href="https:&#x2F;&#x2F;youtu.be&#x2F;opW9KhjOQ3Q?si=CgrYi0P4q9gz-2Mq" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;opW9KhjOQ3Q?si=CgrYi0P4q9gz-2Mq</a>
    • magicalhippo4 hours ago
      Just going by the submitted article, it seems very similar in what it achieves, but seems to be implemented slightly differently. As I recall the DelphiX solution did not use a character device to communicate with the user-space S3 service, and it relied on a local NVMe backed write cache to make 16kB blocks performant by coalescing them into large objects (10 MB IIRC).<p>This solution instead seems to rely on using 1MB blocks and store those directly as objects, alleviating the intermediate caching and indirection layer. Larger number of objects but less local overhead.<p>DelphiX&#x27;s rationale for 16 kB blocks was that their primary use-case was PostgreSQL database storage. I presume this is geared for other workloads.<p>And, importantly since we&#x27;re on HN, DelphiX&#x27;s user-space service was written in Rust as I recall it, this uses Go.
    • tw044 hours ago
      AFAIK it was never released, and it used FUSE, it wasn’t native.
  • doktor2u5 hours ago
    That’s brilliant! Always amazed at how zfs keeps morphing and stays relevant!
  • glemion435 hours ago
    I do not get it.<p>Why would I use zfs for this? Isn&#x27;t the power of zfs that it&#x27;s a filesystem with checksum and stuff like encryption?<p>Why would I use it for s3?
    • mustache_kimono5 hours ago
      &gt; Why would I use it for s3?<p>You have it the wrong way around. Here, ZFS uses many small S3 objects as the storage substrate, rather than physical disks. The value proposition is that this should be definitely cheaper and perhaps more durable than EBS.<p>See s3backer, a FUSE implementation of similar: <a href="https:&#x2F;&#x2F;github.com&#x2F;archiecobbs&#x2F;s3backer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;archiecobbs&#x2F;s3backer</a><p>See prior in kernel ZFS work by Delphix which AFAIK was closed by Delphix management: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=opW9KhjOQ3Q" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=opW9KhjOQ3Q</a><p>BTW this appears to be closed too!
      • suprasam1 hour ago
        Yes that is the value prop. Cheap S3 instead of expensive EBS.<p><pre><code> EBS limitations: - Per-instance throughput caps - Pay for full provisioned capacity whether filled or not S3: - Pay only for what you store - No per-instance bandwidth limits as long as you have network optimized instance</code></pre>
    • bakies5 hours ago
      I&#x27;ve got a massive storage server built that I want to run s3 protocol on it. It&#x27;s already running ZFS. This is exactly what I want.<p>zfs-share already implements SMB and NFS.
      • 0x4573 hours ago
        This is not what it is. This is building zpool on top of an S3 backend (vdev).<p>Not sure what is the use case out of my ignorance, but I guess one can use it to `zfs send` backups to s3 in a very neat manner.
        • lkjdsklf3 hours ago
          One use case that comes to mind is backups. I can have a zpool created backed by a S3 vdev and then use zfs send | zfs recv to backup datasets to S3 ( or the billion other S3 like providers)<p>Saves me the step of creating an instance with EBS volumes and snapshotting those to S3 or whatever<p>haven&#x27;t done the math at all on whether that&#x27;s cost effective, but that&#x27;s the usecase that comes to mind immediately
      • suprasam1 hour ago
        I hope you are not having that massive storage storage on public-cloud then you would need MayaNAS to reduce storage costs. For S3 as frontend use MinIO gateway - serves S3 API from your ZFS filesystem