MooseFS support for Proxmox.
Supports MooseFS Pro and Community Edition.
Instant clones and templates. MooseFS copies a file of any size at once, sharing its data until either copy is written. Snapshots already worked this way; now clones, full clones and templates do too, for raw disks that stay on one MooseFS storage. Tested end to end on a production Proxmox VE 9.3.1 + MooseFS 4.59 cluster. See #66 for the full list of changes, each with its commit.
On running guests: a full clone of a 100 GiB VM from its snapshot took 1.3 seconds, against about 16 minutes for Proxmox's usual live copy of the same disk.
New Features:
Instant clones of VMs and containers, linked or full, from the current state or from a snapshot. A clone is an ordinary, independent disk: deleting its source or template never affects it
Instant templates, whose disks are protected with MooseFS's own immutable flag and mapped read-only on NBD storages
Full clones in the web UI, API and CLI are instant too, through small patches to qemu-server and pve-container that the package applies and keeps in step with their upgrades
Fixes:
Fixed: "qm disk move --delete" from an NBD storage left the source disk behind as unused, while reporting success
Fixed: Containers cloned from, or rolled back to, a snapshot of a running container waited over 40 seconds to mount (ext4 multi-mount protection)
Fixed: Linked qcow2 clone names were misread
Still copied block by block:
Clones and disk moves to another storage
A full clone of a running VM without a snapshot, which Proxmox copies live
EFI disks, TPM state, and qcow2 or vmdk disks
Upgrading:
Requires Proxmox VE 9.3.1 or later, as 0.2.0 does.
Guests keep running through the upgrade.
qemu-server's PVE/QemuServer.pm and pve-container's PVE/LXC.pm are now patched, like the files 0.2.0 already patches. If an upstream change doesn't match, the file is left alone with a warning and full clones copy the usual way. "pve-clone-patch revert" in /usr/share/libpve-storage-custom-moosefs-perl removes the change.
Full Changelog: v0.2.0...v0.3.0