Skip to content

Home Assistant and SSD TBW. #394

@pvvx

Description

@pvvx

recorder in configuration.yaml:

recorder:
  purge_keep_days: 31
  commit_interval: 60

Operating system on MMC. The main record on the MMC disk comes from Bluez to '/var/lib/bluetooth/'.
Home assistant database on SSD-NVME. Only write operations to 'home-assistant_v2.db-wal' and 'home-assistant_v2.db'.
All other write operations on ramdisk.

image

cat /sys/block/mmcblk1/stat | awk '{printf "%.3f\n", $7*512/1048576}'
cat /sys/block/nvme0n1/stat | awk '{printf "%.3f\n", $7*512/1048576}'
smartctl -A -j /dev/nvme0 | awk '/"data_units_written"/ {printf "%0.3f\n", $2*512/1000000}'

View all active disk writes in the system:

fatrace -t -f W

On the last 256 GB SATA solid-state drive, Home Assistant worked for 2 years before the TBW of the disk was exhausted. In the last few months, 'Available_Reservd_Space' has been exhausted on the disk ('Reallocated_Sector_Count' has reached its maximum). Uninterruptible power supply was used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions