Skip to content

High disk write activity (database.db) after 2.7.0 update #29999

@kuema

Description

@kuema

What happened?

Hi,

I have z2m setup as a Docker container.
After updating to 2.7.0, I noticed an increase in disk writes. From some Megabytes a day to several Gigabytes.

It seems with 2.7 the database.db gets written at least every second. Previous versions updated this file only a few times a day.
My database.db is around 140kb. So, depending on its size, it amounts up to several GB a day, which can lead to significant wear when running on SD cards.

I rolled back to 2.6.3, and the write load is back to nearly zero.

Could this be related to the new activity features for the UI?

What did you expect to happen?

Low disk write activity in the range of several MB per day, as with previous version.

How to reproduce it (minimal and precise)

Update to 2.7.0 and monitor disk activity via Docker stats (e.g. Portainer) or iotop.

Zigbee2MQTT version

2.7.0

Adapter firmware version

20240710

Adapter

CC2652P stick

Setup

Docker container on x86_64 Linux

Linux zeus 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64 GNU/Linux

Device database.db entry

No response

Debug log

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions