mirror of
https://github.com/ceph/ceph
synced 2024-12-19 18:02:46 +00:00
176bb54da9
Call smartctl with -x instead of -a: -a, --all Prints all SMART information about the disk, or TapeAlert infor‐ mation about the tape drive or changer. For ATA devices this is equivalent to '-H -i -c -A -l error -l selftest -l selective' and for SCSI, this is equivalent to '-H -i -A -l error -l selftest'. For NVMe, this is equivalent to '-H -i -c -A -l error'. Note that for ATA disks this does not enable the non-SMART options and the SMART options which require support for 48-bit ATA commands. vs -x, --xall Prints all SMART and non-SMART information about the device. For ATA devices this is equivalent to '-H -i -g all -g wcreorder -c -A -f brief -l xerror,error -l xselftest,selftest -l selective -l directory -l scttemp -l scterc -l devstat -l defects -l sataphy'. and for SCSI, this is equivalent to '-H -i -g all -A -l error -l selftest -l background -l sasphy'. For NVMe, this is equivalent to '-H -i -c -A -l error'. Signed-off-by: Sage Weil <sage@newdream.net>
5 lines
199 B
Plaintext
5 lines
199 B
Plaintext
## allow ceph-osd (which runs as user ceph) to collect device health metrics
|
|
|
|
ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/*
|
|
ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*
|