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

Ability to resolve device mapper to drive name #3257

Open
CommanderRedYT opened this issue Feb 19, 2025 · 0 comments
Open

Ability to resolve device mapper to drive name #3257

CommanderRedYT opened this issue Feb 19, 2025 · 0 comments

Comments

@CommanderRedYT
Copy link

My goal is to somehow get from the btrfs_dev_uuid to the serial number of the drive. I already can map to the device mapper name (node_disk_device_mapper_info{name}), but currently I did not find a way from getting from a value like dm-4 to sda where I then could use some other metric to map from sda to the serial.

I need this for a dashboard which should display which of my btrfs raid devices are broken. The best thing for me would be to somehow display which serial is broken as my drives are labeled with the serial.

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

No branches or pull requests

1 participant