xcp-ng / xcp

Entry point for issues and wiki. Also contains some scripts and sources.

Home Page:https://xcp-ng.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local ZFS SR driver to use ZVOL instead of vhd based disks

iFrancisMe opened this issue · comments

It would be nice to have a driver for a local ZFS SR to manage ZFS operations under the hood. I have been able to passthrough ZVOLs manually using the disk passthrough method, but managing any VM with such a disk is pretty limited from if even possible from either XCP-ng Center or XO. The VM itself cannot be copied without first detaching the disk, not to mention any other automations XCP-ng or XO might provide for orchestrating VMs.

The ZFS benefits with this passthrough approach are with faster snapshots and disk cloning as well as sending incremental snapshots to remote servers, but these benefits are a bit outweighed by the cost of their manageability within XCP-ng.

Hi,

What you describe is our first SMAPIv3 implementation of ZFS: https://xcp-ng.org/blog/2022/09/23/zfs-ng-an-intro-on-smapiv3/

The "only" issue is the rest of the operations (export/import, backup migration and such) but we are working on it.