Hi!
I’d like to give a container more storage space and I need to add another block device(s) to do so. The storage pool was created by lxc storage create lxdpool lvm source=/dev/sda4 lvm.vg_name=vglxdpool
and now I’d like to add /dev/sda5 to the volume group. I would have used pvcreate and vgextend and then resize the LV, but I read somewhere not to use lvextend but the tools LXD provides - but I did not find a solution.
After the storage pool is resized, I’d like to resize the root device size of an container. Can I just stop the container, change the device size (how?) and start it again? (The container uses 300G of the avail 500G pool)
I tried to add another partition to the volume group (pvcreate and pvextend) but I can’t use it even if i resize the container. The storage pool still show a total space of 499.75g - the size of the first partition in the volume group.
Did I screw up by setting the source of the storage pool to a partition (source=/dev/sda4) rather than to the existing volume group?
I’m quite sure this is the same for incus /LXD (?):
VG could not be resized, partition couldn’t be added (although shown as part of VG, but pool couldn’t use the space) because storage was created with source=<DEV>. Solution: New VG on different devices, pool created with source VG, container moved to new pool, old pool deleted, container size set higher.
Configuration fault, my bad.