Bug #52416
closed
devices: mon devices appear empty when scraping SMART metrics
Added by Yaarit Hatuka over 2 years ago.
Updated almost 2 years ago.
Backport:
pacific, octopus
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.
See: https://tracker.ceph.com/issues/50657
- Related to Bug #50657: smart query on monitors added
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.
- Status changed from New to Fix Under Review
- Assignee deleted (
Yaarit Hatuka)
- Pull request ID set to 44221
- Backport set to pacific, octopus
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?
- 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.
- Copied to Backport #54232: pacific: devices: mon devices appear empty when scraping SMART metrics added
- Copied to Backport #54233: octopus: devices: mon devices appear empty when scraping SMART metrics added
Ah, indeed! I don't think I would have been able to change the status myself though, so thanks for doing it!
- Related to Bug #54385: better test mon and osd smart command added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF