Bug #52416
closeddevices: mon devices appear empty when scraping SMART metrics
0%
Description
When invoking smartctl on mon devices, the device name is empty:
ceph : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/smartctl -a --json=o /dev/
Also, mon devices are not listed in `ceph device ls` output.
Updated by Yaarit Hatuka over 2 years ago
- Related to Bug #50657: smart query on monitors added
Updated by Benoît Knecht over 2 years ago
If `ceph-mon` runs as a systemd unit, check if `PrivateDevices=yes` in `/lib/systemd/system/ceph-mon@.service`; if so, try setting `PrivateDevices=false` instead, then
```- systemctl daemon-reload
- systemctl restart ceph-mon.target
```
If `ceph-mon` runs in a container, you might have a similar issue if the host `/dev` isn't exposed within the container.
This PR should fix it: https://github.com/ceph/ceph/pull/44221.
Updated by Neha Ojha over 2 years ago
- Status changed from New to Fix Under Review
- Assignee deleted (
Yaarit Hatuka) - Pull request ID set to 44221
Updated by Benoît Knecht about 2 years ago
I'd like to backport this to Pacific and Octopus, but the Backport Bot didn't create the corresponding tickets; what needs to be done in order for this to happen?
Updated by Yaarit Hatuka about 2 years ago
- Status changed from Fix Under Review to Pending Backport
Thanks, Benoît,
Once the status is changed to "Pending Backport" the bot should find it.
Updated by Backport Bot about 2 years ago
- Copied to Backport #54232: pacific: devices: mon devices appear empty when scraping SMART metrics added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54233: octopus: devices: mon devices appear empty when scraping SMART metrics added
Updated by Benoît Knecht about 2 years ago
Ah, indeed! I don't think I would have been able to change the status myself though, so thanks for doing it!
Updated by Dan van der Ster about 2 years ago
- Related to Bug #54385: better test mon and osd smart command added
Updated by Yaarit Hatuka almost 2 years ago
- Status changed from Pending Backport to Resolved