[FFe] libvirt v1.3.2 -- zfs support

Bug #1553023 reported by Seth Arnold
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Please consider a Feature Freeze exception for libvirt upstream version 1.3.2 which enables ZFS support on Linux hosts: https://libvirt.org/news.html

ZFS is an excellent match for virtual machine storage:
- transparent high-speed compression that improves performance
- lightweight snapshots
- lightweight clones
- checksums and self-healing to fight bitrot
- makes the most of iops on multiple drives
- zfs send | zfs receive for backups, distribution, or moving images

libvirt has support ZFS on FreeBSD for 1.5 years; while the Linux support is new most of the codebase has had extensive testing elsewhere.

libvirt 1.3.2 does bring along many other changes but most look like the sort of bugfixes that we would need to perform eventually via SRU.

I intend to help fill out this request with the full details requested on the FreezeExceptionProcess wiki page soon. This is mostly a placeholder until then.

Thanks

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libvirt (Ubuntu):
status: New → Confirmed
Hajo Möller (dasjoe)
Changed in libvirt (Ubuntu):
status: Confirmed → New
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi Seth,

Debian actually doesn't yet have v1.3.2. I wonder whether we can just cherrypick the changes to src/storage/storage_backend_zfs.c

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Stefan Bader (smb) wrote :

I also would tend to be conservative with pulling in the whole new version. While it seems to look not too bad (swapping out the orig tarball) the latest version is rather new and, as Serge already mentioned, right now would have no Debian import.

Just looking at the orig tarball replacement there were two of our patches that needed refresh to get rid of fuzz. The build failed through in some Xen testcases. Might be those are new and would just need the additional treatment I did for 1.3.1. Still there is potential for other new bugs and not much window left for testing.

So if we can get the feature (of ZFS) added by adding patches to 1.3.1 I would rather go that path. Serge got something prepared which I will go and have a review in a bit.

Revision history for this message
Stefan Bader (smb) wrote :

Ok, I guess patch#00 might be avoided by adjusting patch#05 but it looks to be rearrangement change only. So its a bit of a struggle to make up my mind between keeping closer to upstream changes and minimizing the additional delta.

For enabling support I guess we need to be selective. IIRC it is a 64bit arch only thing. So possibly

ifneq (,$(findstring $(DEB_HOST_ARCH), amd64, powerpc, ppc64el))
    WITH_ZFS = --with-storage-zfs
else
    WITH_ZFS = --without-storage-zfs
endif

The ppc64el part might need staging. In theory it should be build but I think I overheard(-read) some discussion yesterday about it being not done by accident.

Revision history for this message
Hajo Möller (dasjoe) wrote :

Just to clarify, ZFS on Linux does build on i386, although the result may be of questionable use as of now.
So even though Ubuntu's zfsutils-linux gets built for amd64 only, the upstream project supports i386.

I would recommend to not be too selective here.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1553023] Re: [FFe] libvirt v1.3.2 -- zfs support

Quoting Stefan Bader (<email address hidden>):
...
> For enabling support I guess we need to be selective. IIRC it is a 64bit
> arch only thing. So possibly
>
> ifneq (,$(findstring $(DEB_HOST_ARCH), amd64, powerpc, ppc64el))
> WITH_ZFS = --with-storage-zfs
> else
> WITH_ZFS = --without-storage-zfs
> endif

Indeed, my i386 build without that failed :)
https://launchpad.net/~serge-hallyn/+archive/ubuntu/virt/+build/9327168

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libvirt (Ubuntu):
status: New → Confirmed
Changed in libvirt (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.