Sd 0:0:0:0: [sda] tag#14 access beyond end of device

Hi

Home Assistant OS (all updates applied) is running within virtual box on my linux server.

Since a few days HA is very unstable and sometimes no longer accessible. Ping works, but ssh or www does not work.
In these cases I have to restart HA via Virtualbox. (vboxmanage controlvm hass poweroff)

Today I was able to ssh to the HA-Instance and do a dmesg and catch the following error(s):

[99931.319959] blk_update_request: I/O error, dev sda, sector 106350904 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 0
[99931.322200] EXT4-fs error (device sda8): __ext4_find_entry:1531: inode #3277955: comm bash: reading directory lblock 0
[99931.323497] sd 0:0:0:0: [sda] tag#14 access beyond end of device
[99931.324645] blk_update_request: I/O error, dev sda, sector 1427456 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[99931.325841] Buffer I/O error on dev sda8, logical block 0, lost sync page write
[99931.331130] EXT4-fs (sda8): I/O error while writing superblock
[99931.400064] sd 0:0:0:0: [sda] tag#24 access beyond end of device
[99931.406739] blk_update_request: I/O error, dev sda, sector 27250496 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[99931.412764] sd 0:0:0:0: [sda] tag#25 access beyond end of device
[99931.414166] blk_update_request: I/O error, dev sda, sector 27250496 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[99931.418437] sd 0:0:0:0: [sda] tag#26 access beyond end of device
[99931.419731] blk_update_request: I/O error, dev sda, sector 27250496 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[99931.421350] sd 0:0:0:0: [sda] tag#27 access beyond end of device
[99931.424721] blk_update_request: I/O error, dev sda, sector 27250496 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[99931.431526] audit: type=1701 audit(1618913958.648:24076): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==docker-default (enforce) pid=1053842 comm="bitwarden_rs" exe="/opt/bitwarden_rs" sig=7 res=1
[99932.307129] sd 0:0:0:0: [sda] tag#28 access beyond end of device
[99932.313620] blk_update_request: I/O error, dev sda, sector 106350904 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 0
[99932.314968] EXT4-fs error (device sda8): __ext4_find_entry:1531: inode #3277955: comm bash: reading directory lblock 0
[99932.316350] sd 0:0:0:0: [sda] tag#29 access beyond end of device
[99932.317706] blk_update_request: I/O error, dev sda, sector 1427456 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[99932.319077] Buffer I/O error on dev sda8, logical block 0, lost sync page write
[99932.320438] EXT4-fs (sda8): I/O error while writing superblock

From the log files, it looks like the HA filesystem is larger than VirtualBox’s disk image.

sd 0:0:0:0: [sda] tag#28 access beyond end of device

I checked the disk image:

root@nas:~/VirtualBox VMs# vboxmanage showmediuminfo disk aac5cceb-ffce-49d8-aa22-c4520ad0639e
UUID:           aac5cceb-ffce-49d8-aa22-c4520ad0639e
Parent UUID:    base
State:          locked write
Type:           normal (base)
Location:       /srv/dev-disk-by-label-BTRFS/VM/VirtualBox VMs/hass/hassos_ova-5.9.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       81920 MBytes
Size on disk:   31812 MBytes
Encryption:     disabled
Property:       AllocationBlockSize=1048576
In use by VMs:  hass (UUID: 13c76331-09da-4dcd-9d07-53ef5222333e)

df from within hass os returns the following

~ $ df /
Filesystem           1K-blocks      Used Available Use% Mounted on
overlay               81833388  14477152  63181300  19% /

does anyone have an idea what is causing the error and how to fix it?

Thanks a lot,
Sven

Shrink the filesystem in the VM to 30GB, do not use dynamic storage for VBox