Skip to content

fix(agent): generic fix for duplicate detection and IO stats for extra filesystems - #2119

Open
SteffenV wants to merge 2 commits into
henrygd:mainfrom
SteffenV:fix-io-and-duplicate
Open

fix(agent): generic fix for duplicate detection and IO stats for extra filesystems#2119
SteffenV wants to merge 2 commits into
henrygd:mainfrom
SteffenV:fix-io-and-duplicate

Conversation

@SteffenV

@SteffenV SteffenV commented Jul 7, 2026

Copy link
Copy Markdown

This PR fixes two related issues with extra filesystems:

  1. Duplicate detection: Previously, extra filesystems were incorrectly identified as duplicates when their disk usage matched the root filesystem. This fix compares actual block device names instead of disk usage.

  2. IO statistics: Extra filesystems used their folder names (e.g. DATA, HOME) for diskstats lookup, causing 'Device not found' warnings. This fix maps folder names to their real block devices using partition information.

Changes:

  • Generic device detection without hardcoded names
  • Uses actual block device names for IO statistics
  • Falls back to folder name if no matching partition is found
  • Works with existing __ syntax for custom display names

Tested with:

  • DATA (nvme0n1p6) - IOPS working ✅
  • BOOT (nvme0n1p2) - IOPS working ✅
  • HOME (nvme0n1p5) - IOPS working ✅
  • BACKUP (sda1) - IOPS working ✅

Fixes both the duplicate detection issue and the device not found warnings for extra filesystems.

SteffenV added 2 commits July 3, 2026 23:35
Previously, extra filesystems were incorrectly identified as duplicates
when their disk usage matched the root filesystem inside the container.

This fix compares the actual block device names (e.g. /dev/nvme0n1p6)
instead of relying on disk usage, which is unreliable in containerized
environments where overlayfs is used.

Fixes henrygd#2103
- Generic device detection for extra filesystems
- IO statistics are correctly reported
- All extra filesystems are properly recognized
- Prevents false duplicate detection of filesystems on different block devices
@SteffenV
SteffenV requested a review from henrygd as a code owner July 7, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant