Public bug reported: On 16.04.1, use lxd init with default responses (zfs, loopback, 10G). Create container with lxc launch. Attempt to resize container root to 20G (larger than loopback file).
lxc set device root size 20G reports no error, but the container still has a 1.1G root as shown by lxc exec <container> df -h It would be ideal to have lxc throw an error of some kind when it does not have enough space to complete the operation. For documentation purposes, the fix is to grow the zfs.img file with truncate, turn on ZFS autoexpand, then perform a zpool online resize. After adding enough loopback device storage, the set command behaves identically but achieves the intended result. ** Affects: lxc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1636617 Title: lxc set device root size fails silently when out of space Status in lxc package in Ubuntu: New Bug description: On 16.04.1, use lxd init with default responses (zfs, loopback, 10G). Create container with lxc launch. Attempt to resize container root to 20G (larger than loopback file). lxc set device root size 20G reports no error, but the container still has a 1.1G root as shown by lxc exec <container> df -h It would be ideal to have lxc throw an error of some kind when it does not have enough space to complete the operation. For documentation purposes, the fix is to grow the zfs.img file with truncate, turn on ZFS autoexpand, then perform a zpool online resize. After adding enough loopback device storage, the set command behaves identically but achieves the intended result. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1636617/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp