Hello!
I have configured a quite small container for a single service:
arch: amd64
cores: 1
hostname: vm102-haproxy.whl.meilocal.net
memory: 32
net0: name=eth0,bridge=vmbr2,gw=10.0.0.1,hwaddr=D6:B6:21:29:10:E6,ip=10.0.0.2/24,type=veth
onboot: 1
ostype: alpine
rootfs: images:102/vm-102-disk-1.raw,size=307M
startup: order=1,up=5
swap: 16
unprivileged: 1
This LXC was running with Alpine Linux 3.6 w/o issues.
However, I want to upgrade to latest Alpine Linux 3.7, but this always fails after 40-50%.
The upgrade process does not fail with the same file, therefore I assumed it is related to the write IO to the local disk.
To verify this I started a dd process to create a dummy file. And this file was not written, instead the process was killed after writing 29.3MB:
vm102-haproxy:~# dd if=/dev/zero of=/dummyfile bs=4M count=50
Killed
vm102-haproxy:~# ls -lh /
total 30052
drwxr-xr-x 2 root root 4.0K Mar 10 09:44 bin
drwxr-xr-x 4 root root 380 Mar 10 10:16 dev
-rw-r--r-- 1 root root 29.3M Mar 10 10:18 dummyfile
drwxr-xr-x 31 root root 4.0K Mar 10 10:16 etc
-rw-r--r-- 1 root root 0 Mar 10 10:16 fastboot
[...]
If you think there's insufficient free space that would be too simple:
vm102-haproxy:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/loop0 289.3M 211.8M 58.1M 78% /
/dev/loop0 289.3M 211.8M 58.1M 78% /
none 492.0K 0 492.0K 0% /dev
run 7.8G 60.0K 7.8G 0% /run
shm 7.8G 0 7.8G 0% /dev/shm
udev 7.8G 0 7.8G 0% /dev/null
udev 7.8G 0 7.8G 0% /dev/zero
udev 7.8G 0 7.8G 0% /dev/full
udev 7.8G 0 7.8G 0% /dev/urandom
udev 7.8G 0 7.8G 0% /dev/random
udev 7.8G 0 7.8G 0% /dev/tty
I've also resized the disk to 1G after purging the LXC w/o success.
Please advise how to fix this issue.
THX
I have configured a quite small container for a single service:
arch: amd64
cores: 1
hostname: vm102-haproxy.whl.meilocal.net
memory: 32
net0: name=eth0,bridge=vmbr2,gw=10.0.0.1,hwaddr=D6:B6:21:29:10:E6,ip=10.0.0.2/24,type=veth
onboot: 1
ostype: alpine
rootfs: images:102/vm-102-disk-1.raw,size=307M
startup: order=1,up=5
swap: 16
unprivileged: 1
This LXC was running with Alpine Linux 3.6 w/o issues.
However, I want to upgrade to latest Alpine Linux 3.7, but this always fails after 40-50%.
The upgrade process does not fail with the same file, therefore I assumed it is related to the write IO to the local disk.
To verify this I started a dd process to create a dummy file. And this file was not written, instead the process was killed after writing 29.3MB:
vm102-haproxy:~# dd if=/dev/zero of=/dummyfile bs=4M count=50
Killed
vm102-haproxy:~# ls -lh /
total 30052
drwxr-xr-x 2 root root 4.0K Mar 10 09:44 bin
drwxr-xr-x 4 root root 380 Mar 10 10:16 dev
-rw-r--r-- 1 root root 29.3M Mar 10 10:18 dummyfile
drwxr-xr-x 31 root root 4.0K Mar 10 10:16 etc
-rw-r--r-- 1 root root 0 Mar 10 10:16 fastboot
[...]
If you think there's insufficient free space that would be too simple:
vm102-haproxy:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/loop0 289.3M 211.8M 58.1M 78% /
/dev/loop0 289.3M 211.8M 58.1M 78% /
none 492.0K 0 492.0K 0% /dev
run 7.8G 60.0K 7.8G 0% /run
shm 7.8G 0 7.8G 0% /dev/shm
udev 7.8G 0 7.8G 0% /dev/null
udev 7.8G 0 7.8G 0% /dev/zero
udev 7.8G 0 7.8G 0% /dev/full
udev 7.8G 0 7.8G 0% /dev/urandom
udev 7.8G 0 7.8G 0% /dev/random
udev 7.8G 0 7.8G 0% /dev/tty
I've also resized the disk to 1G after purging the LXC w/o success.
Please advise how to fix this issue.
THX