-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd: OSD device smart data include additional nvme data
Add nvme addition data into the deveh health data. That use nvme tool and command syntax "nvme <vendor> smart-log-add <dev> -json". The nvme json output append in the dev smart "nvme_smart_health_information_add_log". - made run_smartctl static/private - changed get_metrics to take a const string, not c str Signed-off-by: Rick Chen <[email protected]> Signed-off-by: Sage Weil <[email protected]>
- Loading branch information
Showing
5 changed files
with
172 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
## allow ceph-osd (which runs as user ceph) to collect device health metrics | ||
|
||
ceph ALL=NOPASSWD: /usr/sbin/smartctl -a --json /dev/* | ||
ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/* |