[PVE-User] How to use lvm on zfs ?
Woods, Ken A (DNR)
ken.woods at alaska.gov
Wed Aug 8 00:49:30 CEST 2018
Because this really is a really bad idea, I just want to echo Yannis and say:
...the whole idea of having LVM on top of ZFS/zvol is a mess....
From: pve-user [mailto:pve-user-bounces at pve.proxmox.com] On Behalf Of Yannis Milios
Sent: Tuesday, August 07, 2018 1:51 PM
To: PVE User List
Subject: Re: [PVE-User] How to use lvm on zfs ?
> (zfs create -V 100G rpool/lvm) and make that a PV (pvcreate
>> > /dev/zvol/rpool/lvm) and make a VG (vgcreate pve
>> > /dev/zvol/rpool/lvm) and then a LV (lvcreate -L100% pve/data)
Try the above as it was suggested to you ...
> >But I suspect I have no space to create an
>> >additional zfs volume since the one mounted on "/" occupied all the
No, that's a wrong assumption, zfs does not pre-allocate the whole space of the pool, even if looks like it does so. In short there is no need to "shrink" the pool in order to create a zvol as it was suggested above...
Still, the whole idea of having LVM ontop of ZFS/zvol is a mess, but if you insist, it's up to you ...
A combination of Linux RAID + LVM would look much more elegant in your case, but for that you have to reinstall PVE by using the Debian iso.
During the installation create a linux raid array with lvm on top and then add PVE repos ass described in the wiki:
pve-user mailing list
pve-user at pve.proxmox.com
More information about the pve-user