smartctl command is very helpful command to diagnose disk related problems
To instruct for selftest , we can issue following command
root# smartctl -l selftest /dev/sda
To get attributes list you can use following command
root#smartctl -A /dev/sda
The output of above command is self explanatory and help you to recognize if there is any problem on hard disk.