Cannot start lxc container (possibly due to large file in container)
I'm currently on a hana device on the beta channel, on upgrade to version 77 it appears that some permissions changes are made on files inside the lxc container. The following sequence does not work:
(termina) chronos@localhost ~ $ lxc start penguin
Error: Common start logic: Failed to change ownership of: /mnt/stateful/lxd/storage-pools/default/containers/penguin/rootfs/.swapfile
I first tried resetting the permissions with lxc profile unset default raw.idmap but it made no difference, I then tried to delete the file like so:
(termina) chronos@localhost ~ $ lxc file delete penguin/\.swapfile
Error: stat: Value too large for defined data type
The problem appears to be that the lxc binary is 32 bit and cannot deal with files of size 2GB or greater. Restoring a snapshot of the container did not help.
Any help with being able to start my container would be appreciated. Also if my assertion above is true, this seems like a very serious bug as it cannot be that uncommon to deal with files > 2 GB.
EDIT: After a sudden moment of clarity and regaining my braincells, a simple rm -f of the file from the termina shell resolved the problem. It may be worth noting this if anyone else encounters a similar problem.
Posted Aug 19, 2019, 10:16 PM UTC · edited