Does anyone know some good tool for checking HDD failure in Cent OS (Red Hat Systems) without downtime. And tell me how to use it.
Thanks.
Smartmontools are good tools for this.
Install it with
yum install smartmontools
You can examine your drive with
smartctl -t short /dev/sda
More options you can find in man page.
smartctl -d scsi -l selftest /dev/md2
But I get this Standard Inquiry (36 bytes) failed [Invalid argument] Retrying with a 64 byte Standard Inquiry Standard Inquiry (64 bytes) failed [Invalid argument] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
I need to unmount disk?! I need it online...