问题原文
原帖链接 · Nemanja Trifunovic · CC BY-SA 3.0
How to check the status of the hard discs (S.M.A.R.T.) in the CoreOS?
smartd and smartctl are not part of the CoreOS.
So following CoreOS philosophy smartd would run inside of the container, as a systemd unit and smartctl would be used from toolbox.
I was not able to access hard drives from the toolbox.
已采纳解答
原帖链接 · Andre' Rainho · CC BY-SA 4.0
I found the answer here https://github.com/coreos/bugs/issues/484#issuecomment-165174597
On CoreOS host
~$ toolbox dnf install -y smartmontools
~$ toolbox --bind=/dev:/dev smartctl --all /dev/sda
You may get "Operation not permitted error", then use bind directly:
~$ toolbox --bind=/dev/sda:/dev/sda smartctl --all /dev/sda
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
