Skip to content

/proc/diskstats reporting stats to wrong/unknown device #667

Open
@shlokshah-dev

Description

@shlokshah-dev

Required information

  • Distribution:
    • cat /etc/os-release or cat /etc/lsb-release
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=22.04
      DISTRIB_CODENAME=jammy
      DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"
  • LXCFS version:
  • The output of
    • cat /proc/1/mounts
      /dev/nvme0n1 /var/lib/kubelet/plugins/kubernetes.io/csi/containerstorage.csi.azure.com/23b54db93fa03ea1d2fa7c4f33c3ff02aa274d2d7643903bff843c1fae6c1778/globalmount ext4 rw,relatime,stripe=32 0 0

Issue description

The /proc/diskstats file reports the following -

   0       0 nvme0c0n1 162 2 5122 480 18918 8384 218384 118074 0 151248 169966 0 0 0 0 7740 51411
 259       1 nvme0n1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

I'm reading the diskstat file and matching the Maj:Min number from lsblk to match the stats (which is 259 and 1). But the diskstats are being reported for the first device with Maj:Min 0:0.

Need Help

Need help in understanding why the diskstat is adding the c0 namespace?
If this is a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions