You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node_filesystem_readonly does not report readonly bind mounts correctly #3484
After upgrading node_exporter from 1.9.1 to 1.10.2, node_filesystem_readonly no longer correctly reports when the same device is mounted multiple times with different flags.
Example: A bind mount that is mounted with ro is now reported as writable.
36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 - ext3 /dev/root rw,errors=continue
(1)(2)(3) (4) (5) (6) (n…m) (m+1)(m+2) (m+3) (m+4)
(1) mount ID: unique identifier of the mount (may be reused after umount)
(2) parent ID: ID of parent (or of self for the top of the mount tree)
(3) major:minor: value of st_dev for files on filesystem
(4) root: root of the mount within the filesystem
(5) mount point: mount point relative to the process's root
(6) mount options: per mount options
(n…m) optional fields: zero or more fields of the form "tag[:value]"
(m+1) separator: marks the end of the optional fields
(m+2) filesystem type: name of filesystem of the form "type[.subtype]"
(m+3) mount source: filesystem specific information or "none"
(m+4) super options: per super block options
Please review this section. Is the information in super options more suitable as the current real-time status? Is the value of this field more meaningful?
Activity
dongjiang1989 commentedon Nov 23, 2025
@codec Maybe #3157 (comment)
discordianfish commentedon Dec 17, 2025
Not sure what is going on, we should consider the super options:
node_exporter/collector/filesystem_linux.go
Line 231 in b306b63
That being said, I can't confirm this issue here. Just upgraded to 1.10.2 and tried with a bind-mount:
@codec Can you try something similar and see if that shows up as read-only? There might be something different in the way nix sets this up?
discordianfish commentedon Dec 17, 2025
Ah wait:
Ok this is weird, somebody needs to give this a closer look. Nothing obvious wrong with the isFilesystemReadOnly function.
roachprod: bump node_exporter to v1.10.2
roachprod: bump node_exporter to v1.10.2
Merge #159352 #161110 #161175 #161190
DesistDaydream commentedon Feb 27, 2026
https://github.com/torvalds/linux/blob/v5.19/Documentation/filesystems/proc.rst#35-----procpidmountinfo---information-about-mounts
Please review this section. Is the information in
super optionsmore suitable as the current real-time status? Is the value of this field more meaningful?In this scenario, for the mountinfo file, the super options represent the current actual state.
Or is it possible to add new metrics? e.g. node_filesystem_block_readonly, etc.
fix(filesystem): add comma separator in mountOptionsString (prometheu…