Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Report when Hard Drive(s) are in a read-only state #12628

Open
MatthewABrantley opened this issue Apr 7, 2022 · 2 comments
Open

[Feat]: Report when Hard Drive(s) are in a read-only state #12628

MatthewABrantley opened this issue Apr 7, 2022 · 2 comments
Labels
feature request New features needs triage Issues which need to be manually labelled

Comments

@MatthewABrantley
Copy link

Problem

As a netdata user,

It is possible that monitored nodes have their hard drives put into "Read-Only" mode, and then Netdata Agent+Cloud will have every individual chart in an error state for the node, but the node itself will not be in an "error state" in Netdata Cloud. This happens at least in Ubuntu as this is the default behavior for failing hard drives, it may occur in other cases.

Picture attached for reference,

netdataROM-noerror

Description

When a node has a disk drive enter read-only mode, that information should be relayed in Netdata Cloud, probably flagged as a "red error"?

Arguably, any drive, not just the root drive as in my case here. This may not be the universally correct though, as presumably someone could have purposefully put a drive in read-only mode. I think the root drive being "ro" can clearly be considered an issue.

Importance

nice to have

Value proposition

The value proposition for this feature would be to allow users to quickly understand when their nodes have disk drives enter read-only mode. Especially in my specific case, with the root drive entering RO mode because of a failing disk drive, the entire node is non-functional, and ideally I would be notified of this so that I can get it replaced or repaired ASAP.

Proposed implementation

Even if the root drive is in this state, the read-only information can still be gathered from:

/proc/mounts

It can be parsed out of the drive info there, flagged as "ro", here is an example from a ubuntu server using LVM.

/dev/mapper/ubuntu--vg-ubuntu--lv / ext4 ro,relatime,data=ordered 0 0

@MatthewABrantley MatthewABrantley added feature request New features needs triage Issues which need to be manually labelled labels Apr 7, 2022
@thiagoftsm
Copy link
Contributor

ping @cpipilas !

@cpipilas
Copy link

cpipilas commented Apr 8, 2022

Thanks @Raltrwx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New features needs triage Issues which need to be manually labelled
Projects
None yet
Development

No branches or pull requests

3 participants