Skip to content

feat(incus): resize pools, volumes and root disks, and set pool settings - #62

Merged
helightdev merged 1 commit into
mainfrom
incus-storage
Nov 15, 2026
Merged

helightdev merged 1 commit into
mainfrom
incus-storage

Conversation

@helightdev

Copy link
Copy Markdown
Owner

Until now berth could not change an Incus storage pool, volume or root disk after it was made. The Incus provisioners now have these actions:

  • resize-pool grows a loop-backed btrfs, zfs or lvm pool. It refuses a dir pool, a pool on a device or dataset given when it was made, a smaller size (Incus never shrinks a pool), and a server without storage_pool_loop_resize. The job shows size and free space before and after.
  • set-pool changes one pool setting from an allow-list of keys Incus takes after creation (description, volume.size, volume.snapshots.*, plus rsync.* for dir, btrfs.mount_options, zfs.clone_copy/zfs.export). An empty value unsets the key. Unknown keys are refused with the list of known ones.
  • resize-volume resizes a custom volume. Block volumes only grow.
  • resize-disk grows an instance's root disk. If the disk comes from a profile, the instance gets its own copy with the new size. A running VM is restarted only with restart=yes.
  • pools is now a table with driver, source, size, used, free and whether the pool can grow.

Sizes are checked against the units Incus accepts before any request goes out. change now grows the disk only when disk is in changed. Without that, it would set a disk grown by resize-disk back to the size in berth's record.

Behaviour follows the Incus 6.0 LTS docs (storage pools and volumes how-tos, the driver pages, units, API extensions). It is tested against the fake Incus in tests/test_incus_plugin.py only, not against a real server.

@helightdev
helightdev merged commit 89b39fb into main Nov 15, 2026
23 checks passed
@helightdev
helightdev deleted the incus-storage branch November 15, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant