mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
2da890117c
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 <rick.chen@prophetstor.com> Signed-off-by: Sage Weil <sage@redhat.com>
5 lines
197 B
Plaintext
5 lines
197 B
Plaintext
## 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/*
|