Method for preventing and detecting disk faults during cluster storage

The invention discloses a method for preventing and detecting disk faults during cluster storage. The method includes steps of correspondingly setting a disk request monitoring module for each disk, enabling each disk request monitoring module to monitor the response speed for each request in a disk request processing procedure, allowing each disk request monitoring module to report a condition of slow request response of the corresponding monitored disk to a disk fault judging module if elapsed time of the corresponding requests is longer than a specified threshold value, and providing the longest elapsed time of the corresponding request; enabling the disk fault judging module to collect the disk request timeout conditions reported by the disk request monitoring modules, judging whether potential faulted disks possibly exist or not according to the disk request timeout conditions, and determining that certain disks are potential faulted disks if timeout only occurs on the certain few disks; transmitting information to notify a disk fault processing module to process the certain disks. The method has the advantages that data loss due to the disk faults can be effectively prevented, and accordingly the data reliability of a system can be improved.