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

Disable probing device mapper #3974

Closed
sviperz opened this issue Jul 17, 2018 · 4 comments · Fixed by #4208
Closed

Disable probing device mapper #3974

sviperz opened this issue Jul 17, 2018 · 4 comments · Fixed by #4208

Comments

@sviperz
Copy link

sviperz commented Jul 17, 2018

Trying to clean up errors from the log. The only errors I wasn't able to suppress is a DEVICE-MAPPER related ones. During the start there are many errors in the log like that:

DEVICE-MAPPER ('mtdblock0', 31:0): Cannot open directory '/dev/mapper'. Disabling device-mapper support.
DEVICE-MAPPER ('mtdblock0', 31:0): Cannot open directory '/dev/disk/by-label'. Disabling device-mapper support.

I've tried to blank path to device mapper in netdata.conf, but it doesn't work. Is there any parameter I can use which will disable device mapper probing completely?

@ktsaou
Copy link
Member

ktsaou commented Sep 12, 2018

I think you can set these directories to nothing, like this:

[plugin:proc:/proc/diskstats]
	path to device mapper = 
	path to /dev/disk/by-label = 

@sviperz
Copy link
Author

sviperz commented Sep 16, 2018

That's exactly what I have already tried, but it doesn't suppress any device mapper error messages from the log. Actually, setting these directories to nothing doesn't make any difference at all to the log output.

@ktsaou
Copy link
Member

ktsaou commented Sep 16, 2018

You are right. The code did not allow empty values in netdata.conf settings, even if the rest of the code could handle the case.
Fixed it in PR #4208

@ktsaou
Copy link
Member

ktsaou commented Sep 16, 2018

merged it.

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 a pull request may close this issue.

2 participants