Docker – How to check S.M.A.R.T. HDD Status in CoreOS

coreosdockersmart

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.

Best Answer

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