Skip to content

Introduce a storage.logs_volume config option #2484

@stgraber

Description

@stgraber

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

Similar to the existing storage.backups_volume and storage.images_volume, this will allow moving what normally would be in /var/log/incus` over to a dedicated Incus-managed volume.

This is motivated by a recent stress test where after running over 7000 VMs on a server, our usage in /var/log/incus ended up filling the entire root disk. Nothing too bad, each VM was using just 3-4MB of storage, but that then would quickly add up.

Unlike what we do with backups and images, I don't expect us to move all data away from /var/log/incus and move it into the volume as that would interfere with /var/log/incus/incusd.log which is created prior to us setting up volume mounts.

Instead when the config key is set, we should relocate any instance folder from under /var/log/incus/ onto the newly created volume, then for any newly created instance log folder, we should do it under the configured volume, effectively only leaving /var/log/incus/incusd.log at the system path.

What do you think would need to be added

No response

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions