Can somebody show full step by step manual to setup lxd with lvm thin provision storage pool please?
I show my setup
/dev/sda - my root partition on which I install some soft (nginx, lxd and other soft)
/dev/sdb - clean disk which I want to use for lxc containers, not mounted (I create PV and VG group on this disk), that all
What should I do next?
Can I setup my thin provision in âlxd initâ
Or I must create storage pool after âlxd initâ
Please show me full path from begin and end please
Earlier I do LV (end block device), and give it to lvm storage pool, but I think i doing this not right
LXD defaults to thin provisioning on LVM. lxd init allows you to either pass a block device which will be turned into a PV, then VG created on top of it, then thin pool. Or you can feed LXD an existing empty VG for it to consume.
LXD does not support sharing a VG with something else due to the risk of name collisions.
Please can you clarify your question, are you referring to LVM meta data, if so then this is an internal mechanism LVM uses to keep track of extents in the logical volumes and is not directly controlled by LXD.
I think create every day snapshots of all containers (about 20 containers) and do not deleting this about a 15-20 days may be ending oversize of LVM metadata
In this containers we have postgres or something (many changed files\transactions)
If you need a customised LVM setup different from LVMâs defaults, you can create a volume group manually and then instruct LXD to use it by specifying lvm.vg.force_reuse=true when creating the storage pool with a source=<vg name> flag.