Comment 3 for bug 1951754

Revision history for this message
Erik Lönroth (erik-lonroth) wrote :

I've tried to deploy as:

juju deploy ./scp_ubuntu-20.04-amd64.charm --storage data=lxd,2G,1 --constraints "cores=2 mem=1G root-disk=5G root-disk-source=lxdhosts"

This is how it looks inside the container after deploy. It looks like I can't get a 2G disk from this either.

Filesystem Size Used Avail Use% Mounted on
lxdhosts/containers/juju-a9629a-23 5.9G 1.3G 4.6G 22% /
none 492K 4.0K 488K 1% /dev
udev 189G 0 189G 0% /dev/tty
tmpfs 100K 0 100K 0% /dev/lxd
tmpfs 100K 0 100K 0% /dev/.lxd-mounts
tmpfs 189G 0 189G 0% /dev/shm
tmpfs 38G 212K 38G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 189G 0 189G 0% /sys/fs/cgroup
/dev/mapper/ubuntu--vg-ubuntu--lv 134G 18G 110G 14% /srv/scponly/data
tmpfs 1.0M 0 1.0M 0% /var/snap/lxd/common/ns
tmpfs 103M 0 103M 0% /run/user/1000

Is it impossible to limit disk quota with lxd/zfs/juju?