I created my LVM thinpool with the default 25GB size during lxd init
, how can I resize that to use more of the physical disk?
LXD 4.24 installed via Snap on Debian Bullseye.
# lxc storage list
+------+--------+-----------------------------------------+-------------------+---------+---------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+------+--------+-----------------------------------------+-------------------+---------+---------+
| data | dir | /srv/lxd/data | | 8 | CREATED |
+------+--------+-----------------------------------------+-------------------+---------+---------+
| root | lvm | /var/snap/lxd/common/lxd/disks/root.img | | 12 | CREATED |
+------+--------+-----------------------------------------+-------------------+---------+---------+
# ls -lh /var/snap/lxd/common/lxd/disks/root.img
-rw------- 1 root root 28G Apr 5 01:11 /var/snap/lxd/common/lxd/disks/root.img
# lxc storage show root
config:
lvm.thinpool_name: LXDThinPool
lvm.vg_name: root
source: /var/snap/lxd/common/lxd/disks/root.img
name: root
driver: lvm
used_by:
- /1.0/instances/......
- /1.0/profiles/default
status: Created
locations:
- none
# lxc storage info root
info:
driver: lvm
name: root
space used: 26.66GiB
total space: 25.94GiB
used by:
images:
......
instances:
......
profiles:
- default