Hello,
I’m trying to launch migrated container image on a remote server.
On my local system container consumed around 30GB
$ lxc storage info localpool75G
info:
description: “”
driver: btrfs
name: localpool75G
space used: 31.24GB
total space: 75.00GB
Exported into tar archive it’s about 11GB big.
On a remote machine i have quite a limited space, but according to reported values it should be enough:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 1.7M 1.6G 1% /run
/dev/mapper/vg-root 53G 16G 36G 31% / ← 36GB free on root with already imported image
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/loop0 55M 55M 0 100% /snap/core18/1705
/dev/loop1 55M 55M 0 100% /snap/core18/1754
/dev/loop2 70M 70M 0 100% /snap/lxd/15223
/dev/loop4 28M 28M 0 100% /snap/snapd/7264
/dev/loop3 70M 70M 0 100% /snap/lxd/15161
/dev/sda1 511M 4.0K 511M 1% /boot/efi
tmpfs 1.6G 8.0K 1.6G 1% /run/user/123
tmpfs 1.0M 0 1.0M 0% /var/snap/lxd/common/ns
tmpfs 1.6G 836K 1.6G 1% /run/user/1001
and 45GiB big lvm volume for lxc containers:
~$ lxc storage info lxcpool45G
info:
description: “”
driver: lvm
name: lxcpool45G
space used: 734.12MB
total space: 46.17GB
used by:
profiles:
- default
And 16GB of ram if it’s important.
Imported image:
$ lxc image list
±-------±-------------±-------±-----------------------------------------±-------------±----------±-----------±------------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
±-------±-------------±-------±-----------------------------------------±-------------±----------±-----------±------------------------------+
| migbox | fa8f23ab1d8c | no | Archlinux x86_64 (20200325_04:18) | x86_64 | CONTAINER | 11231.65MB | May 28, 2020 at 7:41pm (UTC) |
Host os on remote machine differs from used in container (host ubuntu - container arch linux). On my local machine it matches container os (both arch linux).
So, when i try to launch imported migbox on remote machine i receive
No space left on device
error and i don’t understand why.
Is there a way to precisely find out how much space do i need and at which point (root or lxcpool or maybe both)?