canonical/pylxd

How to create a separate disk for a container

AlifeLine opened this issue · 4 comments

I try to create a profile and then use this profile to create a container. Other restrictions take effect, but the size of the root directory does not.
this is my code:
image
image
container df -h result:
image '
so why root directory’s size isn't 10G

Could you show lxc config show --expanded test2?

Could you show lxc config show --expanded test2?

image
maybe it work,I try use dd generate zero file ,it triggered the quota.
image
When I used Proxmox VE, the container was a separate virtual disk, and the difference between the two led to misunderstanding.

What storage backend is this on?

zfs, lvm and ceph will have df -h show the limit in the container. dir only does if the filesystem has project quotas setup (not very common) and btrfs never does, though limits are enforced on btrfs through quotas.

The behavior above suggests you're on btrfs and this would indeed be the expected behavior there.

What storage backend is this on?

zfs, lvm and ceph will have df -h show the limit in the container. dir only does if the filesystem has project quotas setup (not very common) and btrfs never does, though limits are enforced on btrfs through quotas.

The behavior above suggests you're on btrfs and this would indeed be the expected behavior there.

ok thanks,I have gained knowledge.