Is it possible to share a ZFS zpool between the host and one or more QEMU/KVM clients?
Doug Hughes
2018-Apr-18 13:56 UTC
Re: [libvirt-users] Share ZFS zpool between host and VM's
There are several possibilities depending upon what you mean. Personally, I have a zpool on the host that I carve off individual zfs filesystems that each guest uses. I put one qcow2 or raw image per zfs filesystem. I do this for backup and replication purposes. Then I have a recursive replication from this host to another so that I can boot up any of the VMs should the primary VM server goes down. Works great. So, you can share the host zfs with the guest as the file/path for its virtual root but you can also share it as just another directory device or you could share it via NFS or, if you wanted to (but I'm not sure why you would necessarily), you could share it via ISCSI On 4/18/2018 7:51 AM, Steffen Sledz wrote:> Is it possible to share a ZFS zpool between the host and one or more QEMU/KVM clients? > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users-- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562)
Steffen Sledz
2018-Apr-19 07:03 UTC
Re: [libvirt-users] Share ZFS zpool between host and VM's
On 18.04.2018 15:56, Doug Hughes wrote:> There are several possibilities depending upon what you mean.I like to share the zpool in the way that the guests can mount a zfs from this pool as a data filesystem (not the root fs itself) to take advantage of the resize features (no need to reserve size for all of them). The icing on the cake would be if the the guests (and the host) can share one and the same zfs.