On the system I currently work on:
[root@gaia ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root sysvg -wi-ao---- 20,00g
swap sysvg -wi-ao---- 6,00g
var_log sysvg -wi-ao---- 8,00g
libvirt usrvg -wi-ao---- 20,00g
lxd usrvg -wi-ao---- 10,00g
lxdThinPool usrvg twi-a-tz-- <99,90g 0,00 10,82
ouranos-misc usrvg -wi-ao---- 50,00g
ouranos-sys usrvg -wi-ao---- 35,00g
ouranos-usr usrvg -wi-ao---- 50,00g
ourea_srv usrvg -wi-ao---- 800,00g
ourea_sys usrvg -wi-ao---- 35,00g
pontos-misc usrvg -wi-ao---- 50,00g
pontos-sys usrvg -wi-ao---- 35,00g
pontos-usr usrvg -wi-ao---- 50,00g
LV lxd is mounted at /var/lib/lxd and lxdThinPool is meant to contain the containers and images (currently empty because of my experimentation).
On one of our other systems I find:
[root@hydra ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
images_475dfe1ed9d0a9935b19e31ae5e131037321f4a57b2b6f3069b768629b6dd069 fedora Vwi-a-tz-- 10,00g usr_thinpool 4,27
lv_cheiron fedora -wi-ao---- 54,00g
root fedora -wi-ao---- 15,00g
sys_thinpool fedora twi-aotz-- 5,00g 9,60 13,62
thin_var_lib_lxd fedora Vwi-aotz-- 10,00g sys_thinpool 4,80
usr_thinpool fedora twi-aotz-- 10,00g 4,27 12,27
var_lib_pgsql fedora -wi-ao---- 40,00g
var_log fedora -wi-ao---- 5,00g
[root@hydra ~]# rpm -q lxd
lxd-3.16-0.1.fc30.x86_64
[root@hydra ~]# lxc storage list
+---------+--------------+--------+--------+---------+
| NAME | BESCHREIBUNG | DRIVER | SOURCE | USED BY |
+---------+--------------+--------+--------+---------+
| lvmpool | | lvm | fedora | 2 |
+---------+--------------+--------+--------+---------+
[root@hydra ~]# lxc storage show lvmpool
config:
lvm.thinpool_name: usr_thinpool
lvm.vg_name: fedora
source: fedora
volatile.initial_source: fedora
volume.block.filesystem: xfs
description: ""
name: lvmpool
driver: lvm
used_by:
- /1.0/images/475dfe1ed9d0a9935b19e31ae5e131037321f4a57b2b6f3069b768629b6dd069.
- /1.0/profiles/default
status: Created
locations:
- none
As far as I understand it, LVM is intended to make the VGs a flexible container for a variety of different LVs. I think it is a bit disappointing when a storage pool requires a completely empty VG.
Specifically with CentoS / Fedora there is an issue with a VG containing just LXD thin pool. At boot time nothing is mounted and CentOS / Fedora used to ignore / don’t activate that VG at about 50% of reboots, unfortunately. Later, when LXD starts up it doesn’t find that VG.
Is there a workaround other than using a dir pool?