xcp-ng / xcp

Entry point for issues and wiki. Also contains some scripts and sources.
https://xcp-ng.org
1.32k stars 74 forks source link

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

Closed iFrancisMe closed 10 months ago

iFrancisMe commented 10 months ago

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.

olivierlambert commented 10 months ago

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.