OviOS Linux: a ZFS storage appliance with a native "ZFS over iSCSI" provider for Proxmox (free, open plugin)

ovios

Active Member
May 24, 2021
6
4
43
www.ovios.org
Hi all,

I'm Ovi, the developer of OviOS Linux, a ZFS-based storage OS. I've been working on it since 2012 and it's been running in production since 2016.
The goal has been from the beginning to create an enterprise featured Linux based storage OS that's easy to setup and down't require any extensive Linux or protocols knowledge.
I'm posting because I think it fills a gap for Proxmox users looking for simple external ZFS storage, and I'd genuinely like feedback.

What it is
- ZFS storage OS serving iSCSI, NFS and SMB
- Guided management shell: you can go from bare metal to serving storage in about 5 minutes, no ZFS/iSCSI expertise needed
- Runs from memory, no install required. It becomes persistent once you create your first pool and restores its settings at boot (you can still install to disk if you prefer)
- HA via ovios-cluster, an active-passive ZFS clustering engine: a primary serves the data, a replica (or more) with its own disks stays in sync, and a witness arbitrates. No shared disks or SAN needed. Clustering with shared storage is also possible, if the demand is there I will enable it for whoever is interested.
- Replication, clustering, fencing and manual failover are free. Only automatic failover is licensed.

The Proxmox plugin
https://github.com/ksovi/proxmox-agent

It adds OviOS as a provider to Proxmox's built-in "ZFS over iSCSI" storage type, so Proxmox can create, resize, snapshot and delete VM disks as zvols on OviOS directly from the GUI.
- Tested on PVE 9.x; the installer uses anchor-based edits, so it should also work on 7.x/8.x
- Install via .deb package. It registers the provider in ZFSPlugin.pm and the web UI, and a dpkg trigger re-applies the edits automatically after Proxmox upgrades
- Removing the package undoes the changes
- Uses the standard ZFS over iSCSI flow (SSH key from the Proxmox node to the storage box). With an HA pair, Proxmox connects to the cluster's virtual IP

Then it's just Datacenter > Storage > Add > ZFS over iSCSI, and pick OviOS as the provider.

To be upfront: it modifies Proxmox's ZFSPlugin.pm and pvemanagerlib.js (the same approach other third-party ZFS over iSCSI providers use), so it's not something the Proxmox team supports. The README documents exactly what changes and how to revert.

Links
- 5-minute quickstart: https://ovios.org/pages/quickstart_guide.html
- Failover demo video: https://www.youtube.com/watch?v=pYpLJ3tOaJk
- HA failover test report (3-node cluster, iSCSI/SMB/NFS): https://ovios.org/pages/report_failover.html
- Docs: https://ovios.org/pages/docs.html

If anyone tries it in a lab, I'd love to hear what breaks, what's confusing, or what's missing. Happy to answer questions here.

Ovi
 
It adds OviOS as a provider to Proxmox's built-in "ZFS over iSCSI" storage type, so Proxmox can create, resize, snapshot and delete VM disks as zvols on OviOS directly from the GUI.
- Tested on PVE 9.x; the installer uses anchor-based edits, so it should also work on 7.x/8.x
Does that mean you're not using the provided storage plugin api by Proxmox?

As someone how setup ZFS-over-iSCSI a couple of times, your approach on the PVE side seems VERY complicated. Why haven't you built your solution that the Proxmox provided version just works? As far as I can see, you have TGT support and only need a proper HA SSH config so that you have SSH running on your virtual cluster IP with a shared SSH config (including host keys). Is there anything else restricting this approach?
 
  • Like
Reactions: Johannes S
Does that mean you're not using the provided storage plugin api by Proxmox?

As someone how setup ZFS-over-iSCSI a couple of times, your approach on the PVE side seems VERY complicated. Why haven't you built your solution that the Proxmox provided version just works? As far as I can see, you have TGT support and only need a proper HA SSH config so that you have SSH running on your virtual cluster IP with a shared SSH config (including host keys). Is there anything else restricting this approach?

It does use Proxmox’s own ZFS over iSCSI storage type. Create, resize, snapshot and delete all go through the stock plugin. What I add is an iSCSI provider for it, OviOSiSCSI.pm, which implements the same run_lun_command interface the built-in providers use (create_lu, delete_lu, import_lu, modify_lu, list_lu and so on).

Why not use a built-in one: as far as I know, the stock plugin ships providers for comstar, istgt, iet and LIO. None of them speaks tgt. OviOS exports its LUNs through tgt, so nothing built in can drive it. Proxmox also has no public hook for registering a new provider; they’re hard-coded in ZFSPlugin.pm and the web UI’s drop-down. That’s why the package patches those two files, and why it has a dpkg trigger to re-apply the edits after PVE upgrades.

HA over a VIP is already covered: the README says to either turn off host-key checking for the VIP on each PVE node, or give both OviOS nodes the same host keys. So your SSH idea is the same as what I recommend.

Other things in the way of a stock provider:

tgt can’t resize a LUN online, so the provider removes and re-adds the LUN to pick up the new zvol size.
OviOS keeps its own bookkeeping (lun:* properties on the zvol, and the saved targets.conf) so its shell, restore and cluster sync know about the LUN. The provider updates both after every change.
A cleaner design would be a shim on the OviOS side that mimics an existing provider’s CLI. Then no PVE patching would be needed. I haven’t gone that way because it means emulating another target’s command set.