Skip to content

Commit

Permalink
test/backends/lvm: use bigger loop dev to accomodate for metadata LV
Browse files Browse the repository at this point in the history
On LXD 4.0, the metadata LV is hardcoded to 1G so we need a bigger pool to have
space for data LVs. Later LXD versions changed this to be dynamic and/or
configurable.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 9, 2024
1 parent 7f6cded commit 29bf24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/backends/lvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ lvm_configure() {

echo "==> Configuring lvm backend in ${LXD_DIR}"

lxc storage create "lxdtest-$(basename "${LXD_DIR}")" lvm volume.size=25MiB size=1GiB
lxc storage create "lxdtest-$(basename "${LXD_DIR}")" lvm volume.size=25MiB size=2GiB
lxc profile device add default root disk path="/" pool="lxdtest-$(basename "${LXD_DIR}")"
}

Expand Down

0 comments on commit 29bf24b

Please sign in to comment.